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
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
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
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
fdaa399983
test for comments viewlet added.
...
svn path=/plone.app.discussion/trunk/; revision=27325
2009-06-06 08:23:33 +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
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
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
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
Timo Stollenwerk
fba5d3f752
commentators test added.
...
svn path=/plone.app.discussion/trunk/; revision=27069
2009-05-23 16:28:10 +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