diff --git a/gen/mixins/ToolMixin.py b/gen/mixins/ToolMixin.py index 82ffdac..7973c58 100644 --- a/gen/mixins/ToolMixin.py +++ b/gen/mixins/ToolMixin.py @@ -269,9 +269,9 @@ class ToolMixin(BaseMixin): '''When must the portlet be shown?''' # Not on 'edit' pages. if layoutType == 'edit': return - if context.id == 'ui': context = context.getParentNode() + if context and (context.id == 'ui'): context = context.getParentNode() res = True - if hasattr(context.aq_base, 'appy'): + if context and hasattr(context.aq_base, 'appy'): appyObj = context.appy() try: res = appyObj.showPortlet() diff --git a/gen/ui/appy.js b/gen/ui/appy.js index 2974a17..f892ddd 100644 --- a/gen/ui/appy.js +++ b/gen/ui/appy.js @@ -41,6 +41,11 @@ function showLoginForm() { loginFields.style.display = "inline"; } +function switchLanguage(selectWidget) { + var language = selectWidget.options[selectWidget.selectedIndex].value; + window.location = "/config/changeLanguage?language=" + language; +} + var isIe = (navigator.appName == "Microsoft Internet Explorer"); function getElementsHavingName(tag, name) { diff --git a/gen/wrappers/__init__.py b/gen/wrappers/__init__.py index d9f68f5..1470af1 100644 --- a/gen/wrappers/__init__.py +++ b/gen/wrappers/__init__.py @@ -27,6 +27,131 @@ class AbstractWrapper(object): '''Any real Appy-managed Zope object has a companion object that is an instance of this class.''' + pxPhases = Px('''
Phases
+ ''') + + pxPortlet = Px(''' +Made with + Appy |