[Zope-CMF] Improvements to Discussion Items

2009-03-22 Thread Martin Aspeli
Hi,

I've been working on improving commenting in Plone. I'm not 100% sure 
we'll stay with CMFDefault's idea of Discussion Items forever, but for 
now there are a couple of low-risk things that would make them a lot 
more useful.

  1) Fire an IObjectAddedEvent when a Discussion Item is created
  2) Fire an IObjectRemovedEvent when a Discussion Item deleted
  3) Do not hardcode the review_state of a Discuss Item. This allows 
discussion items to participate in workflow.

  4) Create discussion items based on an IFactory utility rather than 
hardcoding the class.

I've implemented 1-3, along with a simple review workflow and indexers 
that index the number of comments and the people who've commented on a 
content item (to make it easier to find items the current user has 
commented on, and to show the number of comments an item has received in 
a content listing), in a new Plone product, collective.discussionplus. 
There's a file of simple monkey patches to CMFDefault here:

http://dev.plone.org/collective/browser/collective.discussionplus/trunk/collective/discussionplus/patches.py

Would it be useful to push this down into CMF itself? I can't promise I 
have time to do that (with tests) in the short term, but I'm happy to 
help anyone who wants to do it. I may find time later, of course.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


[Zope-CMF] CMF Tests: 6 OK

2009-03-22 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Sat Mar 21 12:00:00 2009 UTC to Sun Mar 22 12:00:00 2009 UTC.
There were 6 messages: 6 from CMF Tests.


Tests passed OK
---

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux
From: CMF Tests
Date: Sat Mar 21 21:48:25 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011095.html

Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.6 : Linux
From: CMF Tests
Date: Sat Mar 21 21:50:29 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011096.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.6 : Linux
From: CMF Tests
Date: Sat Mar 21 21:52:29 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011097.html

Subject: OK : CMF-trunk Zope-2.11 Python-2.4.6 : Linux
From: CMF Tests
Date: Sat Mar 21 21:54:29 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011098.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.6 : Linux
From: CMF Tests
Date: Sat Mar 21 21:56:30 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011099.html

Subject: OK : CMF-trunk Zope-trunk Python-2.5.4 : Linux
From: CMF Tests
Date: Sat Mar 21 21:58:30 EDT 2009
URL: http://mail.zope.org/pipermail/cmf-tests/2009-March/011100.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests