[gen] Bugfixes.
This commit is contained in:
parent
3b18619624
commit
57bab29447
5 changed files with 8 additions and 6 deletions
|
@ -75,7 +75,8 @@ class Boolean(Field):
|
|||
cLayouts = {'view': 'lf|', 'edit': 'flrv|'}
|
||||
|
||||
def getDefaultLayouts(self):
|
||||
return {'view': 'lf', 'edit': Table('f;lrv;=', width=None)}
|
||||
return {'view': 'lf', 'edit': Table('f;lrv;=', width=None),
|
||||
'search': 'l-f'}
|
||||
|
||||
def getValue(self, obj):
|
||||
'''Never returns "None". Returns always "True" or "False", even if
|
||||
|
|
|
@ -26,8 +26,9 @@ class Computed(Field):
|
|||
<x if="not field.plainText">::value</x>''')
|
||||
|
||||
pxSearch = Px('''
|
||||
<input type="text" name=":'%s*string' % name" maxlength=":field.maxChars"
|
||||
size=":field.width" value=":field.sdefault"/>''')
|
||||
<input type="text" name=":'%s*string' % widgetName"
|
||||
maxlength=":field.maxChars" size=":field.width"
|
||||
value=":field.sdefault"/>''')
|
||||
|
||||
def __init__(self, validator=None, multiplicity=(0,1), default=None,
|
||||
show=('view', 'result'), page='main', group=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue