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
person
Commits
3627f05d6214
Commit
4d0e4193
authored
May 25, 2011
by
Sylvain Thénault
Browse files
drop now useless bw compat
parent
0e0de9e2dbe6
Changes
3
Hide whitespace changes
Inline
Side-by-side
i18n/en.po
View file @
3627f05d
...
...
@@ -7,6 +7,7 @@ msgstr ""
"PO-Revision-Date: 2008-02-15 10:59+0100\n"
"Last-Translator: Logilab Team <contact@logilab.fr>\n"
"Language-Team: en <contact@logilab.fr>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
...
...
@@ -54,12 +55,6 @@ msgstr "This person"
msgid "a physical person"
msgstr "a physical person"
msgid "actions_addperson-fromemail"
msgstr "add person from sender"
msgid "actions_addperson-fromemail_description"
msgstr "add person from sender"
msgid "add Person im_address IMAddress subject"
msgstr "IM address"
...
...
@@ -145,10 +140,10 @@ msgctxt "Person"
msgid "im_address"
msgstr "IM address"
msgctxt "IMAddress"
msgid "im_address_object"
msgstr "IM address of"
msgctxt "IMAddress"
msgid "im_address_object"
msgstr "IM address of"
...
...
@@ -159,10 +154,10 @@ msgctxt "Person"
msgid "phone"
msgstr "phone"
msgctxt "PhoneNumber"
msgid "phone_object"
msgstr "phone of"
msgctxt "PhoneNumber"
msgid "phone_object"
msgstr "phone of"
...
...
@@ -173,12 +168,12 @@ msgctxt "Person"
msgid "postal_address"
msgstr "postal address"
msgctxt "PostalAddress"
msgid "postal_address_object"
msgstr "
postal
address of"
msgstr "address of"
msgctxt "PostalAddress"
msgid "postal_address_object"
msgstr "address of"
msgstr "
postal
address of"
msgctxt "Person"
msgid "primary_email"
...
...
@@ -191,3 +186,9 @@ msgstr "surname"
msgctxt "Person"
msgid "use_email"
msgstr "use email"
#~ msgid "actions_addperson-fromemail"
#~ msgstr "add person from sender"
#~ msgid "actions_addperson-fromemail_description"
#~ msgstr "add person from sender"
i18n/fr.po
View file @
3627f05d
...
...
@@ -7,6 +7,7 @@ msgstr ""
"PO-Revision-Date: 2010-02-23 07:48+0100\n"
"Last-Translator: Logilab Team <contact@logilab.fr>\n"
"Language-Team: fr <contact@logilab.fr>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
...
...
@@ -54,12 +55,6 @@ msgstr "Cette personne"
msgid "a physical person"
msgstr "une personne physique"
msgid "actions_addperson-fromemail"
msgstr "créer personne à partir de l'expéditeur"
msgid "actions_addperson-fromemail_description"
msgstr "créer personne à partir de l'expéditeur"
msgid "add Person im_address IMAddress subject"
msgstr "adresse de messagerie instantanée"
...
...
@@ -145,10 +140,10 @@ msgctxt "Person"
msgid "im_address"
msgstr "messagerie instantanée"
msgctxt "IMAddress"
msgid "im_address_object"
msgstr "utilisé par"
msgctxt "IMAddress"
msgid "im_address_object"
msgstr "utilisé par"
...
...
@@ -159,10 +154,10 @@ msgctxt "Person"
msgid "phone"
msgstr "téléphone"
msgctxt "PhoneNumber"
msgid "phone_object"
msgstr "téléphone de"
msgctxt "PhoneNumber"
msgid "phone_object"
msgstr "téléphone de"
...
...
@@ -173,10 +168,10 @@ msgctxt "Person"
msgid "postal_address"
msgstr "adresse postale"
msgctxt "PostalAddress"
msgid "postal_address_object"
msgstr "adresse de"
msgctxt "PostalAddress"
msgid "postal_address_object"
msgstr "adresse de"
...
...
@@ -191,3 +186,9 @@ msgstr "nom"
msgctxt "Person"
msgid "use_email"
msgstr "utilise email"
#~ msgid "actions_addperson-fromemail"
#~ msgstr "créer personne à partir de l'expéditeur"
#~ msgid "actions_addperson-fromemail_description"
#~ msgstr "créer personne à partir de l'expéditeur"
schema.py
View file @
3627f05d
from
yams.buildobjs
import
EntityType
,
SubjectRelation
,
String
try
:
from
yams.buildobjs
import
RichString
from
yams.reader
import
context
defined_types
=
context
.
defined
except
ImportError
:
from
cubicweb.schema
import
RichString
from
yams.buildobjs
import
EntityType
,
SubjectRelation
,
String
,
RichString
from
yams.reader
import
context
from
cubicweb.schema
import
RQLConstraint
_
=
unicode
...
...
@@ -21,12 +14,12 @@ class Person(EntityType):
description
=
RichString
(
fulltextindexed
=
True
)
if
'PhoneNumber'
in
defined
_types
:
# from addressbook package
phone
=
SubjectRelation
(
'PhoneNumber'
,
composite
=
'subject'
)
if
'PostalAddress'
in
defined
_types
:
postal_address
=
SubjectRelation
(
'PostalAddress'
,
composite
=
'subject'
)
if
'IMAddress'
in
defined
_types
:
im_address
=
SubjectRelation
(
'IMAddress'
,
composite
=
'subject'
)
if
'PhoneNumber'
in
context
.
defined
:
# from addressbook package
phone
=
SubjectRelation
(
'PhoneNumber'
,
composite
=
'subject'
)
if
'PostalAddress'
in
context
.
defined
:
postal_address
=
SubjectRelation
(
'PostalAddress'
,
composite
=
'subject'
)
if
'IMAddress'
in
context
.
defined
:
im_address
=
SubjectRelation
(
'IMAddress'
,
composite
=
'subject'
)
use_email
=
SubjectRelation
(
'EmailAddress'
,
cardinality
=
'*1'
,
composite
=
'subject'
)
# allowing an email to be the primary email of multiple persons is necessary for
...
...
Write
Preview
Markdown
is supported
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