Timo Stollenwerk
2a1ae7dc62
do not make a captcha check when captcha is disabled; this fixes the non-captcha comment form.
...
svn path=/plone.app.discussion/trunk/; revision=28790
2009-08-13 19:21:52 +00:00
Timo Stollenwerk
e1b068dbbc
captcha validator added.
...
svn path=/plone.app.discussion/trunk/; revision=28746
2009-08-12 20:45:47 +00:00
Timo Stollenwerk
8e9c75a6fc
Set fields as class attribute to make captcha formextender work again. This is kind of ugly, the fields should be enirely omitted and not only hidden.
...
svn path=/plone.app.discussion/trunk/; revision=28370
2009-08-05 09:01:14 +00:00
Timo Stollenwerk
eadbb55a87
fix commenting for anonymous users.
...
svn path=/plone.app.discussion/trunk/; revision=28363
2009-08-04 20:47:25 +00:00
Timo Stollenwerk
2e2528aa76
clean up the imports.
...
svn path=/plone.app.discussion/trunk/; revision=28360
2009-08-04 19:36:33 +00:00
Timo Stollenwerk
ae0b9486b7
remove unnecessary wrap_form.
...
svn path=/plone.app.discussion/trunk/; revision=28358
2009-08-04 19:30:12 +00:00
Timo Stollenwerk
c0d7f326b2
remove "implements(IViewlet)" since the base class takes care of it.
...
svn path=/plone.app.discussion/trunk/; revision=28357
2009-08-04 19:25:40 +00:00
Timo Stollenwerk
01f44e3147
add cancel button.
...
make strings translatable.
svn path=/plone.app.discussion/trunk/; revision=28356
2009-08-04 19:24:47 +00:00
Timo Stollenwerk
6014a65daa
replace CommentFactory() with createObject().
...
svn path=/plone.app.discussion/trunk/; revision=28355
2009-08-04 18:42:17 +00:00
Timo Stollenwerk
c516d6ba55
hide the in_reply_to field inside the comment form.
...
svn path=/plone.app.discussion/trunk/; revision=28351
2009-08-04 15:12:15 +00:00
Timo Stollenwerk
ddd8596dbd
move reply to comment view to z3cform.
...
svn path=/plone.app.discussion/trunk/; revision=28349
2009-08-04 14:51:34 +00:00
Timo Stollenwerk
a5c8fe33ed
redirect after adding a comment.
...
remove unnecessary Comment class.
svn path=/plone.app.discussion/trunk/; revision=28348
2009-08-04 12:55:46 +00:00
Timo Stollenwerk
4876a5fb59
move addComment view to z3cform.
...
svn path=/plone.app.discussion/trunk/; revision=28346
2009-08-04 11:56:52 +00:00
Timo Stollenwerk
878f45029b
fix attribute error when submitting the comment form.
...
omit form fields for comment form the right way.
svn path=/plone.app.discussion/trunk/; revision=28345
2009-08-04 11:35:05 +00:00
Timo Stollenwerk
2e2f6fc690
set form fields manually.
...
svn path=/plone.app.discussion/trunk/; revision=28325
2009-08-02 17:32:41 +00:00
Timo Stollenwerk
424d1c79ed
z3c.form form added to commentsviewlet (not fully functional yet).
...
svn path=/plone.app.discussion/trunk/; revision=28300
2009-08-01 21:47:50 +00:00
Timo Stollenwerk
b106262e31
plone.registry 1.0a2 changed methods to mixedCase (for_interface to forInterface).
...
svn path=/plone.app.discussion/trunk/; revision=28024
2009-07-12 19:13:42 +00:00
Timo Stollenwerk
f85acfa827
Adding missing import for IStatusMessage, fixes validation. evilbungle fix.
...
svn path=/plone.app.discussion/trunk/; revision=27795
2009-07-03 12:06:19 +00:00
Timo Stollenwerk
90440cfeca
add bulk actions and filter to the moderation view.
...
move delete- and publish-comment methods from comment.py to moderation.py.
svn path=/plone.app.discussion/trunk/; revision=27670
2009-06-26 14:57:45 +00:00
Timo Stollenwerk
564e15af40
bug 812754 fixed. "unsuccessfully attempted to uncatalog an object" while trying to delete a comment.
...
svn path=/plone.app.discussion/trunk/; revision=27658
2009-06-24 14:57:18 +00:00
Timo Stollenwerk
f088cb946e
fix bug 834504. Replies have a wrong path index.
...
svn path=/plone.app.discussion/trunk/; revision=27657
2009-06-24 14:03:02 +00:00
Timo Stollenwerk
eec0e2d206
fix comment redirect from "#comment-<comment_id>" to "#<comment_id>".
...
svn path=/plone.app.discussion/trunk/; revision=27601
2009-06-21 20:33:02 +00:00
Timo Stollenwerk
fe4e1390ef
fix redirect from add comment form.
...
svn path=/plone.app.discussion/trunk/; revision=27590
2009-06-21 13:27:02 +00:00
Timo Stollenwerk
b288f3f7fb
fix "Reply button is not working anymore when a reply was posted."
...
Switch HTML anchor from "#comment-<comment_id>" to "#<comment_id>".
svn path=/plone.app.discussion/trunk/; revision=27570
2009-06-21 10:34:12 +00:00
Timo Stollenwerk
8a5408c61d
use IStatusMessage when deleting and publishing comments.
...
svn path=/plone.app.discussion/trunk/; revision=27566
2009-06-21 08:03:08 +00:00
Timo Stollenwerk
b7b0b1801b
very basic form validation added to comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27564
2009-06-21 07:48:33 +00:00
Timo Stollenwerk
c135228419
Use adaption instead of calling the conversationAdapterFactory directly.
...
svn path=/plone.app.discussion/trunk/; revision=27508
2009-06-19 10:00:31 +00:00
Timo Stollenwerk
34ee743bf3
remove all the unnecessary acquisition wrapping of conversation (since the conversationAdapterFactory now returns an aq wrapped conversation).
...
svn path=/plone.app.discussion/trunk/; revision=27501
2009-06-18 20:57:47 +00:00
Timo Stollenwerk
3d4343440c
comments viewlet's format_time now returns localized time.
...
svn path=/plone.app.discussion/trunk/; revision=27471
2009-06-16 20:53:45 +00:00
Timo Stollenwerk
60ed441033
set the username oder creator when a reply is added to a comment.
...
svn path=/plone.app.discussion/trunk/; revision=27447
2009-06-14 17:34:30 +00:00
Timo Stollenwerk
dcc8c329eb
fix the portal messages for deleting and workflow actions.
...
svn path=/plone.app.discussion/trunk/; revision=27444
2009-06-14 17:11:53 +00:00
Timo Stollenwerk
5e26227ea1
fix that anonymous users see a link to a non-existent user-home in the comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27419
2009-06-14 11:10:45 +00:00
Timo Stollenwerk
1670338ace
Add id fall back for Creator if no Username (Title) has been added.
...
svn path=/plone.app.discussion/trunk/; revision=27417
2009-06-14 08:45:17 +00:00
Timo Stollenwerk
9be49ee767
fix delete and publish comment methods.
...
svn path=/plone.app.discussion/trunk/; revision=27415
2009-06-14 07:19:37 +00:00
Timo Stollenwerk
5300e33457
fix the anonymous view for the comments viewlet.
...
refactor get_replies.
svn path=/plone.app.discussion/trunk/; revision=27410
2009-06-13 18:02:59 +00:00
Timo Stollenwerk
c318ecc6c5
remove print statement from former commit.
...
svn path=/plone.app.discussion/trunk/; revision=27409
2009-06-13 17:34:34 +00:00
Timo Stollenwerk
22f50532ff
add workflow buttons to comments viewlet (not working yet).
...
svn path=/plone.app.discussion/trunk/; revision=27408
2009-06-13 17:33:48 +00:00
Timo Stollenwerk
8fb254f73d
add optional workflow actions to the get_replies method of the comments viewlet.
...
switch from Acquisition.explicit to Acquisition.implicit for the comment class.
adjust test_comment to work with Acquisition.implicit.
svn path=/plone.app.discussion/trunk/; revision=27406
2009-06-13 16:46:37 +00:00
Timo Stollenwerk
dd0133e0c0
add delete and workflow actions buttons to comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27384
2009-06-11 13:51:33 +00:00
Timo Stollenwerk
473699dea0
is_discussion_allowed method from the comments viewlet now uses Conversation.enabled.
...
svn path=/plone.app.discussion/trunk/; revision=27381
2009-06-11 10:20:44 +00:00
Timo Stollenwerk
e98a39907a
option to show commenter image added.
...
svn path=/plone.app.discussion/trunk/; revision=27353
2009-06-08 08:23:18 +00:00
Timo Stollenwerk
353c6acfd0
anonymous comments added.
...
svn path=/plone.app.discussion/trunk/; revision=27352
2009-06-08 08:00:15 +00:00
Timo Stollenwerk
1af2b435fd
get_commenter_portrait and get_commenter_home_url methods added to comments viewlet.
...
tests for get_commenter_portrait added.
svn path=/plone.app.discussion/trunk/; revision=27349
2009-06-07 20:58:41 +00:00
Timo Stollenwerk
0d6045682f
format time for comments with python strftime(). no time localization so far.
...
svn path=/plone.app.discussion/trunk/; revision=27231
2009-05-31 11:01:36 +00:00
Timo Stollenwerk
087c428e3e
fix format time in comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27205
2009-05-29 06:32:03 +00:00
Timo Stollenwerk
66f4640ac7
fix redirect after a reply has been added.
...
svn path=/plone.app.discussion/trunk/; revision=27199
2009-05-28 15:16:19 +00:00
Timo Stollenwerk
49aab7389b
show the second "login to comment"-button (below the comments) only when there are replies.
...
svn path=/plone.app.discussion/trunk/; revision=27198
2009-05-28 15:08:36 +00:00
Timo Stollenwerk
aa50c33d8d
show login form instead of the commenting form to anonymous users.
...
svn path=/plone.app.discussion/trunk/; revision=27194
2009-05-28 11:39:36 +00:00
Timo Stollenwerk
2ecd5e76a5
check if discussion is allowed for the comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27190
2009-05-28 06:35:47 +00:00
Timo Stollenwerk
77490ec0d5
Redirect directly to the comment and not to the content object after adding a comment.
...
svn path=/plone.app.discussion/trunk/; revision=27189
2009-05-28 06:11:09 +00:00