From: <bcs...@us...> - 2003-04-22 21:41:17
|
Update of /cvsroot/archetypes/ArchExample In directory sc8-pr-cvs1:/tmp/cvs-serv28033 Modified Files: Article.py config.py Log Message: *added example vocab, people ask Index: Article.py =================================================================== RCS file: /cvsroot/archetypes/ArchExample/Article.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Article.py 17 Apr 2003 22:12:21 -0000 1.5 --- Article.py 22 Apr 2003 21:41:13 -0000 1.6 *************** *** 1,6 **** --- 1,11 ---- + from Products.ArchExample.config import * from Products.Archetypes.public import * from Products.CMFCore import CMFCorePermissions schema = BaseSchema + Schema(( + StringField('group', + vocabulary=ARTICLE_GROUPS, + widget=SelectionWidget(), + ), StringField('blurb', searchable=1, Index: config.py =================================================================== RCS file: /cvsroot/archetypes/ArchExample/config.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.py 17 Apr 2003 19:49:05 -0000 1.2 --- config.py 22 Apr 2003 21:41:13 -0000 1.3 *************** *** 1,6 **** ! ADD_CONTENT_PERMISSION = 'Add example content' PROJECTNAME = "ArchExample" SKINS_DIR = 'skins' GLOBALS = globals() --- 1,18 ---- ! from Products.CMFCore.CMFCorePermissions import AddPortalContent ! from Products.Archetypes.public import DisplayList ! ! ADD_CONTENT_PERMISSION = AddPortalContent PROJECTNAME = "ArchExample" SKINS_DIR = 'skins' GLOBALS = globals() + + ARTICLE_GROUPS = DisplayList(( + ('headline', 'Headline'), + ('bulletin', 'Special Bulletin'), + ('column', 'Weekly Column'), + ('editorial', 'Editorial'), + ('release', 'Press Release'), + )) + |