Commit Graph

342 Commits

Author SHA1 Message Date
Timo Stollenwerk
9e405b47a1 qunit files added.
svn path=/plone.app.discussion/trunk/; revision=39143
2010-08-27 20:50:18 +00:00
Timo Stollenwerk
d713409aa1 Use a discussion JS namespace for comments.js; JS tests for clearForm and createReplyForm functions added.
svn path=/plone.app.discussion/trunk/; revision=39104
2010-08-27 17:11:25 +00:00
Timo Stollenwerk
2c5d387cfc Rename js directory to javascripts.
svn path=/plone.app.discussion/trunk/; revision=39066
2010-08-27 12:07:04 +00:00
Timo Stollenwerk
e310c1d021 Basic JS tests added.
svn path=/plone.app.discussion/trunk/; revision=39064
2010-08-27 11:41:39 +00:00
Timo Stollenwerk
a2c89ed5e8 Plain text and intelligent text options for comment text added to preserve basic text structure and to make links clickable.
svn path=/plone.app.discussion/trunk/; revision=38931
2010-08-25 14:03:29 +00:00
Timo Stollenwerk
35d7743b7a Plain text to HTML transformation added for comment text
svn path=/plone.app.discussion/trunk/; revision=38898
2010-08-25 09:19:28 +00:00
Vincent Fretin
352a517a0a Fixed the case where a folder has allow_discussion=False and
conversation.enabled() on a document in this folder returned False
instead of True because of allow_discussion acquisition.

svn path=/plone.app.discussion/trunk/; revision=38835
2010-08-20 11:52:05 +00:00
Timo Stollenwerk
a54a15a90f Remove unnecessary imports and variables from test code.
svn path=/plone.app.discussion/trunk/; revision=37768
2010-07-13 10:45:53 +00:00
Timo Stollenwerk
27d8ced62d revert r37751.
svn path=/plone.app.discussion/trunk/; revision=37753
2010-07-12 13:49:57 +00:00
Timo Stollenwerk
cac0bae7a5 revert r37751.
svn path=/plone.app.discussion/trunk/; revision=37752
2010-07-12 13:47:53 +00:00
Timo Stollenwerk
eabf3bc890 Always use zope.component getUtility instead of queryUtility.
svn path=/plone.app.discussion/trunk/; revision=37751
2010-07-12 13:34:02 +00:00
Florian Friesdorf
5beebe42fa hardcoded fti_title, don't query typestool for Type()
all tests succeed

svn path=/plone.app.discussion/trunk/; revision=35290
2010-03-18 14:42:52 +00:00
Florian Friesdorf
8150617081 fixed #662654: As an administrator, I can configure a Collection to show
recent comments.

Type now correctly returns FTI type title. A catalog rebuild is
necessary.

svn path=/plone.app.discussion/trunk/; revision=35266
2010-03-18 13:22:16 +00:00
Florian Friesdorf
5e6c7f6fdb fixed catalog test to fail for current broken Type()
svn path=/plone.app.discussion/trunk/; revision=35265
2010-03-18 13:22:06 +00:00
Timo Stollenwerk
f5a171a6e0 add missing DiscussionLayer to TestCommentOperations test.
svn path=/plone.app.discussion/trunk/; revision=35129
2010-03-17 15:09:23 +00:00
Timo Stollenwerk
b70774343f collection test added.
svn path=/plone.app.discussion/trunk/; revision=35126
2010-03-17 15:00:19 +00:00
Timo Stollenwerk
52ebbe2e71 Fix #2494228: Remove comments as well when a content object is deleted.
svn path=/plone.app.discussion/trunk/; revision=34965
2010-03-16 15:06:43 +00:00
Timo Stollenwerk
6e226be248 failing test for Pivotal Tracker issue #2494228 added (comment out test for now).
svn path=/plone.app.discussion/trunk/; revision=34915
2010-03-16 11:09:40 +00:00
Timo Stollenwerk
ebc4c408e3 fix tests for conversation.getThreads generator.
svn path=/plone.app.discussion/trunk/; revision=34911
2010-03-16 10:52:25 +00:00
Timo Stollenwerk
4ed9d08119 fix the moderator notification for Plone 3.x.
svn path=/plone.app.discussion/trunk/; revision=34698
2010-03-11 19:23:53 +00:00
Timo Stollenwerk
ce7e47f07b remove the user notification feature for now, since it requires the current z3c.form trunk and does not work with the latest release on PyPi.
svn path=/plone.app.discussion/trunk/; revision=34697
2010-03-11 19:23:26 +00:00
Timo Stollenwerk
1d39b53c4b Merge notification branch into trunk:
New feature: As a moderator, I am notified when new comments require my attention;
New feature: As a commenter, I can enable/disable email notification of additional comments on this object;
Make p.a.d. work with the recent version of plone.z3cform (0.5.10);

