# -*- coding: utf-8 -*- # # File: MotivationTerm.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',) ), StringField( name='description', allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword',), widget=VisualWidget( label="Description", description="Description of the motivation term.", description_msgid="TeleServices_help_motiv_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 MotivationTerm_schema = BaseSchema.copy() + \ schema.copy() ##code-section after-schema #fill in your manual code here ##/code-section after-schema class MotivationTerm(BaseContent): """ """ security = ClassSecurityInfo() __implements__ = (getattr(BaseContent,'__implements__',()),) # This name appears in the 'add' box archetype_name = 'MotivationTerm' meta_type = 'MotivationTerm' portal_type = 'MotivationTerm' allowed_content_types = [] filter_content_types = 0 global_allow = 1 #content_icon = 'MotivationTerm.gif' immediate_view = 'base_view' default_view = 'base_view' suppl_views = () typeDescription = "MotivationTerm" typeDescMsgId = 'description_edit_motivationterm' _at_rename_after_creation = True schema = MotivationTerm_schema ##code-section class-header #fill in your manual code here ##/code-section class-header # Methods registerType(MotivationTerm, PROJECTNAME) # end of class MotivationTerm ##code-section module-footer #fill in your manual code here ##/code-section module-footer