Last change
on this file since 754 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
678 bytes
|
Rev | Line | |
---|
[1] | 1 | from zope.interface import Interface, Attribute |
---|
| 2 | |
---|
| 3 | class ISkinNameExtractor(Interface): |
---|
| 4 | |
---|
| 5 | property_name = Attribute('property_name', 'property name for extraction from context') |
---|
| 6 | |
---|
| 7 | def getSkinName(): |
---|
| 8 | """ Returns a skin name from context object. """ |
---|
| 9 | |
---|
| 10 | def setSkinName(value): |
---|
| 11 | """ Set a value in skin name property if last exists """ |
---|
| 12 | |
---|
| 13 | class IRequestPortalUrlAnnotator(Interface): |
---|
| 14 | |
---|
| 15 | key = Attribute('key', 'Key for saving in request annotations') |
---|
| 16 | |
---|
| 17 | def annotate(value): |
---|
| 18 | """ Set portal_url sufix in request's annotation to value. """ |
---|
| 19 | |
---|
| 20 | def getPortalUrlSuffix(): |
---|
| 21 | """ Extract portal_url suffix from request's annotation by 'key' key. """ |
---|
Note: See
TracBrowser
for help on using the repository browser.