From e113ecf59a5fca1578b45660ce9f3609c0904574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 14 Jun 2011 09:08:23 +0200 Subject: [PATCH] Add contact type --- themis.datatypes.egg-info/SOURCES.txt | 3 ++ themis/datatypes/contact.py | 10 ++++ themis/datatypes/profiles/default/types.xml | 1 + .../types/themis.datatypes.contact.xml | 51 +++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 themis/datatypes/contact.py create mode 100644 themis/datatypes/profiles/default/types/themis.datatypes.contact.xml diff --git a/themis.datatypes.egg-info/SOURCES.txt b/themis.datatypes.egg-info/SOURCES.txt index a50e762..a310762 100644 --- a/themis.datatypes.egg-info/SOURCES.txt +++ b/themis.datatypes.egg-info/SOURCES.txt @@ -13,5 +13,8 @@ themis.datatypes.egg-info/requires.txt themis.datatypes.egg-info/top_level.txt themis/datatypes/__init__.py themis/datatypes/commission.py +themis/datatypes/contact.py +themis/datatypes/deputy.py themis/datatypes/interfaces.py +themis/datatypes/polgroup.py themis/datatypes/tests.py \ No newline at end of file diff --git a/themis/datatypes/contact.py b/themis/datatypes/contact.py new file mode 100644 index 0000000..939af5a --- /dev/null +++ b/themis/datatypes/contact.py @@ -0,0 +1,10 @@ +from five import grok +from zope import schema + +from plone.directives import form, dexterity + +from themis.datatypes.interfaces import MessageFactory as _ + +class IContact(form.Schema): + title = schema.TextLine(title=_(u'Name')) + diff --git a/themis/datatypes/profiles/default/types.xml b/themis/datatypes/profiles/default/types.xml index a70a3f0..875901c 100644 --- a/themis/datatypes/profiles/default/types.xml +++ b/themis/datatypes/profiles/default/types.xml @@ -2,4 +2,5 @@ + diff --git a/themis/datatypes/profiles/default/types/themis.datatypes.contact.xml b/themis/datatypes/profiles/default/types/themis.datatypes.contact.xml new file mode 100644 index 0000000..f5e8dfd --- /dev/null +++ b/themis/datatypes/profiles/default/types/themis.datatypes.contact.xml @@ -0,0 +1,51 @@ + + + + + Contact + A contact + document_icon.gif + False + True + True + + + + themis.datatypes.contact.IContact + + + plone.dexterity.content.Item + + + cmf.AddPortalContent + + + + + + + + view + False + + + + + + + + + + + + + + + + + + +