Last change
on this file since 11110 was
4920,
checked in by uli, 15 years ago
|
Make unit tests run again with the new package layout.
|
-
Property svn:eol-style set to
native
|
File size:
329 bytes
|
Line | |
---|
1 | import grok |
---|
2 | from waeup.sirp.interfaces import IHostel |
---|
3 | |
---|
4 | class Hostel(grok.Container): |
---|
5 | """This is a hostel record. |
---|
6 | """ |
---|
7 | grok.implements(IHostel) |
---|
8 | |
---|
9 | def __init__(self, name=u'Unnamed Hostel', **kw): |
---|
10 | super(Hostel, self).__init__(**kw) |
---|
11 | self.name = name |
---|
12 | |
---|
13 | grok.global_utility(Hostel, provides=IHostel) |
---|
Note: See
TracBrowser for help on using the repository browser.