revert 27204: change import for discussion modification_date from datetime to DateTime.
svn path=/plone.app.discussion/trunk/; revision=27213
This commit is contained in:
parent
4b6b0aeb02
commit
751ae5a06a
@ -1,6 +1,6 @@
|
|||||||
"""The default comment class and factory.
|
"""The default comment class and factory.
|
||||||
"""
|
"""
|
||||||
from DateTime import DateTime
|
from datetime import datetime
|
||||||
from zope.interface import implements
|
from zope.interface import implements
|
||||||
from zope.component.factory import Factory
|
from zope.component.factory import Factory
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ class Comment(DynamicType, Traversable, RoleManager, Owned, Explicit):
|
|||||||
# IConversation.addComment().
|
# IConversation.addComment().
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.creation_date = self.modification_date = DateTime()
|
self.creation_date = self.modification_date = datetime.now()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __name__(self):
|
def __name__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user