# -*- coding: utf-8 -*- # # File: BelDonorTeleService.py # # Copyright (c) 2007 by CommunesPlone # Generator: ArchGenXML Version 1.5.3 dev/svn # http://plone.org/products/archgenxml # # GNU General Public License (GPL) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # __author__ = """Gauthier BASTIEN , Stephan GEULETTE """ __docformat__ = 'plaintext' from AccessControl import ClassSecurityInfo from Products.Archetypes.atapi import * from Products.TeleServices.config import * ##code-section module-header #fill in your manual code here ##/code-section module-header schema = Schema(( DateTimeField( name='birthDate', widget=CalendarWidget( description="Date of birth", label='Birthdate', label_msgid='TeleServices_label_birthDate', description_msgid='TeleServices_help_birthDate', i18n_domain='TeleServices', ), searchable=True ), StringField( name='birthPlace', widget=StringWidget( description="Place of birth", label='Birthplace', label_msgid='TeleServices_label_birthPlace', description_msgid='TeleServices_help_birthPlace', i18n_domain='TeleServices', ), searchable=True ), StringField( name='will', widget=SelectionWidget( format="radio", label='Will', label_msgid='TeleServices_label_will', i18n_domain='TeleServices', ), enforceVocabulary=True, vocabulary='listWillingness', searchable=True ), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema BelDonorTeleService_schema = BaseSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema class BelDonorTeleService(BaseContent): """ """ security = ClassSecurityInfo() __implements__ = (getattr(BaseContent,'__implements__',()),) # This name appears in the 'add' box archetype_name = 'BelDonorTeleService' meta_type = 'BelDonorTeleService' portal_type = 'BelDonorTeleService' allowed_content_types = [] filter_content_types = 0 global_allow = 1 #content_icon = 'BelDonorTeleService.gif' immediate_view = 'base_view' default_view = 'base_view' suppl_views = () typeDescription = "BelDonorTeleService" typeDescMsgId = 'description_edit_beldonorteleservice' _at_rename_after_creation = True schema = BelDonorTeleService_schema ##code-section class-header #fill in your manual code here ##/code-section class-header # Methods security.declarePublic('listWills') def listWills(self): """ Return the list of available wills """ #lst = () pass registerType(BelDonorTeleService, PROJECTNAME) # end of class BelDonorTeleService ##code-section module-footer #fill in your manual code here ##/code-section module-footer