From 0ccbc6a78aa7c407befd5812cde8898ef2e18a55 Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 23 May 2006 20:36:38 +0000 Subject: [PATCH] some minor fixes git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1223 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/liquid/view_macros.pt | 4 ++++ browser/loops/auth.py | 2 +- organize/interfaces.py | 12 ++++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/browser/liquid/view_macros.pt b/browser/liquid/view_macros.pt index e452af3..77ae05d 100644 --- a/browser/liquid/view_macros.pt +++ b/browser/liquid/view_macros.pt @@ -55,7 +55,9 @@ +
+ + + Here comes the body
diff --git a/browser/loops/auth.py b/browser/loops/auth.py index 410e7ab..82e3113 100644 --- a/browser/loops/auth.py +++ b/browser/loops/auth.py @@ -42,7 +42,7 @@ class LoginLogout(BaseLoginLogout): default='[Login]')) elif ILogoutSupported(self.request, None) is not None: return u'%s' % ( - urllib.quote(zapi.absoluteURL(self.context, self.request)), + zapi.absoluteURL(self.context, self.request), translate(_('[Logout]'), context=self.request, default='[Logout]')) else: diff --git a/organize/interfaces.py b/organize/interfaces.py index 3bea2b5..141980f 100644 --- a/organize/interfaces.py +++ b/organize/interfaces.py @@ -47,9 +47,13 @@ class IPerson(Interface): 'datetime.date object'), required=False,) + age = schema.Int( + title=_(u'Age'), + description=_(u'The current age in full years, so this should ' + 'be an integer calculated dynamically, i.e. a read-only ' + 'attribute'), + readonly=True) + addresses = Attribute('A mapping whose values provide the IAddress ' - 'interface') + 'interface') - age = Attribute('The current age in full years, so this should ' - 'be an integer calculated dynamically, i.e. a read-only ' - 'attribute')