Changeset 1146
- Timestamp:
- 08/26/10 02:48:49 (21 months ago)
- Location:
- HelpIM3
- Files:
-
- 14 removed
- 4 modified
-
HelpIM/appl/application.py (modified) (1 diff)
-
HelpIM/intranet/pages/EditCases.py (deleted)
-
HelpIM/intranet/pages/EditDisclaimer.py (deleted)
-
HelpIM/intranet/pages/EditFrontPage.py (deleted)
-
HelpIM/intranet/pages/EditManual.py (deleted)
-
HelpIM/intranet/pages/EditNationalNews.py (deleted)
-
HelpIM/intranet/pages/EditRegionalNews.py (deleted)
-
HelpIM/intranet/pages/EditTerms.py (deleted)
-
HelpIM/intranet/pages/EditTextPanel.py (modified) (3 diffs)
-
HelpIM/intranet/pages/ShowCases.py (deleted)
-
HelpIM/intranet/pages/ShowDisclaimer.py (deleted)
-
HelpIM/intranet/pages/ShowFrontPage.py (deleted)
-
HelpIM/intranet/pages/ShowManual.py (deleted)
-
HelpIM/intranet/pages/ShowNationalNews.py (deleted)
-
HelpIM/intranet/pages/ShowRegionalNews.py (deleted)
-
HelpIM/intranet/pages/ShowTerms.py (deleted)
-
HelpIM/intranet/pages/ShowTextPanel.py (modified) (3 diffs)
-
config/sites/localhost.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/HelpIM/appl/application.py
r1125 r1146 299 299 moduleName = resourceConfig.module 300 300 scriptName = resourceConfig.script 301 packageName, className = self.getPackageName(site, scriptName)302 301 location = resourceConfig.location 302 packageName, className = self.getPackageName(site, location) 303 303 else: 304 304 moduleName = resourceConfig.Class.module 305 305 scriptName = resourceConfig.Class.script 306 packageName, className = self.getPackageName(site, scriptName)307 306 location = resourceConfig.Class.id 308 309 if not site.userIsAuthorized(user=him_request.session.session_user, script=scriptName): 307 packageName, className = self.getPackageName(site, location) 308 309 if not site.userIsAuthorized(user=him_request.session.session_user, script=location): 310 310 if him_request.session.session_user is None: 311 311 self.log.debug("User(None) with Role(None) is not authorized to access Location(%s.%s)" % (moduleName, location)) -
HelpIM3/HelpIM/intranet/pages/EditTextPanel.py
r1121 r1146 4 4 import xml.sax.saxutils as saxutils 5 5 6 class EditTextPanel(EditTextPanelTemplate):6 class Handler(EditTextPanelTemplate): 7 7 8 8 """Show login panel - (does what it says) … … 10 10 """ 11 11 def __init__(self, *args, **kwargs): 12 super( EditTextPanel, self).__init__(*args, **kwargs)12 super(Handler, self).__init__(*args, **kwargs) 13 13 import logging 14 14 self.log = logging.getLogger('HelpIM.intranet.pages.EditTextpanel.Handler') 15 self.panelId = 'EditTextPanel' 16 self.panelName = 'Edit news' 17 15 self.panelId = 'EditTextPanel' 16 17 path = kwargs['him_request'].environment['PATH_INFO'] 18 if path[:1] == '/': 19 path = path[1:] 20 self.panelName = path 21 self.function = path 22 self.panelId = path+"Panel" 23 self.newsType = path[4:] 24 18 25 19 26 def getPanelData(self, *pargs, **kwargs): … … 64 71 self.site.flush(self.site) 65 72 self.panelMessage = 'Text %s is opgeslagen...' % self.newsType 73 74 75 def getMenuAttributes(self, *pargs, **kwargs): 76 return { 'currentMenu': '', 77 'currentSubMenu': '' 78 } 79 -
HelpIM3/HelpIM/intranet/pages/ShowTextPanel.py
r1122 r1146 3 3 import xml.sax.saxutils as saxutils 4 4 5 class ShowTextPanel(ShowTextPanelTemplate):5 class Handler(ShowTextPanelTemplate): 6 6 7 7 """Show login panel - (does what it says) … … 9 9 """ 10 10 def __init__(self, *args, **kwargs): 11 super( ShowTextPanel, self).__init__(*args, **kwargs)11 super(Handler, self).__init__(*args, **kwargs) 12 12 import logging 13 13 self.log = logging.getLogger('HelpIM.intranet.pages.ShowTextpanel.Handler') 14 self.panelId = 'ShowTextPanel' 15 self.panelName = 'self.panelName' 14 path = kwargs['him_request'].environment['PATH_INFO'] 15 if path[:1] == '/': 16 path = path[1:] 17 self.panelName = path 18 self.panelId = path+"Panel" 19 self.function = path 20 if path[:4] == 'Show': 21 path = path[4:] 22 self.newsType = path 23 self.editFunction = 'Edit'+path 16 24 17 25 def getPanelData(self, *pargs, **kwargs): … … 39 47 return [panel_data, fieldErrors, panelMessage] 40 48 49 def getMenuAttributes(self, *pargs, **kwargs): 50 return { 'currentMenu': '', 51 'currentSubMenu': '' 52 } 41 53 -
HelpIM3/config/sites/localhost.xml
r1144 r1146 97 97 98 98 <!-- Intranet --> 99 <page location="EditNationalNews" module="intranet" script="Edit NationalNews"100 allowCookies="True" /> 101 <page location="ShowNationalNews" module="intranet" script="Show NationalNews"102 allowCookies="True" /> 103 <page location="EditManual" module="intranet" script="Edit Manual"104 allowCookies="True" /> 105 <page location="ShowManual" module="intranet" script="Show Manual"106 allowCookies="True" /> 107 <page location="EditCases" module="intranet" script="Edit Cases"108 allowCookies="True" /> 109 <page location="ShowCases" module="intranet" script="Show Cases"110 allowCookies="True" /> 111 <page location="ShowDisclaimer" module="intranet" script="Show Disclaimer"112 allowCookies="True" /> 113 <page location="ShowFrontPage" module="intranet" script="Show FrontPage"114 allowCookies="True" /> 115 <page location="ShowTerms" module="intranet" script="ShowTe rms"116 allowCookies="True" /> 117 <page location="EditDisclaimer" module="intranet" script="Edit Disclaimer"118 allowCookies="True" /> 119 <page location="EditFrontPage" module="intranet" script="Edit FrontPage"120 allowCookies="True" /> 121 <page location="EditTerms" module="intranet" script="EditTe rms"99 <page location="EditNationalNews" module="intranet" script="EditTextPanel" 100 allowCookies="True" /> 101 <page location="ShowNationalNews" module="intranet" script="ShowTextPanel" 102 allowCookies="True" /> 103 <page location="EditManual" module="intranet" script="EditTextPanel" 104 allowCookies="True" /> 105 <page location="ShowManual" module="intranet" script="ShowTextPanel" 106 allowCookies="True" /> 107 <page location="EditCases" module="intranet" script="EditTextPanel" 108 allowCookies="True" /> 109 <page location="ShowCases" module="intranet" script="ShowTextPanel" 110 allowCookies="True" /> 111 <page location="ShowDisclaimer" module="intranet" script="ShowTextPanel" 112 allowCookies="True" /> 113 <page location="ShowFrontPage" module="intranet" script="ShowTextPanel" 114 allowCookies="True" /> 115 <page location="ShowTerms" module="intranet" script="ShowTextPanel" 116 allowCookies="True" /> 117 <page location="EditDisclaimer" module="intranet" script="EditTextPanel" 118 allowCookies="True" /> 119 <page location="EditFrontPage" module="intranet" script="EditTextPanel" 120 allowCookies="True" /> 121 <page location="EditTerms" module="intranet" script="EditTextPanel" 122 122 allowCookies="True" /> 123 123 … … 139 139 140 140 <UnAuthorizedResource key="EmptyPage" /> 141 <UnAuthorizedResource key=" ShowLoginPanel" />141 <UnAuthorizedResource key="login" /> 142 142 <UnAuthorizedResource key="PasswordRecover" /> 143 143 <UnAuthorizedResource key="RegisterUser" />
