from Products.Archetypes.public import * from Products.Archetypes.Marshall import * from Products.CMFCore import * from config import PROJECTNAME schema = BaseSchema + Schema(( DateTimeField('born', widget=StringWidget(), ), StringField('pref', widget=StringWidget(), ), ), marshall=PrimaryFieldMarshaller(), ) class Talent(BaseContent): schema = schema actions = ({ 'id': 'view', 'name': 'View', 'action': 'string:${object_url}/talent_view', 'permissions': (permissions.View,) },) registerType(Talent, PROJECTNAME)