from Products.Archetypes.atapi import * from Products.Archetypes import Field from SimpleType import SimpleType from Products.Archetypes.config import PKG_NAME ## This has been modified specifically for Fermi TD by Vesselin Velev, Jurand Nogiec fields = ['ImageField'] field_instances = [] for f in fields: field_instances.append(getattr(Field, f)(f.lower())) schema = Schema(tuple(field_instances) + ( LinesField('textarea', widget=TextAreaWidget( label='Part'), ), LinesField('textarea1', widget=TextAreaWidget( label='Field'), ), TextField('textarea2', widget=TextAreaWidget( label='Text'), ), TextField('richtextfield', allowable_content_types=('text/plain', 'text/structured', 'text/restructured', 'text/html', 'application/msword'), widget=RichWidget(label='Discription'), ), )) + ExtensibleMetadata.schema class ComplexType(SimpleType): """A simple archetype""" schema = BaseSchema + schema archetype_name = meta_type = "ComplexType" portal_type = 'ComplexType' registerType(ComplexType, PKG_NAME)