add convenience method getUidForObject() for use in templates
This commit is contained in:
parent
fc1c071ad8
commit
2638fb83f2
1 changed files with 3 additions and 0 deletions
|
@ -434,6 +434,9 @@ class BaseView(GenericView, I18NView):
|
||||||
def getObjectForUid(self, uid):
|
def getObjectForUid(self, uid):
|
||||||
return util.getObjectForUid(uid)
|
return util.getObjectForUid(uid)
|
||||||
|
|
||||||
|
def getUidForObject(self, obj):
|
||||||
|
return util.getUidForObject(baseObject(obj))
|
||||||
|
|
||||||
# type listings
|
# type listings
|
||||||
|
|
||||||
def listTypes(self, include=None, exclude=None, sortOn='title'):
|
def listTypes(self, include=None, exclude=None, sortOn='title'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue