# -*- coding: utf-8 -*- # # File: DestinationTerm.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(( FloatField( name='price', default="0", widget=DecimalWidget( label='Price', label_msgid='TeleServices_label_price', i18n_domain='TeleServices', ), validators=('isDecimal',) ), BooleanField( name='paymentRequired', default="False", widget=BooleanField._properties['widget']( label='Paymentrequired', label_msgid='TeleServices_label_paymentRequired', i18n_domain='TeleServices', ) ), StringField( name='description', allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword',), widget=VisualWidget( description="Description of the destination term.", description_msgid="TeleServices_help_dest_description", label='Description', label_msgid='TeleServices_label_description', i18n_domain='TeleServices', ), default_output_type='text/html', accessor= 'Description' ), ), ) ##code-section after-local-schema #fill in your manual code here ##/code-section after-local-schema DestinationTerm_schema = BaseSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema class DestinationTerm(BaseContent): """ """ security = ClassSecurityInfo() __implements__ = (getattr(BaseContent,'__implements__',()),) # This name appears in the 'add' box archetype_name = 'DestinationTerm' meta_type = 'DestinationTerm' portal_type = 'DestinationTerm' allowed_content_types = [] filter_content_types = 0 global_allow = 1 #content_icon = 'DestinationTerm.gif' immediate_view = 'base_view' default_view = 'base_view' suppl_views = () typeDescription = "DestinationTerm" typeDescMsgId = 'description_edit_destinationterm' _at_rename_after_creation = True schema = DestinationTerm_schema ##code-section class-header #fill in your manual code here ##/code-section class-header # Methods registerType(DestinationTerm, PROJECTNAME) # end of class DestinationTerm ##code-section module-footer #fill in your manual code here ##/code-section module-footer