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
This commit is contained in:
Martin Aspeli
2009-05-23 04:55:06 +00:00
parent 895105b2c9
commit edf956f01c
14 changed files with 60 additions and 29 deletions
+3 -4
View File
@@ -16,7 +16,8 @@ from persistent import Persistent
from zope.interface import implements, implementer
from zope.component import adapts, adapter
from zope.annotation.interfaces import IAnnotations
from zope.annotation.interfaces import IAnnotations, IAnnotatable
from zope.event import notify
@@ -33,8 +34,6 @@ from zope.app.container.contained import ContainerModifiedEvent
from zope.app.container.contained import ObjectAddedEvent
from zope.app.container.contained import ObjectRemovedEvent
from zope.annotation.interfaces import IAnnotatable
from BTrees.OIBTree import OIBTree
try:
@@ -59,7 +58,7 @@ class Conversation(Traversable, Persistent, Explicit):
implements(IConversation)
def __init__(self, id="++comments++"):
def __init__(self, id="++comment++"):
self.id = id
# username -> count of comments; key is removed when count reaches 0