Improved class appy.Hack to be able to hack static methods as well; [gen] pod field can now accept a string in param 'showTemplate' if a single format is accepted; when showing linked objects in a ref field, we show a message and no data for every object the currently logged user is not allowed to read; improved the default UI layout (less table borders).
This commit is contained in:
parent
0a174098f1
commit
b2dbef2bc4
16 changed files with 79 additions and 22 deletions
|
@ -249,6 +249,7 @@ class Pod(Field):
|
|||
formats = self.showTemplate(obj, template)
|
||||
if not formats: continue
|
||||
formats = isManager and self.getAllFormats(template) or formats
|
||||
if isinstance(formats, basestring): formats = (formats,)
|
||||
res.append(Object(template=template, formats=formats,
|
||||
freezeFormats=self.getFreezeFormats(obj, template)))
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue