mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +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,3 +1,8 @@
|
||||
2010-06-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoGCSFolder.m (-realDavURL): new method that
|
||||
returns the the owner version of the URL to the current folder.
|
||||
|
||||
2010-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalParticipationStatusView.m: removed obsolete module.
|
||||
|
||||
@@ -113,6 +113,8 @@
|
||||
- (void) sendFolderAdvisoryTemplate: (NSString *) template;
|
||||
|
||||
/* DAV */
|
||||
- (NSURL *) realDavURL;
|
||||
|
||||
- (NSDictionary *) davSQLFieldsTable;
|
||||
- (NSDictionary *) parseDAVRequestedProperties: (DOMElement *) propElement;
|
||||
|
||||
|
||||
@@ -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