From 97ddf7a2c48332662e29e841b55f60e11012c60e Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Tue, 30 Apr 2013 11:45:31 +0200 Subject: [PATCH] [gen] Bugfix: do not show the Calendar widget (search and edit layouts) if field.calendar is False. --- gen/mixins/ToolMixin.py | 1 - gen/ui/widgets/date.pt | 24 +++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/gen/mixins/ToolMixin.py b/gen/mixins/ToolMixin.py index 122c24f..66208b7 100644 --- a/gen/mixins/ToolMixin.py +++ b/gen/mixins/ToolMixin.py @@ -373,7 +373,6 @@ class ToolMixin(BaseMixin): params['UID'] = getattr(refObject, refField.name).data # Use index "Allowed" if noSecurity is False if not noSecurity: params['Allowed'] = self.getAllowedValue() - print params brains = self.getPath("/catalog")(**params) if brainsOnly: # Return brains only. diff --git a/gen/ui/widgets/date.pt b/gen/ui/widgets/date.pt index 30031f4..23515be 100644 --- a/gen/ui/widgets/date.pt +++ b/gen/ui/widgets/date.pt @@ -40,9 +40,11 @@ tal:content="year"> The icon for displaying the calendar popup - - - + + + + + The icon for displaying the calendar popup - - - + + + + + To @@ -138,9 +142,11 @@ tal:content="value" tal:attributes="value value"> The icon for displaying the calendar popup - - - + + + + +