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
d7bbee3a99
revert changes from rev. 27776.
...
svn path=/plone.app.discussion/trunk/; revision=27777
2009-07-02 16:35:28 +00:00
Timo Stollenwerk
045a926621
fix for "TypeError: can't pickle OIBTreeItems objects".
...
svn path=/plone.app.discussion/trunk/; revision=27776
2009-07-02 16:04:02 +00:00
Timo Stollenwerk
8b60038237
topic indexes and metadata added.
...
svn path=/plone.app.discussion/trunk/; revision=27769
2009-07-01 21:13:58 +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
e2ab90641f
remove unnecessary CSS from moderation view.
...
svn path=/plone.app.discussion/trunk/; revision=27763
2009-07-01 09:35:46 +00:00
Timo Stollenwerk
55380327f6
fix fieldset CSS selector.
...
svn path=/plone.app.discussion/trunk/; revision=27762
2009-07-01 09:33:33 +00:00
Timo Stollenwerk
938c1dc2e8
formTab fixes.
...
svn path=/plone.app.discussion/trunk/; revision=27755
2009-07-01 00:04:03 +00:00
Timo Stollenwerk
33577fa13d
make filters look like Plone formTabs.
...
svn path=/plone.app.discussion/trunk/; revision=27753
2009-06-30 23:49:32 +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
8c217ae45a
make action column not sortable.
...
svn path=/plone.app.discussion/trunk/; revision=27751
2009-06-30 22:20:31 +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
15b7347626
rearrange the moderate comment UI.
...
svn path=/plone.app.discussion/trunk/; revision=27735
2009-06-29 21:05:38 +00:00
Timo Stollenwerk
d3f9b90546
fix check/uncheck all.
...
svn path=/plone.app.discussion/trunk/; revision=27734
2009-06-29 20:44:20 +00:00
Timo Stollenwerk
3a9068f643
reset the select fields after publish bulk action.
...
svn path=/plone.app.discussion/trunk/; revision=27733
2009-06-29 20:32:05 +00:00
Timo Stollenwerk
450204fc43
reset the bulkaction field after submitting a bulk action.
...
svn path=/plone.app.discussion/trunk/; revision=27732
2009-06-29 20:08:39 +00:00
Timo Stollenwerk
be04439891
remove the publish form when a comment is published in the view without a filter.
...
svn path=/plone.app.discussion/trunk/; revision=27726
2009-06-29 15:29:51 +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
4a934a2967
do not show the publish bulk action when showing only published comments.
...
svn path=/plone.app.discussion/trunk/; revision=27724
2009-06-29 13:54:51 +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
2bc25c06de
move jQuery code for comment actions from page template to moderation.js.
...
svn path=/plone.app.discussion/trunk/; revision=27721
2009-06-29 13:39:55 +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
da2402865f
minor: comment changed.
...
svn path=/plone.app.discussion/trunk/; revision=27717
2009-06-29 11:16:14 +00:00
Timo Stollenwerk
5885be08cc
fix select all JS for moderation view (do not override the checkbox value).
...
svn path=/plone.app.discussion/trunk/; revision=27716
2009-06-29 11:15:37 +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
c25557650f
add "select all" JS to select all comments in the moderate comments view.
...
svn path=/plone.app.discussion/trunk/; revision=27714
2009-06-29 09:54:53 +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
4cc26a6421
moderation view tests added.
...
svn path=/plone.app.discussion/trunk/; revision=27679
2009-06-27 09:35:52 +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
e0da88efba
show publish button only when comment is in "pending" workflow state.
...
svn path=/plone.app.discussion/trunk/; revision=27673
2009-06-26 16:03:19 +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
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
99b7171265
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27659
2009-06-24 15:30:22 +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
e3e6d5548e
fix bug 834504. Replies have a wrong path index.
...
svn path=/plone.app.discussion/trunk/; revision=27656
2009-06-24 13:55:20 +00:00
Timo Stollenwerk
fee068dc09
let comment Type method return portal_type instead of a string.
...
svn path=/plone.app.discussion/trunk/; revision=27655
2009-06-24 13:18:54 +00:00
Timo Stollenwerk
f0e38ff65a
fix wrong i18n attribute in body text.
...
svn path=/plone.app.discussion/trunk/; revision=27653
2009-06-24 08:26:02 +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
a7d80a1368
i18n added to templates.
...
svn path=/plone.app.discussion/trunk/; revision=27648
2009-06-23 17:44:47 +00:00
Timo Stollenwerk
1008356b30
fix story 833286: IE 6: Comment layer is not displayed correctly.
...
svn path=/plone.app.discussion/trunk/; revision=27647
2009-06-23 15:40:00 +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
bded41ffa4
documentation txt file added.
...
svn path=/plone.app.discussion/trunk/; revision=27626
2009-06-22 10:11:08 +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
641585b052
css styles for the moderation view added.
...
svn path=/plone.app.discussion/trunk/; revision=27624
2009-06-22 10:08:09 +00:00
Timo Stollenwerk
97bdf27f8d
bulk actions and filters added to the bulk moderation view (most of them are non-functional yet).
...
svn path=/plone.app.discussion/trunk/; revision=27623
2009-06-22 10:07:36 +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
d8373799af
Make the comment layer overflow when the commenter image is larger than the comment text.
...
svn path=/plone.app.discussion/trunk/; revision=27599
2009-06-21 17:46:10 +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
e4ac274781
fix that logged in users who are not managers don't see comments at all.
...
svn path=/plone.app.discussion/trunk/; revision=27587
2009-06-21 13:00:28 +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
c35b631e36
don't show non-published comments to anonymous users.
...
svn path=/plone.app.discussion/trunk/; revision=27567
2009-06-21 08:29:42 +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
7eae4783a4
fix multi-submit message error on the reply button.
...
svn path=/plone.app.discussion/trunk/; revision=27545
2009-06-20 20:10:09 +00:00
Timo Stollenwerk
da6764ffa5
remove reply image and css for it.
...
svn path=/plone.app.discussion/trunk/; revision=27536
2009-06-20 16:40:03 +00:00
Timo Stollenwerk
4102fb6f6f
fix reply bug ("TypeError: long() argument must be a string or a number") in Chrome.
...
svn path=/plone.app.discussion/trunk/; revision=27535
2009-06-20 16:24:16 +00:00
Timo Stollenwerk
e9f24cfa74
Complete rewrite of the show/hide reply-to-comment forms.
...
Switch from Javascript event handlers to jQuery event binding.
Replace reply-to-comment image with a standard reply button.
Fix IE7 show reply-to-comment form is not working.
svn path=/plone.app.discussion/trunk/; revision=27533
2009-06-20 16:00:36 +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
d25e2b80c4
enabled is a boolean method now instead of a property.
...
svn path=/plone.app.discussion/trunk/; revision=27509
2009-06-19 10:04:32 +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
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
c8a24e5d74
make conversation.enabled return a boolean (remove the property decorator).
...
Always return false if the content object is a folder.
svn path=/plone.app.discussion/trunk/; revision=27502
2009-06-18 21:02:32 +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
476cc1c5e7
conversationAdapterFactory now always returns the acquisition wrapped conversation object.
...
svn path=/plone.app.discussion/trunk/; revision=27500
2009-06-18 20:53:25 +00:00
Timo Stollenwerk
0a706dec70
fix i18n domain.
...
svn path=/plone.app.discussion/trunk/; revision=27473
2009-06-16 23:25:36 +00:00
Timo Stollenwerk
adb3a6d9be
remove typed in text after copying the reply form.
...
svn path=/plone.app.discussion/trunk/; revision=27472
2009-06-16 23:04:54 +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
de5499d996
show delete and workflow actions buttons on the comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27470
2009-06-16 13:13:40 +00:00
Timo Stollenwerk
28fbad44a7
fix the permissions for delete and publish comments. make the publish-comment button work.
...
svn path=/plone.app.discussion/trunk/; revision=27469
2009-06-16 13:10:58 +00:00
Timo Stollenwerk
f8b317ac7a
add objectIds method to Conversation class to make publish comment work.
...
svn path=/plone.app.discussion/trunk/; revision=27468
2009-06-16 11:52:00 +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
9ad344b4c2
update and reorder todo list.
...
svn path=/plone.app.discussion/trunk/; revision=27466
2009-06-16 10:43:00 +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
e8ce114f4b
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27448
2009-06-14 17:49: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
5c3c77ecbd
show the reply-to-comment button to anonymous users.
...
svn path=/plone.app.discussion/trunk/; revision=27446
2009-06-14 17:33:32 +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
2e1cda3f59
hide delete and workflow actions in the comments viewlet, since they don't work yet.
...
svn path=/plone.app.discussion/trunk/; revision=27416
2009-06-14 07:26:59 +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
9e30b7b3c2
hide the delete and workflow buttons in the moderation view, since they are not working yet.
...
svn path=/plone.app.discussion/trunk/; revision=27414
2009-06-14 07:09:10 +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
24997f4eb9
remove collective.autopermission from main configure.zcml since it's also in the browser configure.zcml.
...
svn path=/plone.app.discussion/trunk/; revision=27385
2009-06-11 13:52:31 +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
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
29466425bb
fix form action links in the moderation view.
...
svn path=/plone.app.discussion/trunk/; revision=27382
2009-06-11 13:44:22 +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
0f7d05566a
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27379
2009-06-11 10:13:05 +00:00
Timo Stollenwerk
9558732ed9
revert changes from 27368 (add enabled to interface). A property with the same name and function is already there.
...
svn path=/plone.app.discussion/trunk/; revision=27378
2009-06-11 03:37:55 +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
1e71258a0d
add moderate-comments view.
...
svn path=/plone.app.discussion/trunk/; revision=27369
2009-06-10 20:14:44 +00:00
Timo Stollenwerk
c1696a9756
add enabled property to IConversation interface.
...
svn path=/plone.app.discussion/trunk/; revision=27368
2009-06-10 20:13:29 +00:00
Timo Stollenwerk
799365dd94
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27367
2009-06-10 20:12:17 +00:00
Timo Stollenwerk
5441976dca
show reply-to-comment button based on permissions/workflow.
...
svn path=/plone.app.discussion/trunk/; revision=27363
2009-06-09 15:52:20 +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
468e32a6ed
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27360
2009-06-08 19:44:57 +00:00
Timo Stollenwerk
4529e8122e
icon added to discussion control panel.
...
svn path=/plone.app.discussion/trunk/; revision=27357
2009-06-08 15:04:21 +00:00
Timo Stollenwerk
65ba6e1a67
remove debug message from comments template.
...
svn path=/plone.app.discussion/trunk/; revision=27355
2009-06-08 14:51:43 +00:00
Timo Stollenwerk
9439e7ad9d
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27354
2009-06-08 08:24:45 +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
22a4916afa
fix comments view. call getPersonalPortrait in the template again.
...
svn path=/plone.app.discussion/trunk/; revision=27351
2009-06-08 07:28:59 +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
8bfa2cfa3f
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27334
2009-06-07 08:30:53 +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
180e0e75e7
todo list update.
...
svn path=/plone.app.discussion/trunk/; revision=27314
2009-06-05 11:27:16 +00:00
Timo Stollenwerk
41db8ff395
Fix bouncing fieldset when reply form is shown.
...
svn path=/plone.app.discussion/trunk/; revision=27311
2009-06-05 09:05:34 +00:00
Timo Stollenwerk
854f98ebbe
add slidedown effect when the reply-to-comment form is opened.
...
svn path=/plone.app.discussion/trunk/; revision=27310
2009-06-05 07:07:18 +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
b1ab18dddc
show commenting viewlet only when isDiscussionAllowed is true.
...
svn path=/plone.app.discussion/trunk/; revision=27290
2009-06-03 17:05:26 +00:00
Timo Stollenwerk
e4a62a2c0d
comment with todo for discussion control panel added.
...
svn path=/plone.app.discussion/trunk/; revision=27288
2009-06-03 15:24:48 +00:00
Timo Stollenwerk
ccf1e0456f
add anonymous_comments option to the discussion control panel.
...
svn path=/plone.app.discussion/trunk/; revision=27287
2009-06-03 14:58:49 +00:00
Timo Stollenwerk
57c534b5d3
add globally_enabled option to the discussion plone control panel. add plone.app.discussion to the package dependencies.
...
svn path=/plone.app.discussion/trunk/; revision=27273
2009-06-03 12:49:34 +00:00
Timo Stollenwerk
f27156e916
Added basic infrastructure for discussion controlpanel.
...
svn path=/plone.app.discussion/trunk/; revision=27269
2009-06-02 21:20:53 +00:00
Timo Stollenwerk
47911fa24a
use slideUp() instead of hide() jquery function to hide the reply form.
...
svn path=/plone.app.discussion/trunk/; revision=27264
2009-06-02 16:36:16 +00:00
Timo Stollenwerk
b9aeabedb1
fix the error of showing too much reply forms in the reply-to-comment jquery function.
...
svn path=/plone.app.discussion/trunk/; revision=27263
2009-06-02 16:13:44 +00:00
Timo Stollenwerk
068583db76
cancel button added to the reply-to-comment form.
...
svn path=/plone.app.discussion/trunk/; revision=27262
2009-06-02 15:09:25 +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
1340aefe4e
rename indexes "title" => "Title" and "searchable_text" => "SearchableText".
...
svn path=/plone.app.discussion/trunk/; revision=27250
2009-05-31 18:20:41 +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
ee5aa9ae4d
Monkey patch plone.app.vocabularies.types.BAD_TYPES
...
svn path=/plone.app.discussion/trunk/; revision=27245
2009-05-31 17:49:33 +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
0ce270bc66
show the default user image to anonymous (comments viewlet).
...
svn path=/plone.app.discussion/trunk/; revision=27230
2009-05-31 10:43:35 +00:00
Timo Stollenwerk
751ae5a06a
revert 27204: change import for discussion modification_date from datetime to DateTime.
...
svn path=/plone.app.discussion/trunk/; revision=27213
2009-05-30 06:08:44 +00:00
Timo Stollenwerk
4b6b0aeb02
some CSS fixes for the personal portrait in the comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27207
2009-05-29 07:13:05 +00:00
Timo Stollenwerk
7083856268
fetch user image with getPersonalPortrait().
...
svn path=/plone.app.discussion/trunk/; revision=27206
2009-05-29 07:12:20 +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
9a91b6f9ed
change import for discussion modification_date from datetime to DateTime.
...
svn path=/plone.app.discussion/trunk/; revision=27204
2009-05-29 06:30:55 +00:00
Timo Stollenwerk
b73c43119d
show the reply-to-comment button only to logged in users.
...
svn path=/plone.app.discussion/trunk/; revision=27200
2009-05-28 15:16:49 +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
77e8093c53
don't show the link to the author's page on the comments viewlet to anonymous users.
...
svn path=/plone.app.discussion/trunk/; revision=27192
2009-05-28 07:04:35 +00:00
Timo Stollenwerk
4d0541bfd8
resize the commenter's image with css;
...
svn path=/plone.app.discussion/trunk/; revision=27191
2009-05-28 07:00:40 +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
Timo Stollenwerk
660ee78ca0
User Story: As a visitor, I can view portraits, full name and username against each comment, with a link to the author profile
...
svn path=/plone.app.discussion/trunk/; revision=27188
2009-05-28 06:08:55 +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
05f46268f4
comment view that redirects to the comment added. no unit test so far!
...
svn path=/plone.app.discussion/trunk/; revision=27144
2009-05-27 13:23:25 +00:00
Timo Stollenwerk
5f52a0d56b
HTML anker added to every comment, so when the reply-to-comment button is hit, the browser scrolls to the right position.
...
svn path=/plone.app.discussion/trunk/; revision=27143
2009-05-27 07:33:13 +00:00
Timo Stollenwerk
c1aedbefb0
Show the reply-to-comment button only when Javascript is enabled. Otherwise hide it, since the reply functions rely on jQuery.
...
svn path=/plone.app.discussion/trunk/; revision=27142
2009-05-27 07:26:21 +00:00
Timo Stollenwerk
6a7b4fa778
discussion css file registered.
...
svn path=/plone.app.discussion/trunk/; revision=27141
2009-05-27 07:25:19 +00:00
Timo Stollenwerk
4769fbc2f7
threaded view added to comments viewlet.
...
svn path=/plone.app.discussion/trunk/; revision=27140
2009-05-27 06:58:00 +00:00
Timo Stollenwerk
72532517a6
"TODO" removed from a comment.
...
svn path=/plone.app.discussion/trunk/; revision=27129
2009-05-26 20:02:42 +00:00
Timo Stollenwerk
d8cfdf258d
reply-to-comment view and jquery forms added.
...
svn path=/plone.app.discussion/trunk/; revision=27128
2009-05-26 19:58:59 +00:00
Timo Stollenwerk
bda70af828
reply-to-comment view and jquery forms added.
...
svn path=/plone.app.discussion/trunk/; revision=27127
2009-05-26 19:58:33 +00:00
Timo Stollenwerk
2b0133aa64
documentByLine added to the comments viewlet (to localized time is not working yet).
...
svn path=/plone.app.discussion/trunk/; revision=27119
2009-05-26 07:25:14 +00:00
Timo Stollenwerk
9b73aa76c5
documentByLine added to the comments viewlet (to localized time is not working yet).
...
svn path=/plone.app.discussion/trunk/; revision=27118
2009-05-26 07:24:52 +00:00
Timo Stollenwerk
c7a898933a
fix redirect to content object after calling the add-comment view.
...
svn path=/plone.app.discussion/trunk/; revision=27117
2009-05-26 07:22:36 +00:00
Timo Stollenwerk
81affa21c3
move comment form below the comments.
...
svn path=/plone.app.discussion/trunk/; revision=27114
2009-05-25 19:24:21 +00:00
Timo Stollenwerk
ad06e9a7e6
make comments viewlet show the plone.app.discussion comments and allow to add new comments. (redirection after add-comment is not working yet)
...
svn path=/plone.app.discussion/trunk/; revision=27112
2009-05-25 18:59:25 +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
56a3f92023
Reminder
...
svn path=/plone.app.discussion/trunk/; revision=27093
2009-05-24 16:21:14 +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
a8bc95be77
Update to-do
...
svn path=/plone.app.discussion/trunk/; revision=27071
2009-05-23 16:42:30 +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
Martin Aspeli
c28bfbe18f
d'oh!
...
svn path=/plone.app.discussion/trunk/; revision=27066
2009-05-23 16:10:24 +00:00
Martin Aspeli
ac8fd41c10
Avoid test failures for now
...
svn path=/plone.app.discussion/trunk/; revision=27065
2009-05-23 15:59:15 +00:00
Martin Aspeli
7284f2d9e2
Safer fallback - this method will have a different return signature when implemented
...
svn path=/plone.app.discussion/trunk/; revision=27064
2009-05-23 15:50:21 +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
895105b2c9
added viewlet that overrides the standard plone commenting viewlet (no tests so far!).
...
svn path=/plone.app.discussion/trunk/; revision=27045
2009-05-22 17:30:52 +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
7d79304b33
Update to-do and interface documentation
...
svn path=/plone.app.discussion/trunk/; revision=27013
2009-05-18 15:49:48 +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
f5a781501b
Register IReplies adapters. Remove version.txt since we now get this from setup.py
...
svn path=/plone.app.discussion/trunk/; revision=27011
2009-05-18 14:23:46 +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
Martin Aspeli
51b076935e
Typo fix + remove needless property
...
svn path=/plone.app.discussion/trunk/; revision=26963
2009-05-16 10:57:49 +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
e0e313c919
Some more recent thoughts
...
svn path=/plone.app.discussion/trunk/; revision=26953
2009-05-16 04:46:47 +00:00
Martin Aspeli
d3a9cecf6b
More notes/thoughts
...
svn path=/plone.app.discussion/trunk/; revision=26919
2009-05-13 15:20:02 +00:00
Martin Aspeli
3b2db86d54
Some more design notes/sketchings. Nothing that works yet.
...
svn path=/plone.app.discussion/trunk/; revision=26918
2009-05-13 14:54:06 +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