svn path=/plone.app.discussion/trunk/; revision=34602
2010-03-06 10:04:34 +00:00
Timo Stollenwerk
d81b95f7c1 more catalog tests added.
svn path=/plone.app.discussion/branches/notification/; revision=34476
2010-03-03 19:20:02 +00:00
Timo Stollenwerk
90c44a7c67 test do not notify user when no sender is available.
svn path=/plone.app.discussion/branches/notification/; revision=33964
2010-02-13 21:44:26 +00:00
Timo Stollenwerk
be3d347471 user email notification added.
svn path=/plone.app.discussion/branches/notification/; revision=33963
2010-02-13 21:31:17 +00:00
Timo Stollenwerk
38fd65f46d remove whitespace to make coverage-test happy.
svn path=/plone.app.discussion/branches/notification/; revision=33929
2010-02-12 10:21:39 +00:00
Timo Stollenwerk
6e46ce7581 test moderator notification enabled setting.
svn path=/plone.app.discussion/branches/notification/; revision=33928
2010-02-12 10:11:01 +00:00
Timo Stollenwerk
f0fb6514c7 Moderator email notification added: As a moderator, I am notified when new comments require my attention.
svn path=/plone.app.discussion/branches/notification/; revision=33921
2010-02-11 21:05:28 +00:00
Timo Stollenwerk
67b5ff566e fix singlecheckboxwidget for comment form.
svn path=/plone.app.discussion/branches/notification/; revision=33873
2010-02-08 18:28:03 +00:00
Timo Stollenwerk
23eeb041aa comment out CommentForm test.
svn path=/plone.app.discussion/trunk/; revision=33845
2010-02-07 11:37:34 +00:00
Timo Stollenwerk
2ffbe75611 collection test added (failing).
svn path=/plone.app.discussion/trunk/; revision=33780
2010-02-05 22:40:38 +00:00
Hanno Schlichting
c27d1b5cc1 De-tabbify
svn path=/plone.app.discussion/trunk/; revision=33491
2010-01-27 14:54:07 +00:00
Timo Stollenwerk
3c22930ba2 test discussion control panel view.
svn path=/plone.app.discussion/trunk/; revision=33314
2010-01-23 09:02:09 +00:00
Timo Stollenwerk
6ca20c7514 Make test coverage happy. 1 second seems to be not enough to create a comment when running the test coverage.
svn path=/plone.app.discussion/trunk/; revision=33309
2010-01-23 07:26:19 +00:00
Timo Stollenwerk
1e58aa63b1 fix CommentViewlet has_replies method.
svn path=/plone.app.discussion/trunk/; revision=33282
2010-01-22 19:02:41 +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
1a1c903086 Integration test for comments viewlet added.
Empty test class for comment form added.

