Skip to content
Snippets Groups Projects
Commit 2cce5966c76f authored by sylvain thenault's avatar sylvain thenault
Browse files

update selectors

parent 70bec3c55c0e
No related branches found
No related tags found
No related merge requests found
from cubicweb.selectors import implements
from cubicweb.sobjects.notification import ContentAddedView
class BlogEntryAddedView(ContentAddedView):
"""get notified from new blogs"""
......@@ -1,8 +2,8 @@
from cubicweb.sobjects.notification import ContentAddedView
class BlogEntryAddedView(ContentAddedView):
"""get notified from new blogs"""
accepts = ('BlogEntry',)
__select__ = implements('BlogEntry',)
content_attr = 'content'
def subject(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment