Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e708ea75
Commit
e708ea75
authored
Mar 10, 2011
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed editing offset-naive 'date' properties in the ZMI.
parent
073a2095
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/OFS/dtml/properties.dtml
src/OFS/dtml/properties.dtml
+4
-3
No files found.
doc/CHANGES.rst
View file @
e708ea75
...
@@ -13,6 +13,9 @@ Bugs Fixed
...
@@ -13,6 +13,9 @@ Bugs Fixed
- Corrected copyright information shown in the ZMI.
- Corrected copyright information shown in the ZMI.
- OFS: Fixed editing offset-naive 'date' properties in the ZMI.
The "Properties" tab no longer shows the time zone of offset-naive dates.
Features Added
Features Added
++++++++++++++
++++++++++++++
...
...
src/OFS/dtml/properties.dtml
View file @
e708ea75
...
@@ -86,10 +86,11 @@ property values, edit the values and click "Save Changes".
...
@@ -86,10 +86,11 @@ property values, edit the values and click "Save Changes".
<input type="text" name="&dtml-id;:&dtml-type;" size="35"
<input type="text" name="&dtml-id;:&dtml-type;" size="35"
value="<dtml-if "hasProperty(id)"><dtml-var
value="<dtml-if "hasProperty(id)"><dtml-var
"('%s' % getProperty(id))" html_quote></dtml-if>" />
"('%s' % getProperty(id))" html_quote></dtml-if>" />
<dtml-elif "type in ('float', 'date')">
<dtml-elif "type == 'date' and not _.same_type(getProperty(id), '')
and getProperty(id).timezoneNaive()">
<input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
<input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-var "
getProperty(id)
" html_quote>" />
value="<dtml-var "
str(getProperty(id)).rsplit(' ', 1)[0]
" html_quote>" />
<dtml-elif "type in ['
string',
'ustring']">
<dtml-elif "type in ['
date', 'float', 'string',
'ustring']">
<input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
<input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-var "getProperty(id)" html_quote>" />
value="<dtml-var "getProperty(id)" html_quote>" />
<dtml-elif "type=='boolean'">
<dtml-elif "type=='boolean'">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment