mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +00:00
Monotone-Parent: 412d6bf932c8152d0f23bb7bc6e4f75f4fd3750c
Monotone-Revision: 06c16e479439d6ee1078d469cac954070da2357b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-05T04:44:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
f7ac2f2713
commit
77bcf92491
3 files changed
+36
No files matched your search
@@ -419,6 +419,35 @@ static NSArray *childRecordFields = nil;
|
||||
return error;
|
||||
}
|
||||
|
||||
- (NSURL *) realDavURL
|
||||
{
|
||||
NSURL *realDavURL, *currentDavURL;
|
||||
NSString *appName, *publicParticle, *path;
|
||||
|
||||
if (isSubscription)
|
||||
{
|
||||
appName = [[context request] applicationName];
|
||||
if ([self isInPublicZone])
|
||||
publicParticle = @"/public";
|
||||
else
|
||||
publicParticle = @"";
|
||||
path = [NSString stringWithFormat: @"/%@/dav%@/%@/%@/%@/",
|
||||
appName, publicParticle,
|
||||
[self ownerInContext: nil],
|
||||
[container nameInContainer],
|
||||
[self realNameInContainer]];
|
||||
currentDavURL = [self davURL];
|
||||
realDavURL = [[NSURL alloc] initWithScheme: [currentDavURL scheme]
|
||||
host: [currentDavURL host]
|
||||
path: path];
|
||||
[realDavURL autorelease];
|
||||
}
|
||||
else
|
||||
realDavURL = [self davURL];
|
||||
|
||||
return realDavURL;
|
||||
}
|
||||
|
||||
- (GCSFolder *) ocsFolder
|
||||
{
|
||||
GCSFolder *folder;
|
||||
|
||||
Reference in new issue
Block a user