- Timestamp:
- 22 Apr 2011, 01:43:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/interfaces.py
r5951 r5957 55 55 """Get the list of breadcrumbs as real Python list. 56 56 """ 57 class ITheme(Interface): 58 """An theme or 'skin'. 57 59 60 Themes are basically collections of CSS- and/or JavaScript files 61 stored somewhere. In Grok-contexts these files can be registered 62 as 'resources' (see :mod:`waeup.sirp.browser.resources`). 63 64 Furthermore, to make themes selectable and distinctable from each 65 other we assign them short descriptions. 66 67 Themes should be registered as named utilities so that they can be 68 defined also in third-party packages and be looked up by other 69 components like theme-selectors. 70 """ 71 description = schema.TextLine( 72 title = u'Description', 73 description = u'Short description of the theme for choice fields', 74 required = False, 75 ) 76 77 def getResources(): 78 """Get resources of the theme. 79 80 Deliver a list of resources that must be included in a web page to 81 let it be rendered in the theme's style. 82 83 A resource is normally defined in the `resources` module. If a 84 theme needs several of them which normally do not depend on 85 each other then all these resources can be returned by this 86 method. Normally, you will only return one resource. 87 88 These resources will (if the theme is selected) be `need()`-ed 89 by the `update()` method of the general site layout. 90 """
Note: See TracChangeset for help on using the changeset viewer.