Last change
on this file since 811 was
805,
checked in by joachim, 18 years ago
|
propset Id
|
-
Property svn:keywords set to
Id
|
File size:
422 bytes
|
Rev | Line | |
---|
[667] | 1 | ##parameters=bed=None,mode=None,datastructure=None |
---|
[805] | 2 | # $Id: formatBed.py 805 2006-11-09 09:38:29Z joachim $ |
---|
[642] | 3 | """ |
---|
| 4 | format the bed for readability |
---|
| 5 | """ |
---|
| 6 | |
---|
[667] | 7 | if datastructure is not None: |
---|
| 8 | bed = datastructure.get('bed') |
---|
[686] | 9 | if not bed: |
---|
| 10 | return '' |
---|
[642] | 11 | hall,block,room,letter = bed.split('_') |
---|
[654] | 12 | res = context.portal_catalog(portal_type="AccoHall",id=hall) |
---|
| 13 | if res and len(res) == 1: |
---|
| 14 | hall_title = res[0].Title |
---|
[669] | 15 | return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter) |
---|
Note: See
TracBrowser for help on using the repository browser.