Last change
on this file since 7033 was
6973,
checked in by Henrik Bettermann, 13 years ago
|
Implement reserved bed switcher.
Change bed_type notation.
|
-
Property svn:keywords set to
Id
|
File size:
894 bytes
|
Line | |
---|
1 | """Vocabularies and sources for the accommodation section. |
---|
2 | """ |
---|
3 | from zc.sourcefactory.basic import BasicSourceFactory |
---|
4 | from waeup.sirp.interfaces import SimpleWAeUPVocabulary |
---|
5 | |
---|
6 | |
---|
7 | bed_letters = SimpleWAeUPVocabulary( |
---|
8 | ('Bed A','A'), |
---|
9 | ('Bed B','B'), |
---|
10 | ('Bed C','C'), |
---|
11 | ('Bed D','D'), |
---|
12 | ('Bed E','E'), |
---|
13 | ('Bed F','F'), |
---|
14 | ('Bed G','G'), |
---|
15 | ('Bed H','H'), |
---|
16 | ('Bed I','I'), |
---|
17 | ) |
---|
18 | |
---|
19 | blocks = SimpleWAeUPVocabulary( |
---|
20 | ('Block A','A'), |
---|
21 | ('Block B','B'), |
---|
22 | ('Block C','C'), |
---|
23 | ('Block D','D'), |
---|
24 | ('Block E','E'), |
---|
25 | ('Block F','F'), |
---|
26 | ('Block G','G'), |
---|
27 | ('Block H','H'), |
---|
28 | ('Block I','I'), |
---|
29 | ('Block K','K'), |
---|
30 | ('Block L','L'), |
---|
31 | ('Block M','M'), |
---|
32 | ('Block N','N'), |
---|
33 | ('Block O','O'), |
---|
34 | ('Block P','P'), |
---|
35 | ) |
---|
36 | |
---|
37 | special_handling = SimpleWAeUPVocabulary( |
---|
38 | ('Regular Hostel','regular'), |
---|
39 | ('Blocked Hostel','blocked'), |
---|
40 | ('Postgraduate Hostel','pg'), |
---|
41 | ) |
---|
Note: See
TracBrowser for help on using the repository browser.