From 00b90f1b36fa02aa42fc83df947002bea105773d Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 30 Jun 2004 10:41:00 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/trunk@110 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/Main/SOGoUserHomePage.wox | 2 +- .../Appointments/SOGoAppointmentFolder.m | 15 +++++++++++++++ SOGo/SoObjects/SOGo/SOGoContentObject.m | 8 ++++++++ SOGo/SoObjects/SOGo/SOGoFolder.m | 8 ++++++++ SOGo/SoObjects/SOGo/SOGoObject.h | 5 +++++ SOGo/SoObjects/SOGo/SOGoObject.m | 19 +++++++++++++++++++ SOGo/UI/Scheduler/ChangeLog | 4 ++-- SOGo/UI/Scheduler/product.plist | 2 +- dbd/README | 2 ++ 9 files changed, 61 insertions(+), 4 deletions(-) diff --git a/SOGo/Main/SOGoUserHomePage.wox b/SOGo/Main/SOGoUserHomePage.wox index 027fbae4..327ed4a5 100644 --- a/SOGo/Main/SOGoUserHomePage.wox +++ b/SOGo/Main/SOGoUserHomePage.wox @@ -12,7 +12,7 @@

OpenGroupware.org:

diff --git a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m index 13e6c633..9182664a 100644 --- a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -29,4 +29,19 @@ [super dealloc]; } +/* name lookup */ + +- (id)lookupName:(NSString *)_key inContext:(id)_ctx acquire:(BOOL)_flag { + id obj; + + /* first check attributes directly bound to the application */ + if ((obj = [super lookupName:_key inContext:_ctx acquire:NO])) + return obj; + + [self logWithFormat:@"CHECK KEY: %@", _key]; + + /* return 404 to stop acquisition */ + return [NSException exceptionWithHTTPStatus:404 /* Not Found */]; +} + @end /* SOGoAppointmentFolder */ diff --git a/SOGo/SoObjects/SOGo/SOGoContentObject.m b/SOGo/SoObjects/SOGo/SOGoContentObject.m index 452d782a..c29c4391 100644 --- a/SOGo/SoObjects/SOGo/SOGoContentObject.m +++ b/SOGo/SoObjects/SOGo/SOGoContentObject.m @@ -49,4 +49,12 @@ return self->ocsPath; } +/* description */ + +- (void)appendAttributesToDescription:(NSMutableString *)_ms { + [super appendAttributesToDescription:_ms]; + + [_ms appendFormat:@" ocs=%@", [self ocsPath]]; +} + @end /* SOGoContentObject */ diff --git a/SOGo/SoObjects/SOGo/SOGoFolder.m b/SOGo/SoObjects/SOGo/SOGoFolder.m index 28f8b1c6..a0ef5b14 100644 --- a/SOGo/SoObjects/SOGo/SOGoFolder.m +++ b/SOGo/SoObjects/SOGo/SOGoFolder.m @@ -49,4 +49,12 @@ return self->ocsPath; } +/* description */ + +- (void)appendAttributesToDescription:(NSMutableString *)_ms { + [super appendAttributesToDescription:_ms]; + + [_ms appendFormat:@" ocs=%@", [self ocsPath]]; +} + @end /* SOGoFolder */ diff --git a/SOGo/SoObjects/SOGo/SOGoObject.h b/SOGo/SoObjects/SOGo/SOGoObject.h index 02502a58..fb90b6eb 100644 --- a/SOGo/SoObjects/SOGo/SOGoObject.h +++ b/SOGo/SoObjects/SOGo/SOGoObject.h @@ -25,6 +25,7 @@ #import +@class NSString, NSMutableString; @class OCSFolderManager, OCSFolder; @class SOGoUserFolder; @@ -45,6 +46,10 @@ - (SOGoUserFolder *)lookupUserFolder; +/* description */ + +- (void)appendAttributesToDescription:(NSMutableString *)_ms; + @end #endif /* __SoObjects_SOGoObject_H__ */ diff --git a/SOGo/SoObjects/SOGo/SOGoObject.m b/SOGo/SoObjects/SOGo/SOGoObject.m index dbde44b3..1bab70ed 100644 --- a/SOGo/SoObjects/SOGo/SOGoObject.m +++ b/SOGo/SoObjects/SOGo/SOGoObject.m @@ -72,4 +72,23 @@ return nil; } +/* description */ + +- (void)appendAttributesToDescription:(NSMutableString *)_ms { + if (self->nameInContainer) + [_ms appendFormat:@" name=%@", self->nameInContainer]; + if (self->container) + [_ms appendFormat:@" container=0x%08X", self->container]; +} + +- (NSString *)description { + NSMutableString *ms; + + ms = [NSMutableString stringWithCapacity:64]; + [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])]; + [self appendAttributesToDescription:ms]; + [ms appendString:@">"]; + return ms; +} + @end /* SOGoObject */ diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index fff230bd..d74d8131 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,7 +1,7 @@ 2004-06-30 Helge Hess - * UIxCalView.h, UIxAppointmentView.h, UIxAppointmentEditor.m: include - UIxComponent from SOGoUI + * UIxCalView.h, UIxAppointmentView.h, UIxAppointmentEditor.m, + UIxCalSelectTab.m: include UIxComponent from SOGoUI * removed backend stuff from some sources diff --git a/SOGo/UI/Scheduler/product.plist b/SOGo/UI/Scheduler/product.plist index f00e9f8d..a04edd38 100644 --- a/SOGo/UI/Scheduler/product.plist +++ b/SOGo/UI/Scheduler/product.plist @@ -1,5 +1,5 @@ { - requires = ( MAIN, CommonUI ); + requires = ( MAIN, CommonUI, Appointments ); publicResources = ( previous_week.gif, diff --git a/dbd/README b/dbd/README index 71e19453..6405c139 100644 --- a/dbd/README +++ b/dbd/README @@ -104,3 +104,5 @@ Tricks used a proper value, see above - if the baseURL doesn't match the requested WebDAV URL, we run into problems, maybe need to fix something in the SOPE WebDAV layer here + +- a trick to stop acquisition is to return a NSException 404 code. -- 2.39.2