reorder comment form fields.

svn path=/plone.app.discussion/trunk/; revision=28362
This commit is contained in:
Timo Stollenwerk 2009-08-04 20:47:06 +00:00
parent 2e2528aa76
commit 355f50388c

View File

@ -139,6 +139,13 @@ class IComment(Interface):
comment_id = schema.Int(title=_(u"A comment id unique to this conversation")) comment_id = schema.Int(title=_(u"A comment id unique to this conversation"))
in_reply_to = schema.Int(title=_(u"Id of comment this comment is in reply to"), required=False) in_reply_to = schema.Int(title=_(u"Id of comment this comment is in reply to"), required=False)
# for logged in comments - set to None for anonymous
author_username = schema.TextLine(title=_(u"Author username"), required=False)
# for anonymous comments only, set to None for logged in comments
author_name = schema.TextLine(title=_(u"Author name"), required=False)
author_email = schema.TextLine(title=_(u"Author email address"), required=False)
title = schema.TextLine(title=_(u"Subject")) title = schema.TextLine(title=_(u"Subject"))
mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain") mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain")
@ -148,13 +155,6 @@ class IComment(Interface):
creation_date = schema.Date(title=_(u"Creation date")) creation_date = schema.Date(title=_(u"Creation date"))
modification_date = schema.Date(title=_(u"Modification date")) modification_date = schema.Date(title=_(u"Modification date"))
# for logged in comments - set to None for anonymous
author_username = schema.TextLine(title=_(u"Author username"), required=False)
# for anonymous comments only, set to None for logged in comments
author_name = schema.TextLine(title=_(u"Author name"), required=False)
author_email = schema.TextLine(title=_(u"Author email address"), required=False)
class ICommentingTool(Interface): class ICommentingTool(Interface):
"""A tool that indexes all comments for usage by the management interface. """A tool that indexes all comments for usage by the management interface.