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
a946e2e9
Commit
a946e2e9
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
b5a2b102
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/OFS/dtml/properties.dtml
src/OFS/dtml/properties.dtml
+4
-3
No files found.
src/OFS/dtml/properties.dtml
View file @
a946e2e9
...
...
@@ -86,10 +86,11 @@ property values, edit the values and click "Save Changes".
<input type="text" name="&dtml-id;:&dtml-type;" size="35"
value="<dtml-if "hasProperty(id)"><dtml-var
"('%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"
value="<dtml-var "
getProperty(id)
" html_quote>" />
<dtml-elif "type in ['
string',
'ustring']">
value="<dtml-var "
str(getProperty(id)).rsplit(' ', 1)[0]
" html_quote>" />
<dtml-elif "type in ['
date', 'float', 'string',
'ustring']">
<input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-var "getProperty(id)" html_quote>" />
<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