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
96ef89c8
Commit
96ef89c8
authored
Dec 27, 2008
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quit trying to hide DateTime.
parent
19a006c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
lib/python/App/PersistentExtra.py
lib/python/App/PersistentExtra.py
+3
-8
No files found.
lib/python/App/PersistentExtra.py
View file @
96ef89c8
...
...
@@ -14,26 +14,21 @@
$Id$
"""
from
DateTime.DateTime
import
DateTime
class
PersistentUtil
:
def
_datetime
(
self
,
x
=
None
):
from
DateTime.DateTime
import
DateTime
if
x
is
None
:
return
DateTime
()
return
DateTime
(
x
)
def
bobobase_modification_time
(
self
):
jar
=
self
.
_p_jar
oid
=
self
.
_p_oid
if
jar
is
None
or
oid
is
None
:
return
self
.
_datet
ime
()
return
DateT
ime
()
try
:
t
=
self
.
_p_mtime
except
:
t
=
0
return
self
.
_datet
ime
(
t
)
return
DateT
ime
(
t
)
def
locked_in_version
(
self
):
"""Was the object modified in any version?
...
...
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