svn path=/plone.app.discussion/trunk/; revision=33271
2010-01-22 12:29:26 +00:00
Timo Stollenwerk
365684f137 test stop iteration for get_replies method.
svn path=/plone.app.discussion/trunk/; revision=33218
2010-01-18 12:20:45 +00:00
Timo Stollenwerk
1bfff5255a more tests for comments viewlet.
svn path=/plone.app.discussion/trunk/; revision=33217
2010-01-18 11:38:57 +00:00
Timo Stollenwerk
ca0aecd170 user portal membership tool for is_anonyous method; tests for comments viewlet added.
svn path=/plone.app.discussion/trunk/; revision=33216
2010-01-18 11:04:08 +00:00
Timo Stollenwerk
77eaee146e tests for comments viewlet added (some are still empty).
svn path=/plone.app.discussion/trunk/; revision=33215
2010-01-18 09:55:44 +00:00
Timo Stollenwerk
dc2e5232f7 fix migration tests. do not use transactions during unit testing.
svn path=/plone.app.discussion/trunk/; revision=32805
2010-01-03 17:36:01 +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
7cd9ef2491 Changing browser:view registrations to browser:page since view doesn't actually do anything with the permissions. This fixes the anyone can delete comments problem. evilbungle branch merge.
svn path=/plone.app.discussion/trunk/; revision=30665
2009-10-17 13:50:55 +00:00
Timo Stollenwerk
1ea36d7d82 Conversation indexers won't work on old discussion items. Fix tests.
svn path=/plone.app.discussion/trunk/; revision=30658
2009-10-17 08:28:50 +00:00
Timo Stollenwerk
e5f1a70de6 Make unit tests pass with Plone 3.3 again. Migration tests still failing.
svn path=/plone.app.discussion/trunk/; revision=30633
2009-10-16 12:11:58 +00:00
Hanno Schlichting
71ed707794 Get this running again for the most part under Plone 4.0 - the main trick was probably to use the new CMFCatalogAware class. Removed collective.testcaselayer dependency, as that broke totally. There's some test failures left, but indexing works in general. Maybe the custom indexing event handlers aren't all required anymore. The title_or_id test failure looks like there's an infinite loop in the __parent__ pointers never reaching the actual content object. This change breaks Plone 3.x compatibility for the moment.
svn path=/plone.app.discussion/trunk/; revision=30629
2009-10-16 00:42:08 +00:00
Timo Stollenwerk
f4a4b6e370 fix catalog clear-and-rebuild. this finally fixes story 847941.
svn path=/plone.app.discussion/trunk/; revision=30610
2009-10-15 10:11:12 +00:00
Timo Stollenwerk
9befc4c651 Monkey patch for clear-and-rebuild catalog added. This fixes story 847941. Nested comments are not reindexed yet.
svn path=/plone.app.discussion/trunk/; revision=30574
2009-10-14 14:58:08 +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
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
dcb3665d36 plone.registry 1.0a2 changed methods to mixedCase (register_interface to registerInterface).
svn path=/plone.app.discussion/trunk/; revision=28041
2009-07-13 10:22:45 +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
39e0faffc9 remove allow_discussion test, since it is unnecessary.
svn path=/plone.app.discussion/trunk/; revision=28023
2009-07-12 18:19:29 +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
360a758905 fix that enabled method check for FTI information of the current content object and not only for the "Document" portal_type.
svn path=/plone.app.discussion/trunk/; revision=27889
2009-07-07 14:48:39 +00:00
Timo Stollenwerk
a946fb54fa indexes for IComment added to override the IConversation indexes.
svn path=/plone.app.discussion/trunk/; revision=27838
2009-07-06 16:56:09 +00:00
Timo Stollenwerk
2031ec67cf comment out failing clear-and-rebuild catalog test.
svn path=/plone.app.discussion/trunk/; revision=27813
2009-07-04 16:14:22 +00:00
Timo Stollenwerk
b014e92f27 remove the available_expr with a workflow name in it.
svn path=/plone.app.discussion/trunk/; revision=27811
2009-07-04 13:44:57 +00:00
Timo Stollenwerk
ac4953ebd6 test for catalog clear and rebuild added.
svn path=/plone.app.discussion/trunk/; revision=27793
2009-07-03 11:22:21 +00:00
Timo Stollenwerk
072f903c3a in_response_to metadata added.
svn path=/plone.app.discussion/trunk/; revision=27789
2009-07-03 08:03:09 +00:00
Timo Stollenwerk
dc78965931 more catalog tests added.
svn path=/plone.app.discussion/trunk/; revision=27787
2009-07-03 06:37:14 +00:00
Timo Stollenwerk
e86df00273 remove unnecessary test code.
svn path=/plone.app.discussion/trunk/; revision=27779
2009-07-02 17:50:49 +00:00
Timo Stollenwerk
41010fb32a fix for "TypeError: can't pickle OIBTreeItems objects".
svn path=/plone.app.discussion/trunk/; revision=27778
2009-07-02 17:50:20 +00:00
Timo Stollenwerk
e42db0295e CatalogSetupTest added.
svn path=/plone.app.discussion/trunk/; revision=27768
2009-07-01 20:59:58 +00:00
Timo Stollenwerk
8a6ab7161d remove CatalogTest from test_comments.
svn path=/plone.app.discussion/trunk/; revision=27767
2009-07-01 20:58:31 +00:00
Timo Stollenwerk
6647439971 indexers for commentators, number of comments, and latest comment added.
svn path=/plone.app.discussion/trunk/; revision=27766
2009-07-01 20:57:55 +00:00
Timo Stollenwerk
9e94afc072 fix description index for short comments.
svn path=/plone.app.discussion/trunk/; revision=27764
2009-07-01 10:01:37 +00:00
Timo Stollenwerk
4cc26a6421 moderation view tests added.
svn path=/plone.app.discussion/trunk/; revision=27679
2009-06-27 09:35:52 +00:00
Timo Stollenwerk
768b2095de fix tests for bugfix 834504 ("Replies have a wrong path index.")
svn path=/plone.app.discussion/trunk/; revision=27661
2009-06-24 20:11:27 +00:00
Timo Stollenwerk
1cc02a3acd Type() is meant to be a method not an attribute.
svn path=/plone.app.discussion/trunk/; revision=27652
2009-06-24 08:25:11 +00:00
Timo Stollenwerk
a3e9105e48 comment catalog tests added.
svn path=/plone.app.discussion/trunk/; revision=27631
2009-06-22 17:06:37 +00:00
Timo Stollenwerk
6d414055bc set correct Type ('Discussion Item') for Comments.
svn path=/plone.app.discussion/trunk/; revision=27629
2009-06-22 12:23:19 +00:00
Timo Stollenwerk
23d4b25218 allow_discussion on folder level implemented.
svn path=/plone.app.discussion/trunk/; revision=27517
2009-06-19 15:51:50 +00:00
Timo Stollenwerk
59586025be add test to make sure that conversation.enabled on a folder always returns False.
svn path=/plone.app.discussion/trunk/; revision=27503
2009-06-18 21:12:38 +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
282e592c8f test to understand the allow_discussion attribute added. I know that this is not a real test. We can remove it again at some point.
svn path=/plone.app.discussion/trunk/; revision=27467
2009-06-16 11:51:25 +00:00
Timo Stollenwerk
baeb3a638c traversal test for the replies adapter added.
svn path=/plone.app.discussion/trunk/; revision=27459
2009-06-15 09:06:47 +00:00
Timo Stollenwerk
886fe17b47 fix commenter portrait tests, since get_commenter_portrait returns a URL instead of an image now.
svn path=/plone.app.discussion/trunk/; revision=27458
2009-06-15 08:54:35 +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
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
e465d73c95 enabled property code added to conversation.
svn path=/plone.app.discussion/trunk/; revision=27380
2009-06-11 10:14:44 +00:00
Timo Stollenwerk
9b66f62b66 remove unnecessary code from workflow test.
svn path=/plone.app.discussion/trunk/; revision=27370
2009-06-10 20:17:36 +00:00
Timo Stollenwerk
c55316d212 comment_review_workflow added.
svn path=/plone.app.discussion/trunk/; revision=27361
2009-06-08 21:16:51 +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
dada11c43c show_commenter_image record added to the discussion control panel.
svn path=/plone.app.discussion/trunk/; revision=27335
2009-06-07 08:47:14 +00:00
Timo Stollenwerk
fdaa399983 test for comments viewlet added.
svn path=/plone.app.discussion/trunk/; revision=27325
2009-06-06 08:23:33 +00:00
Timo Stollenwerk
1cbeb6c7ff tests for discussion controlpanel added.
svn path=/plone.app.discussion/trunk/; revision=27324
2009-06-06 08:14:10 +00:00
Timo Stollenwerk
1ad75fa84f some test code for allow_discussion added.
svn path=/plone.app.discussion/trunk/; revision=27305
2009-06-04 18:17:33 +00:00
Timo Stollenwerk
e671d78806 test for globally_enabled discussion added.
svn path=/plone.app.discussion/trunk/; revision=27302
2009-06-04 15:38:12 +00:00
Timo Stollenwerk
ad8a7b4636 comment edited.
svn path=/plone.app.discussion/trunk/; revision=27297
2009-06-04 14:45:58 +00:00
Timo Stollenwerk
67b7d4ce49 remove test_path test.
svn path=/plone.app.discussion/trunk/; revision=27261
2009-06-02 15:03:48 +00:00
Timo Stollenwerk
a6a64bd3d6 rename all indexes from comment_XXX to XXX. clean up indexes test.
svn path=/plone.app.discussion/trunk/; revision=27259
2009-06-01 23:45:49 +00:00
Timo Stollenwerk
dc948da00b creator index added.
svn path=/plone.app.discussion/trunk/; revision=27258
2009-06-01 23:29:09 +00:00
Timo Stollenwerk
04bed35357 Indexes for created and modified added.
svn path=/plone.app.discussion/trunk/; revision=27257
2009-06-01 23:17:13 +00:00
Timo Stollenwerk
69334f6000 The comment_description index now returns the first 25 words of a comment.
svn path=/plone.app.discussion/trunk/; revision=27252
2009-06-01 09:59:07 +00:00
Timo Stollenwerk
d3ba4f58db Description index added.
svn path=/plone.app.discussion/trunk/; revision=27251
2009-05-31 19:07:35 +00:00
Timo Stollenwerk
ca7752714b remove comment_text index.
svn path=/plone.app.discussion/trunk/; revision=27249
2009-05-31 18:14:42 +00:00
Timo Stollenwerk
5f8acfd805 comment_title, comment_text, and comment_searchable_text indexes added.
svn path=/plone.app.discussion/trunk/; revision=27247
2009-05-31 17:55:46 +00:00
Timo Stollenwerk
95405ee48f test for testing if 'Discussion Item' is not in BAD_TYPES added.
svn path=/plone.app.discussion/trunk/; revision=27246
2009-05-31 17:54:14 +00:00
Timo Stollenwerk
f0724352e5 test for comment view (redirect) added.
svn path=/plone.app.discussion/trunk/; revision=27151
2009-05-27 17:05:12 +00:00
Timo Stollenwerk
731f83b706 remove the test_dict_api from test_comments.py, since the test_dict_api from test_conversation.py tests both IReplies adapters.
svn path=/plone.app.discussion/trunk/; revision=27106
2009-05-25 10:38:58 +00:00
Timo Stollenwerk
0797579bfd delete comment test for CommentReplies adapter added.
svn path=/plone.app.discussion/trunk/; revision=27100
2009-05-25 07:08:26 +00:00
Timo Stollenwerk
ac5d96250b add comment test for the IReplies adapter for comments added.
svn path=/plone.app.discussion/trunk/; revision=27099
2009-05-25 07:02:11 +00:00
Timo Stollenwerk
a948f15971 test delete comment for IReplies added.
svn path=/plone.app.discussion/trunk/; revision=27094
2009-05-24 16:23:49 +00:00
Martin Aspeli
9263a61a31 Delete children when deleting a parent comment.
svn path=/plone.app.discussion/trunk/; revision=27092
2009-05-24 16:19:21 +00:00
Martin Aspeli
a1e11cb5ee Turn getComments() and getThreads() into generators.
svn path=/plone.app.discussion/trunk/; revision=27090
2009-05-24 16:04:49 +00:00
Timo Stollenwerk
2754d897e4 add some more assertions to test dict api.
svn path=/plone.app.discussion/trunk/; revision=27089
2009-05-24 15:36:31 +00:00
Timo Stollenwerk
a3ac44763b test dict api for RepliesTest fixed (conversation returns all comments, replies return only top level comments).
svn path=/plone.app.discussion/trunk/; revision=27088
2009-05-24 15:30:16 +00:00
Timo Stollenwerk
cc45041a97 test dict api for RepliesTest added. (conversation currently returns the wrong number of items!)
svn path=/plone.app.discussion/trunk/; revision=27087
2009-05-24 15:25:49 +00:00
Martin Aspeli
ca0e299cdc Fix dodgy IReplies adapter
svn path=/plone.app.discussion/trunk/; revision=27085
2009-05-24 14:19:06 +00:00
Timo Stollenwerk
69ab219582 test to add a comment to the IReplies adapter on a conversation added. not complete yet!
svn path=/plone.app.discussion/trunk/; revision=27084
2009-05-24 12:34:15 +00:00
Timo Stollenwerk
3733c1fab3 test for conversation dict operations added.
svn path=/plone.app.discussion/trunk/; revision=27082
2009-05-24 10:53:13 +00:00
Timo Stollenwerk
4263b8b5ed test for last comment date added.
svn path=/plone.app.discussion/trunk/; revision=27073
2009-05-23 18:04:39 +00:00
Timo Stollenwerk
1f3c9ea896 errors in commentators test fixed.
svn path=/plone.app.discussion/trunk/; revision=27072
2009-05-23 17:17:06 +00:00
Martin Aspeli
8ffca9009c Ensure workflow is initialised when the comment is added. Also ensure that we won't get an error on unindex if the local utility can't be found.
svn path=/plone.app.discussion/trunk/; revision=27070
2009-05-23 16:37:10 +00:00
Timo Stollenwerk
fba5d3f752 commentators test added.
svn path=/plone.app.discussion/trunk/; revision=27069
2009-05-23 16:28:10 +00:00
Martin Aspeli
8c3c4bdfa0 Add FTI for Discussion Item and test
svn path=/plone.app.discussion/trunk/; revision=27068
2009-05-23 16:12:45 +00:00
Martin Aspeli
e296058c37 Adjust tests since getThreads() is not implemented
svn path=/plone.app.discussion/trunk/; revision=27067
2009-05-23 16:12:13 +00:00
Timo Stollenwerk
5a0276e117 make sure a comment has been added before testing its removal.
svn path=/plone.app.discussion/trunk/; revision=27063
2009-05-23 14:24:24 +00:00
Timo Stollenwerk
8282307e0a fix conversation.__delitem__ function and add test for deleting comments from a conversation.
svn path=/plone.app.discussion/trunk/; revision=27062
2009-05-23 14:18:35 +00:00
Martin Aspeli
2ff696a252 Fix some security issues and make the traversal adapter work with OFS.Traversable. Requires a name, so we now call it ++conversation++default
svn path=/plone.app.discussion/trunk/; revision=27059
2009-05-23 11:52:57 +00:00
Martin Aspeli
edf956f01c Move viewlets to browser package, use a layer instead of an overrides.zcml. Also add ++comment++ namespace, though it may require refactoring
svn path=/plone.app.discussion/trunk/; revision=27055
2009-05-23 04:55:06 +00:00
Timo Stollenwerk
afb07e5f0b test conversation.total_comments instead of len(conversation.getComments()) in test_total_comments.
svn path=/plone.app.discussion/trunk/; revision=27037
2009-05-20 16:07:29 +00:00
Timo Stollenwerk
a279520592 added test for total comments.
svn path=/plone.app.discussion/trunk/; revision=27033
2009-05-20 15:39:45 +00:00
Martin Aspeli
250b556428 Refactor tests and add a lot of skeleton tests we really ought to have
svn path=/plone.app.discussion/trunk/; revision=27012
2009-05-18 15:15:36 +00:00
Martin Aspeli
22ae84735b - specify dependencies
- set profile version to 1 (profile version != package version)
- complete dict APIs and IReplies adapters (not yet fully tested)
- tidy up addComment() and __delitem__ w.r.t events
- sync interfaces with actual code
- move tests to use collective.testcaselayer

svn path=/plone.app.discussion/trunk/; revision=27010
2009-05-18 14:16:48 +00:00
Lennart Regebro
acf00c9de9 Moved the indexing to be a catalog wrapper.
svn path=/plone.app.discussion/trunk/; revision=27005
2009-05-17 18:38:45 +00:00
Lennart Regebro
e35f761939 Added a central tool that indexes certain important data about comments, for usage of the commenting moderation UI.
svn path=/plone.app.discussion/trunk/; revision=26972
2009-05-16 15:05:22 +00:00
Lennart Regebro
a2542ea5a8 Use long timestamps as id
svn path=/plone.app.discussion/trunk/; revision=26964
2009-05-16 11:21:23 +00:00
Lennart Regebro
49c6c45453 First running test.
svn path=/plone.app.discussion/trunk/; revision=26962
2009-05-16 10:34:12 +00:00
Lennart Regebro
a6fb8dd8de Added a test setup.
svn path=/plone.app.discussion/trunk/; revision=26958
2009-05-16 09:47:10 +00:00
Martin Aspeli
6381b14763 check in some skeletal code + notes, nothing concrete or working yet
svn path=/plone.app.discussion/trunk/; revision=26892
2009-05-11 16:52:16 +00:00