Commit 3a0e7dcb authored by Julien Cristau's avatar Julien Cristau
Browse files

1.8.0 is stable

--HG--
branch : stable
......@@ -13,3 +13,5 @@ f3092f7f5d195ba54cea8f90a74d32882e599232 cubicweb-person-debian-version-1.7.0-1
1e57c1ab507d92bfb7acc660b4975c7430b6f737 cubicweb-person-debian-version-1.7.1-1
d2195eec46033214a5afa39ca039483e8b93039a cubicweb-person-version-1.7.2
f2996eee6e36632165dd58da92631ac0b166b547 cubicweb-person-debian-version-1.7.2-1
b6a51b9f3fb89f5afeba1d3e94ebc661f85588ab cubicweb-person-version-1.8.0
b6a51b9f3fb89f5afeba1d3e94ebc661f85588ab cubicweb-person-debian-version-1.8.0-1
......@@ -4,7 +4,7 @@
modname = 'person'
distname = "cubicweb-%s" % modname
numversion = (1, 7, 2)
numversion = (1, 8, 0)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
......
cubicweb-person (1.8.0-1) unstable; urgency=low
* new upstream release
-- Julien Cristau <julien.cristau@logilab.fr> Fri, 04 Oct 2013 17:30:45 +0200
cubicweb-person (1.7.2-1) unstable; urgency=low
* new upstream release
......
......@@ -3,13 +3,17 @@ Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-dev (>=2.4)
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 7), python (>= 2.6), python-support
Standards-Version: 3.9.3
Homepage: http://www.cubicweb.org/project/cubicweb-person
XS-Python-Version: >= 2.6
Package: cubicweb-person
Architecture: all
Depends: cubicweb-common (>= 3.9.0)
Depends:
cubicweb-common (>= 3.9.0),
${python:Depends},
${misc:Depends},
Recommends: cubicweb-addressbook
Description: person component for the CubicWeb framework
This CubicWeb component models person (firstname, lastname,
......
usr/share/cubicweb/cubes/person
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/person -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/person -name "*.pyo" | xargs rm -f
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
upgrade)
delete_pyo_pyc
;;
remove)
delete_pyo_pyc
;;
purge)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
#DEBHELPER#
......@@ -4,19 +4,21 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build: build-arch build-indep
build-arch:
# Nothing to do
build-indep: build-stamp
build-stamp:
dh_testdir
NO_SETUPTOOLS=1 python setup.py -q build
touch build-stamp
>$@
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -f build-stamp
rm -rf build
find . -name "*.pyc" | xargs rm -f
rm -f changelog.gz
find . -name "*.pyc" -delete
dh_clean
install: build
......@@ -25,7 +27,8 @@ install: build
dh_clean -k
dh_installdirs -i
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-person/usr/
rm -rf debian/cubicweb-addressbook/usr/lib/python*
# remove generated .egg-info file
rm -rf debian/cubicweb-person/usr/lib/python*
# Build architecture-independent files here.
......@@ -37,6 +40,7 @@ binary-indep: build install
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_pysupport -i /usr/share/cubicweb
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
......
"""entity classes for optional person entities
"""entity class person entities
:organization: Logilab
:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
from cubicweb.mixins import EmailableMixIn
from cubicweb.entities import AnyEntity, fetch_config
class Person(EmailableMixIn, AnyEntity):
class Person(AnyEntity):
"""customized class for Person entities"""
__regid__ = 'Person'
fetch_attrs, fetch_order = fetch_config(['surname', 'firstname'])
......
......@@ -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"
......@@ -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"
from yams.buildobjs import EntityType, RelationDefinition, 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,
RelationDefinition)
from yams.reader import context
from cubicweb.schema import RRQLExpression, RQLConstraint
_ = unicode
class Person(EntityType):
......@@ -21,12 +16,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')
......
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