Commit Graph

44 Commits

Author SHA1 Message Date
Timo Stollenwerk
bf96d0082f Remove "Plone 3 only" code; Do not monkey patch the BAD_TYPES vocabulary or plone.app.vocabularies anymore.
svn path=/plone.app.discussion/trunk/; revision=47311
2011-02-08 09:28:51 +00:00
Maurits van Rees
a2a17085a3 Nuke trailing white space
svn path=/plone.app.discussion/trunk/; revision=46366
2010-12-15 23:52:56 +00:00
Timo Stollenwerk
583b25530e Show "moderate comments" link in the admin panel only if a moderation workflow is enabled for comments.
svn path=/plone.app.discussion/trunk/; revision=46206
2010-12-08 17:45:11 +00:00
Timo Stollenwerk
6e9bb4a9cd Check the review_state to decide if moderation is enabled. If the current comment workflow implements a 'pending' state, moderation is enabled. Refs #11184.
svn path=/plone.app.discussion/trunk/; revision=40569
2010-10-08 10:22:40 +00:00
Timo Stollenwerk
94584429fd Do not use has_key.
svn path=/plone.app.discussion/trunk/; revision=40536
2010-10-06 14:12:30 +00:00
Timo Stollenwerk
b984a445d5 Inline documentation for moderation view added.
svn path=/plone.app.discussion/trunk/; revision=40517
2010-10-05 15:14:12 +00:00
Timo Stollenwerk
ad99e45203 Revert r35608 since this was breaking the comment moderation bulk actions. The BulkActionsView expects the absolute path of the comments without the portal url (e.g. '/plone/doc1/++conversation++default/1285346769126020'). This fixes https://dev.plone.org/plone/ticket/11156.
svn path=/plone.app.discussion/trunk/; revision=40227
2010-09-24 17:04:24 +00:00
Timo Stollenwerk
6b4fd0f0c1 Ignore certain lines for code coverage.
svn path=/plone.app.discussion/trunk/; revision=40083
2010-09-20 10:03:55 +00:00
Timo Stollenwerk
e8a4caa5db Some more tests for moderation bulk actions.
svn path=/plone.app.discussion/trunk/; revision=39945
2010-09-16 15:42:27 +00:00
Timo Stollenwerk
8d866a0ff6 Tests for moderate comments bulk actions added.
svn path=/plone.app.discussion/trunk/; revision=39942
2010-09-16 14:58:11 +00:00
Timo Stollenwerk
77d3bc2eb1 Obey the 80 chars limit.
svn path=/plone.app.discussion/trunk/; revision=39570
2010-08-31 17:33:22 +00:00
Timo Stollenwerk
6ca6f58acd Remove unnecessary variables and imports.
svn path=/plone.app.discussion/trunk/; revision=37773
2010-07-13 13:21:12 +00:00
Lennart Regebro
30c66b0b24 A bug in the moderator panel meant you couldn't delete items in a virtual host, if your portal was named "plone".
svn path=/plone.app.discussion/trunk/; revision=35608
2010-04-01 13:48:03 +00:00
Timo Stollenwerk
5ce942d1d2 Rename 'publish comment' to 'approve comment'. This fixes #1608470.
svn path=/plone.app.discussion/trunk/; revision=35342
2010-03-19 09:58:35 +00:00
Timo Stollenwerk
37b8e0fe15 Fix #2419342: Fix untranslated published/deleted status messages. import _ from p.a.d message factory instead of from the standard Plone message factory.
svn path=/plone.app.discussion/trunk/; revision=35092
2010-03-17 12:34:38 +00:00
Timo Stollenwerk
0b530a0a75 Ugly hack that works around a "ContentProviderLookupError: plone.htmlhead" error caused by Zope 2 permissions. See https://bugs.launchpad.net/zope2/+bug/176566 for further details. This error occured on Plone 3.3.x only.
svn path=/plone.app.discussion/trunk/; revision=33275
2010-01-22 16:28:00 +00:00
Timo Stollenwerk
adb0390227 use object_provides instead of portal_type to query the catalog for comments. this fixes bug #2010085;
svn path=/plone.app.discussion/trunk/; revision=32538
2009-12-19 15:03:12 +00:00
Timo Stollenwerk
47cba8797f filter tabs removed from moderation view;
svn path=/plone.app.discussion/trunk/; revision=32355
2009-12-08 11:19:26 +00:00
Timo Stollenwerk
58f8f4bf22 Do not show "publish" bulk action in moderation view when moderation is disabled. Fix story 1105355
.

