Last change
on this file since 7068 was
7068,
checked in by Henrik Bettermann, 13 years ago
|
Much more logic for bed allocation, bed release.
Implement student relocation.
|
-
Property svn:keywords set to
Id
|
File size:
697 bytes
|
Line | |
---|
1 | """Cataloging and searching components for hostels. |
---|
2 | """ |
---|
3 | import grok |
---|
4 | from grok import index |
---|
5 | from hurry.query import Eq, Text |
---|
6 | from hurry.query.query import Query |
---|
7 | from zope.catalog.interfaces import ICatalog |
---|
8 | from zope.component import queryUtility |
---|
9 | from waeup.sirp.interfaces import IUniversity, IQueryResultItem |
---|
10 | from waeup.sirp.hostels.interfaces import IBed |
---|
11 | |
---|
12 | class BedIndexes(grok.Indexes): |
---|
13 | """A catalog for beds. |
---|
14 | """ |
---|
15 | grok.site(IUniversity) |
---|
16 | grok.name('beds_catalog') |
---|
17 | grok.context(IBed) |
---|
18 | |
---|
19 | #bed_id = index.Field(attribute='bed_id') |
---|
20 | #bed_number = index.Field(attribute='bed_number') |
---|
21 | bed_type = index.Field(attribute='bed_type') |
---|
22 | owner = index.Field(attribute='owner') |
---|
Note: See
TracBrowser for help on using the repository browser.