Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
email
Commits
7a00851fa866
Commit
239feb4e
authored
Jul 22, 2014
by
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
Changes
6
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
7a00851f
...
...
@@ -20,7 +20,7 @@ classifiers = [
]
# used packages
__depends__
=
{
'cubicweb'
:
'>= 3.1
5
.0'
,
__depends__
=
{
'cubicweb'
:
'>= 3.1
6
.0'
,
'cubicweb-file'
:
'>= 1.9.0'
,
'logilab-common'
:
'>= 0.58.3'
,
}
...
...
cubicweb-email.spec
View file @
7a00851f
...
...
@@ -20,7 +20,7 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{python} %{python}-setuptools
Requires: cubicweb >= 3.1
5
.0
Requires: cubicweb >= 3.1
6
.0
Requires: cubicweb-file >= 1.9.0
Requires: logilab-common >= 0.58.3
...
...
debian/control
View file @
7a00851f
...
...
@@ -9,7 +9,7 @@ Homepage: http://www.cubicweb.org/project/cubicweb-email
Package: cubicweb-email
Architecture: all
Depends: cubicweb-common (>= 3.1
5
.0), cubicweb-file (>= 1.9.0)
Depends: cubicweb-common (>= 3.1
6
.0), cubicweb-file (>= 1.9.0)
Description: email component for the CubicWeb framework
This CubicWeb component models email messages.
.
...
...
hooks.py
View file @
7a00851f
...
...
@@ -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
)
...
...
views/__init__.py
View file @
7a00851f
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'
)
...
...
views/email.py
View file @
7a00851f
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment