from cenditel.ppm.cynin.config import ( PROJECTNAME, TYPE_SUBFOLDER_PROJECT, SCHEDULE_STATUS_PROJECT, BUDGET_STATUS_PROJECT, ) from cenditel.ppm.interfaces import Iproject # from cenditel.ppm.validator import UsersValidator projectSchema = folder.ATFolderSchema.copy() + atapi.Schema( ( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( name="manager", widget=atapi.SelectionWidget(label=_(u"Manager"), description=_(u"Project Manager"), format="select"), schemata="Project", required=True, searchable=True, vocabulary_factory="cenditel.ppm.user", # validators=('areThereUsers',), ), atapi.StringField( name="status", widget=atapi.SelectionWidget(format="select", label=_(u"Status"), description=_(u"Project Status")), schemata="Project", vocabulary=SCHEDULE_STATUS_PROJECT, ), atapi.DateTimeField( name="begin_date", widget=atapi.CalendarWidget(