mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Monotone-Parent: 30ddfff1991c7e39d67fc5f3c46b308d273ee14a
Monotone-Revision: ea3e5a63ba8435e702b8af87dceec9a5c5e21e6a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-06T22:25:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
sure the numbers in dateString are formatted so as to take 4 chars
|
||||
for the year and 2 for the day and the month, otherwise
|
||||
NSCalendarDate will return a nil date.
|
||||
([UIxComponent -applicationPath]): return a path based on the
|
||||
object's context instead of the second level in SOGo's object
|
||||
hierarchy...
|
||||
|
||||
2006-09-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#import <NGObjWeb/WOResourceManager.h>
|
||||
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoObject.h>
|
||||
#import <SOGo/SOGoCustomGroupFolder.h>
|
||||
|
||||
@interface UIxComponent (PrivateAPI)
|
||||
- (void)_parseQueryString:(NSString *)_s;
|
||||
@@ -306,7 +308,32 @@ static BOOL uixDebugEnabled = NO;
|
||||
|
||||
- (NSString *) applicationPath
|
||||
{
|
||||
return [self _urlForTraversalObject: 2];
|
||||
SOGoObject *currentClient, *parent;
|
||||
NSString *url;
|
||||
BOOL found;
|
||||
Class parentClass, groupFolderClass, userFolderClass;
|
||||
WOContext *ctx;
|
||||
|
||||
found = NO;
|
||||
groupFolderClass = [SOGoCustomGroupFolder class];
|
||||
userFolderClass = [SOGoUserFolder class];
|
||||
|
||||
currentClient = [self clientObject];
|
||||
while (!found && currentClient)
|
||||
{
|
||||
parent = [currentClient container];
|
||||
parentClass = [parent class];
|
||||
if (parentClass == groupFolderClass
|
||||
|| parentClass == userFolderClass)
|
||||
found = YES;
|
||||
else
|
||||
currentClient = parent;
|
||||
}
|
||||
|
||||
ctx = [self context];
|
||||
url = [currentClient baseURLInContext: ctx];
|
||||
|
||||
return [[NSURL URLWithString: url] path];
|
||||
}
|
||||
|
||||
- (NSString *) resourcesPath
|
||||
|
||||
Reference in New Issue
Block a user