Changeset 6361 for main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
- Timestamp:
- 12 Jun 2011, 23:04:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r6353 r6361 1 1 ## 2 2 ## interfaces.py 3 import os 3 4 from hurry.workflow.interfaces import IWorkflow, IWorkflowInfo 4 5 from zc.sourcefactory.basic import BasicSourceFactory … … 8 9 from zope.interface import Interface, Attribute, implements 9 10 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm 11 12 default_frontpage = u'' + open(os.path.join( 13 os.path.dirname(__file__), 'frontpage.rst'), 'rb').read() 10 14 11 15 class FatalCSVError(Exception): … … 63 67 name = schema.TextLine( 64 68 title = u'Name of University', 65 default = u' Unnamed',69 default = u'Sample University', 66 70 required = True, 67 71 ) … … 69 73 title = schema.TextLine( 70 74 title = u'Title of frontpage', 71 default = u'No Title', 75 default = u'Welcome to the Student Information and Registration ' + 76 u'Portal of Sample University', 72 77 required = False, 73 78 ) … … 83 88 title = u'Content in reST format', 84 89 required = False, 85 default = u'This is the SIRP frontpage.'90 default = default_frontpage, 86 91 ) 87 92
Note: See TracChangeset for help on using the changeset viewer.