rendered paste bodyfrom Products.Archetypes.public import Schema
from Products.ATContentTypes.content.image import ATImageSchema, ATImage
from Products.Archetypes.public import StringField, StringWidget
from Products.Archetypes.public import registerType
schema = ATImageSchema + Schema((
StringField('photographer',
widget=StringWidget(
label='Fotograf',
description='insert the photographer's name'
)
),
))
schema.moveField('photographer', after='description')
class Photo(ATImage):
""" Photo content type similar to ATImage but with added
"Photographer" field. """
schema = schema
archetype_name = 'Photo'
registerType(Photo, 'Photo')