svn path=/plone.app.discussion/trunk/; revision=30678
2009-10-18 13:12:52 +00:00
Timo Stollenwerk
8db9c8c175 Removing hard coded publish action. evilbungle branch merge.
svn path=/plone.app.discussion/trunk/; revision=30669
2009-10-17 16:14:44 +00:00
Timo Stollenwerk
6daa8824fb Hide the editable-object border in moderation view. elro review fix. refs #9288
svn path=/plone.app.discussion/trunk/; revision=30244
2009-10-07 11:52:44 +00:00
Timo Stollenwerk
8c9a8b9f93 remove limit on zcatalog query for comments.
svn path=/plone.app.discussion/trunk/; revision=29244
2009-08-21 19:53:04 +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
Timo Stollenwerk
bed1b420ba fix publish comment. remove ajax functions for now.
svn path=/plone.app.discussion/trunk/; revision=27864
2009-07-07 08:00:41 +00:00
Timo Stollenwerk
30341e7d6e delete comments_workflow_enabled from moderation view.
svn path=/plone.app.discussion/trunk/; revision=27790
2009-07-03 09:02:47 +00:00
Timo Stollenwerk
d70d872f95 always show comment in the batch moderation view in reverse chronological order, disallow sorting on the table.
svn path=/plone.app.discussion/trunk/; revision=27788
2009-07-03 06:45:29 +00:00
Timo Stollenwerk
cfd70d8cc8 add pagination to moderate comment view.
svn path=/plone.app.discussion/trunk/; revision=27752
2009-06-30 23:17:40 +00:00
Timo Stollenwerk
2e04461162 remove nested forms from moderate comments view. rewrite jquery code for comment delete and publish.
svn path=/plone.app.discussion/trunk/; revision=27750
2009-06-30 22:17:42 +00:00
Timo Stollenwerk
a00dea41e3 differentiate between delete and publish AJAX calls.
svn path=/plone.app.discussion/trunk/; revision=27725
2009-06-29 15:09:41 +00:00
Timo Stollenwerk
6057ad0e91 check if the comment is not already published, before publishing.
svn path=/plone.app.discussion/trunk/; revision=27723
2009-06-29 13:52:51 +00:00
Timo Stollenwerk
7e3de6ae0a remove unnecessary paths variable for BulkActionView methods, set self.paths instead.
svn path=/plone.app.discussion/trunk/; revision=27722
2009-06-29 13:44:46 +00:00
Timo Stollenwerk
502015b14e submit bulkactions with an AJAX call.
svn path=/plone.app.discussion/trunk/; revision=27720
2009-06-29 13:38:00 +00:00
Timo Stollenwerk
8df9ad9cf4 remove return REQUEST statements for AJAX calls, since they are unnecessary.
svn path=/plone.app.discussion/trunk/; revision=27718
2009-06-29 12:24:10 +00:00
Timo Stollenwerk
dd7f59c104 keep current filter when submitting a form.
svn path=/plone.app.discussion/trunk/; revision=27715
2009-06-29 11:11:58 +00:00
Timo Stollenwerk
906fa4ce7e fix publish button for the moderate comments view.
svn path=/plone.app.discussion/trunk/; revision=27713
2009-06-29 09:54:17 +00:00
Timo Stollenwerk
59554b7af7 revert changes from rev. 27698 and 27702. switch back to non-plone table for comment moderation.
svn path=/plone.app.discussion/trunk/; revision=27704
2009-06-28 18:38:25 +00:00
Timo Stollenwerk
14b00ff361 fix publish comment button.
svn path=/plone.app.discussion/trunk/; revision=27702
2009-06-28 18:29:01 +00:00
Timo Stollenwerk
abb0334c1d replace moderate comments table with a subclass of the standard Plone folder-listing table. this basically breaks all functionality (filter, bulk actions) and kss actions are not working yet, but the pagination is working.
svn path=/plone.app.discussion/trunk/; revision=27698
2009-06-28 11:49:00 +00:00
Timo Stollenwerk
ffcdfc22e5 bulk actions for publish and delete added.
svn path=/plone.app.discussion/trunk/; revision=27674
2009-06-26 18:59:37 +00:00
Timo Stollenwerk
fb0bae4877 remove reindexObjectSecurity() call in publish comment method, since it is unnecessary.
svn path=/plone.app.discussion/trunk/; revision=27671
2009-06-26 15:03:20 +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
b757d1b61b format_time method removed from moderation view, since it is not used anymore.
svn path=/plone.app.discussion/trunk/; revision=27625
2009-06-22 10:09:11 +00:00
Timo Stollenwerk
7692186880 return the comment text for the moderation view.
svn path=/plone.app.discussion/trunk/; revision=27383
2009-06-11 13:47:32 +00:00
Timo Stollenwerk
1e71258a0d add moderate-comments view.
svn path=/plone.app.discussion/trunk/; revision=27369
2009-06-10 20:14:44 +00:00