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
7cf6138faee6
Commit
fb583236
authored
Jul 27, 2010
by
Sylvain Thénault
Browse files
cleanup
parent
7da2db17d61e
Changes
2
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
7cf6138f
"""entity classes for entity types provided by the cubicweb email package
:organization: Logilab
:copyright: 2003-200
9
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-20
1
0 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__
=
"restructuredtext en"
...
...
schema.py
View file @
7cf6138f
"""entity/relation schemas to store email in an cubicweb instance
:organization: Logilab
:copyright: 2006-200
9
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2006-20
1
0 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__
=
"restructuredtext en"
...
...
@@ -10,11 +10,8 @@ _ = unicode
# pylint: disable-msg=E0611,F0401
from
yams.buildobjs
import
(
SubjectRelation
,
RelationType
,
EntityType
,
String
,
Datetime
,
Int
,
RelationDefinition
)
try
:
from
yams.reader
import
context
defined_types
=
context
.
defined
except
ImportError
:
pass
from
yams.reader
import
context
from
cubicweb.schema
import
ERQLExpression
...
...
@@ -82,7 +79,7 @@ class generated_by(RelationType):
object
=
'Email'
# if comment is installed
if
'Comment'
in
defined
_types
:
if
'Comment'
in
context
.
defined
:
class
comment_generated_by
(
RelationDefinition
):
subject
=
'Comment'
name
=
'generated_by'
...
...
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