change import for discussion modification_date from datetime to DateTime.

svn path=/plone.app.discussion/trunk/; revision=27204
This commit is contained in:
Timo Stollenwerk 2009-05-29 06:30:55 +00:00
parent b73c43119d
commit 9a91b6f9ed

View File

@ -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):