import grok from waeup.sirp.interfaces import IHostel class Hostel(grok.Container): """This is a hostel record. """ grok.implements(IHostel) def __init__(self, name=u'Unnamed Hostel', **kw): super(Hostel, self).__init__(**kw) self.name = name grok.global_utility(Hostel, provides=IHostel)