@implementation DSoAuthenticator
+static BOOL debugOn = YES;
+
// TODO: might want to cache authenticator objects ...
- (id)initWithHostName:(NSString *)_hostname port:(int)_port
if ((ok = [adch openChannel]))
[adch closeChannel];
+ else
+ [self debugWithFormat:@"could not open the channel."];
return ok;
}
+/* debugging */
+
+- (BOOL)isDebuggingEnabled {
+ return debugOn;
+}
+
@end /* DSoAuthenticator */
url = [url stringByAppendingString:
[[self databaseName] stringByEscapingURL]];
}
+ if (![url hasSuffix:@"/"])
+ url = [url stringByAppendingString:@"/"];
url = [[self context] urlWithRequestHandlerKey:@"so"
path:url queryString:nil];
collections
- we could create an EOAdaptor and connect it to 'template1', but this would
result in one unnecessary DB connection?
+ - Note: this is not a problem for methods which are registered in
+ products.plist - those are found in the SoClass. But the system
+ checks for some keys during its traversal process (and expects
+ getting a nil if the key does not exist).
+
+- when redirecting to the DSoHost object, we need to ensure that we add a slash
+ - otherwise the relative URLs will be broken!
+ - in theory SOPE should make a redirect to the default method, not sure why
+ this isn't happening
+ - ZideStore always makes such a redirect?