Changeset 6361 for main/waeup.sirp/trunk/src/waeup/sirp/app.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/app.py
r6329 r6361 21 21 IDataCenterStorageMovedEvent, IObjectUpgradeEvent, ) 22 22 from waeup.sirp.users import UserContainer 23 from waeup.sirp.utils.helpers import attrs_to_fields 23 24 24 25 class University(grok.Application, grok.Container): … … 32 33 PluggableAuthentication, provides = IAuthentication, 33 34 setup = setup_authentication,) 34 35 # The name of the university.36 name=u'Sample University'37 38 # The default layout.39 skin=u'gray waeup theme'40 41 # The default frontpage.42 frontpage= """43 This is the default frontpage of the portal written44 in `reStructuredText (reST)45 <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_46 markup language.47 48 Some more reST examples for getting started:49 50 1. Heading51 ----------52 53 Text54 55 1.2 Heading56 ...........57 58 Text59 60 2. Heading61 ----------62 63 Text64 65 2.1 Heading66 ...........67 68 Text69 70 2.2 Heading71 ...........72 73 Text74 75 """76 77 # The default title.78 title=u'Welcome to the Student Information and Registration Portal of %s' % name79 35 80 36 @property … … 97 53 return logger 98 54 99 100 def __init__(self, name=name, skin=skin, title=title, 101 frontpage=frontpage, **kw): 55 def __init__(self, name=None, skin=None, title=None, 56 frontpage=None, **kw): 102 57 super(University, self).__init__(**kw) 103 self.name = name 104 self.skin = skin 105 self.title = title 106 self.frontpage = frontpage 58 if name is not None: 59 self.name = name 60 if skin is not None: 61 self.skin = skin 62 if title is not None: 63 self.title = title 64 if frontpage is not None: 65 self.frontpage = frontpage 107 66 self.setup() 108 67 … … 162 121 logger.addHandler(handler) 163 122 return logger 123 attrs_to_fields(University) 164 124 165 125 @grok.subscribe(IDataCenter, IDataCenterStorageMovedEvent)
Note: See TracChangeset for help on using the changeset viewer.