Last change
on this file since 6955 was
6954,
checked in by Henrik Bettermann, 14 years ago
|
Let's create hostels without a factory.
There is no need to override the grok.Container init method.
|
-
Property svn:keywords set to
Id
|
File size:
548 bytes
|
Line | |
---|
1 | ## |
---|
2 | ## interfaces.py |
---|
3 | from zope.interface import Attribute, invariant |
---|
4 | from zope import schema |
---|
5 | from waeup.sirp.interfaces import IWAeUPObject |
---|
6 | |
---|
7 | class IHostelsContainer(IWAeUPObject): |
---|
8 | """A container for all kind of hostel objects. |
---|
9 | |
---|
10 | """ |
---|
11 | |
---|
12 | class IHostel(IWAeUPObject): |
---|
13 | """A base representation of hostels. |
---|
14 | |
---|
15 | """ |
---|
16 | |
---|
17 | def loggerInfo(ob_class, comment): |
---|
18 | """Adds an INFO message to the log file |
---|
19 | """ |
---|
20 | |
---|
21 | hostel_id = schema.TextLine( |
---|
22 | title = u'Hostel ID', |
---|
23 | required = True, |
---|
24 | default = u'hostel_1', |
---|
25 | ) |
---|
Note: See
TracBrowser for help on using the repository browser.