Commit 5be3e698 authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

update rtags

parent 7e7686a83e7d
......@@ -22,8 +22,6 @@ class Email(TreeMixIn, AnyEntity):
"""customized class for Email entities"""
id = 'Email'
fetch_attrs, fetch_order = fetch_config(['subject'])
__rtags__ = {'attachment' : 'create',
}
__implements__ = AnyEntity.__implements__ + (ITree,)
tree_attribute = 'reply_to'
......@@ -133,8 +131,6 @@ class EmailThread(AnyEntity):
"""customized class for EmailThread entities"""
id = 'EmailThread'
fetch_attrs, fetch_order = fetch_config(['title'])
__rtags__ = {('forked_from', '*', 'object') : 'create',
}
def dc_title(self):
return self.title
......@@ -19,6 +19,12 @@ for rtype in ('sender', 'recipients', 'cc', 'parts'):
uicfg.autoform_field_kwargs.tag_attribute(('Email', 'subject'),
{'widget': formwidgets.TextInput})
uicfg.actionbox_appearsin_addmenu.tag_subject_of(('Email', 'attachment', '*'),
True)
uicfg.actionbox_appearsin_addmenu.tag_object_of(('EmailThread', 'forked_from', 'EmailThread'),
True)
class EmailPrimaryView(primary.PrimaryView):
__select__ = implements('Email')
......@@ -109,7 +115,7 @@ class EmailThreadView(TreeViewMixIn, baseviews.ListView):
item_vid = 'outofcontext'
class EmailThreadPrimaryView(baseviews.PrimaryView):
class EmailThreadPrimaryView(primary.PrimaryView):
__select__ = implements('EmailThread')
def cell_call(self, row, col):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment