]> err.no Git - sope/commitdiff
added a small warning
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 9 Feb 2005 11:16:00 +0000 (11:16 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 9 Feb 2005 11:16:00 +0000 (11:16 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@543 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/Version
sope-appserver/NGObjWeb/WOApplication.m

index a6a2d07ef784590923f290af2cdbd822af3bd221..ee0e6b72bd553ba117f92c6e1cc2d6d2f51559c2 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-04  Helge Hess  <helge.hess@opengroupware.org>
+
+       * WOApplication.m: added a warning if the default component request
+         handler key is not set (v4.5.113)
+
 2005-02-06  Helge Hess  <helge.hess@opengroupware.org>
 
        * DynamicElements/WOBrowser.m: fixed a warning if neither selection
index 28da496bf5f45f0cd50929b12cf9f4f510ad4754..fe816bee9d73bb9b5e64bf5fc1ed13dfababc382 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=112
+SUBMINOR_VERSION:=113
 
 # v4.5.91  requires libNGExtensions v4.5.134
 # v4.5.84  requires libNGExtensions v4.5.127
index ea8f4af586e8baa4005c2ff89dc75a417b37dbca..86206f3a0ac7c94dbc633cb80f60e7fc9a95f940 100644 (file)
@@ -57,6 +57,12 @@ static NSString *rapidTurnAroundPath = nil;
 
 @implementation WOApplication
 
+#if 1
+static NSString *defaultCompRqHandlerClassName = @"OWViewRequestHandler";
+#else
+static NSString *defaultCompRqHandlerClassName = @"WOComponentRequestHandler";
+#endif
+
 + (int)version {
   return [super version] + 5 /* v6 */;
 }
@@ -265,12 +271,13 @@ static NSString *rapidTurnAroundPath = nil;
     self->requestHandlerRegistry =
       NSCreateMapTable(NSObjectMapKeyCallBacks, NSObjectMapValueCallBacks, 8);
     
-    rk = [WOApplication componentRequestHandlerKey];
-#if 1
-    rh = [[NSClassFromString(@"OWViewRequestHandler") alloc] init];
-#else
-    rh = [[NSClassFromString(@"WOComponentRequestHandler") alloc] init];
-#endif
+    if ((rk = [WOApplication componentRequestHandlerKey]) == nil) {
+      [self logWithFormat:
+             @"WARNING: no component request handler key is specified, "
+             @"this probably means that share/ngobjweb/Defaults.plist "
+             @"could not get loaded (permissions?)"];
+    }
+    rh = [[NSClassFromString(defaultCompRqHandlerClassName) alloc] init];
     if ([rk length] > 0 && (rh != nil))
       [self registerRequestHandler:rh forKey:rk];
     [rh release]; rh = nil;