Monotone-Parent: f9a04cc4832d7c1ca8d70b594faba3c5a0eda334

Monotone-Revision: f3dd7372c4f74c5e1e309b528107e222964ca70b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-10T21:39:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-11-10 21:39:40 +00:00
parent 5adaba3ca9
commit fb9ac84533
7 changed files with 22 additions and 5 deletions
+7
View File
@@ -1,3 +1,10 @@
2009-11-10 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/SOGoUI/UIxComponent.m (-applicationPath): new method that
really returns the name of the WO application.
(-modulePath): renamed the old applicationPath method to be more
accurate about its purpose.
2009-11-07 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/SOGo/SOGoCache.m - if we get a JSON
+1 -1
View File
@@ -632,7 +632,7 @@
}
if ([[[[self context] request] formValueForKey: @"nojs"] intValue])
result = [self redirectToLocation: [self applicationPath]];
result = [self redirectToLocation: [self modulePath]];
else
{
jsRefreshMethod
+1 -1
View File
@@ -235,7 +235,7 @@
{
[co save];
if ([[[[self context] request] formValueForKey: @"nojs"] intValue])
result = [self redirectToLocation: [self applicationPath]];
result = [self redirectToLocation: [self modulePath]];
else
{
jsRefreshMethod
+1 -1
View File
@@ -58,7 +58,7 @@ static NSArray *supportedLanguages = nil;
- (NSString *) connectURL
{
return [NSString stringWithFormat: @"%@connect", [self applicationPath]];
return [NSString stringWithFormat: @"%@/connect", [self applicationPath]];
}
/* actions */
+2 -1
View File
@@ -60,7 +60,8 @@
- (NSString *)ownMethodName;
- (NSString *)userFolderPath;
- (NSString *) applicationPath;
- (NSString *)applicationPath;
- (NSString *)modulePath;
- (NSString *)ownPath;
- (NSString *)relativePathToUserFolderSubPath:(NSString *)_sub;
+9
View File
@@ -328,6 +328,15 @@ static BOOL uixDebugEnabled = NO;
}
- (NSString *) applicationPath
{
NSString *appName;
appName = [[context request] applicationName];
return [NSString stringWithFormat: @"/%@", appName];
}
- (NSString *) modulePath
{
SOGoObject *currentClient, *parent;
BOOL found;
+1 -1
View File
@@ -113,7 +113,7 @@
<div id="javascriptSafetyNet"><!-- space --></div>
<script type="text/javascript">
var ApplicationBaseURL = '<var:string value="applicationPath"/>';
var ApplicationBaseURL = '<var:string value="modulePath"/>';
var ResourcesURL = '<var:string value="applicationPath"/>.woa/WebServerResources';
<var:if condition="isSuperUser"
>var IsSuperUser = true;