[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2014-04-19 19:58:02 +02:00
parent ff7c300dd0
commit 2b1fc85512
3 changed files with 5 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class Field:
tagCss=tagCss|'';
tagCss=('%s %s' % (slaveCss, tagCss)).strip();
zobj=zobj or ztool;
tagId='%s_%s' % (zobj.UID(), name);
tagId='%s_%s' % (zobj.id, name);
tagName=field.master and 'slave' or '';
layoutTarget=field">:tool.pxLayoutedObject</x>''')

View file

@ -356,6 +356,7 @@ class Ref(Field):
<x var="innerRef=req.get('innerRef', False) == 'True';
ajaxHookId='%s_%s_objs' % (zobj.id, field.name);
render=render|'list';
layoutType=layoutType|'view';
linkList=field.link == 'list';
renderAll=req.get('scope') != 'objs';
inPickList=False;
@ -381,7 +382,8 @@ class Ref(Field):
numbered=field.isNumbered(zobj);
changeNumber=not inPickList and numbered and canWrite and \
changeOrder and (totalNumber &gt; 3);
checkboxesEnabled=field.getAttribute(zobj, 'checkboxes');
checkboxesEnabled=field.getAttribute(zobj, 'checkboxes') and \
(layoutType != 'cell');
checkboxes=checkboxesEnabled and (totalNumber &gt; 1);
showSubTitles=req.get('showSubTitles', 'true') == 'true'">
<!-- The definition of "atMostOneRef" above may sound strange: we