From 355f50388c0c1fe581f3d7b0ac69bf487b3aa32d Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 4 Aug 2009 20:47:06 +0000 Subject: [PATCH] reorder comment form fields. svn path=/plone.app.discussion/trunk/; revision=28362 --- plone/app/discussion/interfaces.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plone/app/discussion/interfaces.py b/plone/app/discussion/interfaces.py index d59aa9a..f12c80f 100644 --- a/plone/app/discussion/interfaces.py +++ b/plone/app/discussion/interfaces.py @@ -139,6 +139,13 @@ class IComment(Interface): 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) + # 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")) 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")) 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): """A tool that indexes all comments for usage by the management interface.