change import for discussion modification_date from datetime to DateTime.
svn path=/plone.app.discussion/trunk/; revision=27204
This commit is contained in:
parent
b73c43119d
commit
9a91b6f9ed
@ -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.now()
|
self.creation_date = self.modification_date = DateTime()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __name__(self):
|
def __name__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user