Commit 239feb4e authored by Julien Cristau's avatar Julien Cristau
Browse files

Update for cubicweb 3.16

cubicweb.web.uicfg is now cubicweb.web.views.uicfg, and cw_set replaces
set_relations.
parent d4ff3d637fd1
......@@ -20,7 +20,7 @@ classifiers = [
]
# used packages
__depends__ = {'cubicweb': '>= 3.15.0',
__depends__ = {'cubicweb': '>= 3.16.0',
'cubicweb-file': '>= 1.9.0',
'logilab-common': '>= 0.58.3',
}
......
......@@ -20,7 +20,7 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.15.0
Requires: cubicweb >= 3.16.0
Requires: cubicweb-file >= 1.9.0
Requires: logilab-common >= 0.58.3
......
......@@ -9,7 +9,7 @@ Homepage: http://www.cubicweb.org/project/cubicweb-email
Package: cubicweb-email
Architecture: all
Depends: cubicweb-common (>= 3.15.0), cubicweb-file (>= 1.9.0)
Depends: cubicweb-common (>= 3.16.0), cubicweb-file (>= 1.9.0)
Description: email component for the CubicWeb framework
This CubicWeb component models email messages.
.
......
......@@ -80,7 +80,7 @@ class AnalyzeEmailText(hook.Operation):
def fire_event(self, event, evargs):
if event == 'state-changed':
evargs['trinfo'].set_relations(generated_by=self.email)
evargs['trinfo'].cw_set(generated_by=self.email)
fix_ownership(self.session, evargs['trinfo'].eid, self.email)
......
from cubicweb.predicates import is_instance
from cubicweb.web import uicfg
from cubicweb.web.views import ibreadcrumbs
from cubicweb.web.views import ibreadcrumbs, uicfg
_pvs = uicfg.primaryview_section
_pvs.tag_object_of(('Email', 'in_thread', 'EmailThread'), 'hidden')
......
......@@ -12,8 +12,8 @@ from logilab.mtconverter import xml_escape
from cubicweb.predicates import is_instance
from cubicweb.uilib import soup2xhtml
from cubicweb.view import EntityView
from cubicweb.web import uicfg, formwidgets
from cubicweb.web.views import baseviews, primary
from cubicweb.web import formwidgets
from cubicweb.web.views import baseviews, primary, uicfg
for rtype in ('sender', 'recipients', 'cc', 'parts'):
uicfg.primaryview_section.tag_subject_of(('Email', rtype, '*'), 'hidden')
......
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