[px] Made PX thread-safe.
This commit is contained in:
parent
086f93e845
commit
1d931cfb96
10 changed files with 2086 additions and 2037 deletions
|
@ -37,6 +37,11 @@ class ToolMixin(BaseMixin):
|
|||
if res in ('User', 'Group', 'Translation'): res = appName + res
|
||||
return res
|
||||
|
||||
def home(self):
|
||||
'''Returns the content of px ToolWrapper.pxHome.'''
|
||||
tool = self.appy()
|
||||
return tool.pxHome({'self': tool}).encode('utf-8')
|
||||
|
||||
def getHomePage(self):
|
||||
'''Return the home page when a user hits the app.'''
|
||||
# If the app defines a method "getHomePage", call it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue