Commit Graph

178 Commits

Author SHA1 Message Date
Carsten Senger
c145378f34 Allways use an accessor method on the comment, never access the
attribute directly as the attribute is not acquisition wrapped 
and a permission check for the required permission will fail

svn path=/plone.app.discussion/trunk/; revision=29205
2009-08-20 02:17:02 +00:00
Carsten Senger
984a1fed7d Zope 2.12 compatibility: ViewPageTemplate's id property is read only
svn path=/plone.app.discussion/trunk/; revision=29203
2009-08-20 02:11:57 +00:00
Carsten Senger
06b332a801 Compatibility with Zope 2.12: don't wrap the ViewPageTemplate into an acquisition wrapper.
svn path=/plone.app.discussion/trunk/; revision=29201
2009-08-20 02:09:53 +00:00
Timo Stollenwerk
775fc1572a Plone CSS classes added to buttons.
svn path=/plone.app.discussion/trunk/; revision=29108
2009-08-17 21:46:44 +00:00
Timo Stollenwerk
962e4dd0d3 autoresize css class added to comment-textarea.
svn path=/plone.app.discussion/trunk/; revision=29104
2009-08-17 20:31:37 +00:00
Timo Stollenwerk
4a78ce44e0 fix captcha import; unit tests pass without p.f.captcha installed.
svn path=/plone.app.discussion/trunk/; revision=28942
2009-08-15 19:44:39 +00:00
Timo Stollenwerk
50de2b4031 fix discussion control panel description.
svn path=/plone.app.discussion/trunk/; revision=28939
2009-08-15 17:49:50 +00:00
Timo Stollenwerk
987805c927 fix inline validation for reply-to-comment form.
svn path=/plone.app.discussion/trunk/; revision=28923
2009-08-15 16:36:49 +00:00
Timo Stollenwerk
dbff6b4f67 add captcha check for reply-to-comment form.
svn path=/plone.app.discussion/trunk/; revision=28922
2009-08-15 16:36:35 +00:00
Timo Stollenwerk
bbf7cb5685 show captcha validation only for anonymous users.
svn path=/plone.app.discussion/trunk/; revision=28902
2009-08-15 11:35:54 +00:00
Timo Stollenwerk
2567483281 CaptchaValidator for captcha/recaptcha/no captcha added. This is necessary because the zcml registration of the CaptchaValidator has to work with all three options.
svn path=/plone.app.discussion/trunk/; revision=28894
2009-08-15 10:21:26 +00:00
Timo Stollenwerk
cdfbdb3d7d remove debug line.
svn path=/plone.app.discussion/trunk/; revision=28819
2009-08-14 09:02:42 +00:00
Timo Stollenwerk
dff06b8c8c show post-comment form when user is logged in or user is not logged in and anonymous comments are allowed.
svn path=/plone.app.discussion/trunk/; revision=28817
2009-08-14 09:02:00 +00:00
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
ce30a1b594 remove SimpleFieldValidator import fallback, because it breaks the CaptchaValidator.
svn path=/plone.app.discussion/trunk/; revision=28789
2009-08-13 18:53:27 +00:00
Timo Stollenwerk
c3a0631813 add hint for enabling comment moderation workflow.
svn path=/plone.app.discussion/trunk/; revision=28760
2009-08-13 13:52:50 +00:00
Timo Stollenwerk
f4f0e29e96 fix errors that are thrown when plone.formwidget.captcha is not installed.
svn path=/plone.app.discussion/trunk/; revision=28755
2009-08-13 10:01:40 +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
0ba3bda065 unnecessary AttributeAnnotations removed.
imports for captcha/recaptcha added.

svn path=/plone.app.discussion/trunk/; revision=28745
2009-08-12 19:20:18 +00:00
Timo Stollenwerk
7f7c4b1345 captcha registry entry and vocabulary added.
svn path=/plone.app.discussion/trunk/; revision=28679
2009-08-11 09:45:34 +00:00
Timo Stollenwerk
5500c8d42e remove old files.
svn path=/plone.app.discussion/trunk/; revision=28677
2009-08-11 09:39:17 +00:00
Timo Stollenwerk
ffcd7d7a31 adapt CaptchaExtender to CommentForm only.
svn path=/plone.app.discussion/trunk/; revision=28642
2009-08-10 16:38:41 +00:00
Timo Stollenwerk
ef8e34adbb Add dead-simple captcha to show the z3c-form-extender works.
svn path=/plone.app.discussion/trunk/; revision=28371
2009-08-05 09:01:58 +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
a63f518bcb fix the cancel button for the comment reply form.
svn path=/plone.app.discussion/trunk/; revision=28354
2009-08-04 18:39:10 +00:00
Timo Stollenwerk
12ee7d6a5a show/hide the comment/reply button inside the comment/reply-to-comment forms.
svn path=/plone.app.discussion/trunk/; revision=28352
2009-08-04 15:19:20 +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
98204dc84a fix the recursive migrate_replies function, so that it returns True only after all comments on a certain level have been migrated.
svn path=/plone.app.discussion/trunk/; revision=28054
2009-07-13 22:14:30 +00:00
Timo Stollenwerk
377f9ddbfd fix depth in migrated comments and add more complex threaded test case.
svn path=/plone.app.discussion/trunk/; revision=28053
2009-07-13 21:01:38 +00:00
Timo Stollenwerk
8bc0b068ae delete old replies and talkbacks during the migration.
svn path=/plone.app.discussion/trunk/; revision=28052
2009-07-13 20:22:37 +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
356db660b0 migrate creation_date and modification_date too.
svn path=/plone.app.discussion/trunk/; revision=28019
2009-07-12 17:55:54 +00:00
Timo Stollenwerk
18ee5159bd function to recursively migrate comments added.
svn path=/plone.app.discussion/trunk/; revision=28016
2009-07-12 16:09:34 +00:00
Timo Stollenwerk
d7eaab75c8 add migration test for comment Creator and nested comments.
svn path=/plone.app.discussion/trunk/; revision=27960
2009-07-12 07:09:07 +00:00
Timo Stollenwerk
88cbd01379 migration view and very simple first test added.
svn path=/plone.app.discussion/trunk/; revision=27894
2009-07-07 16:16:58 +00:00
Timo Stollenwerk
546b78c07b remove browser/images directory.
svn path=/plone.app.discussion/trunk/; revision=27875
2009-07-07 09:22:55 +00:00
Timo Stollenwerk
8dbc7c0bc5 add padding to moderate comments fieldset.
svn path=/plone.app.discussion/trunk/; revision=27867
2009-07-07 08:21:36 +00:00
Timo Stollenwerk
97205fbbf8 show message when there are no comments to moderate.
svn path=/plone.app.discussion/trunk/; revision=27866
2009-07-07 08:08:59 +00:00