Last change
on this file since 478 was
383,
checked in by Henrik Bettermann, 18 years ago
|
academics_contents.pt: 'Up one level' included
|
File size:
344 bytes
|
Rev | Line | |
---|
[383] | 1 | ## Script (Python) "navigationParent" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters=obj=None,templateId=None |
---|
| 8 | ##title=returns the appropriate url for the parent object |
---|
| 9 | ## |
---|
| 10 | |
---|
| 11 | if obj is None: |
---|
| 12 | obj=context |
---|
| 13 | |
---|
| 14 | parent=obj.aq_parent |
---|
| 15 | |
---|
| 16 | return parent.absolute_url() |
---|
| 17 | |
---|
Note: See
TracBrowser for help on using the repository browser.