[gen] Bugfixes.
This commit is contained in:
parent
3b18619624
commit
57bab29447
|
@ -75,7 +75,8 @@ class Boolean(Field):
|
||||||
cLayouts = {'view': 'lf|', 'edit': 'flrv|'}
|
cLayouts = {'view': 'lf|', 'edit': 'flrv|'}
|
||||||
|
|
||||||
def getDefaultLayouts(self):
|
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):
|
def getValue(self, obj):
|
||||||
'''Never returns "None". Returns always "True" or "False", even if
|
'''Never returns "None". Returns always "True" or "False", even if
|
||||||
|
|
|
@ -26,8 +26,9 @@ class Computed(Field):
|
||||||
<x if="not field.plainText">::value</x>''')
|
<x if="not field.plainText">::value</x>''')
|
||||||
|
|
||||||
pxSearch = Px('''
|
pxSearch = Px('''
|
||||||
<input type="text" name=":'%s*string' % name" maxlength=":field.maxChars"
|
<input type="text" name=":'%s*string' % widgetName"
|
||||||
size=":field.width" value=":field.sdefault"/>''')
|
maxlength=":field.maxChars" size=":field.width"
|
||||||
|
value=":field.sdefault"/>''')
|
||||||
|
|
||||||
def __init__(self, validator=None, multiplicity=(0,1), default=None,
|
def __init__(self, validator=None, multiplicity=(0,1), default=None,
|
||||||
show=('view', 'result'), page='main', group=None,
|
show=('view', 'result'), page='main', group=None,
|
||||||
|
|
|
@ -222,7 +222,7 @@ centeredPageLayouts = {
|
||||||
|
|
||||||
# The default layout for fields. Alternative layouts may exist and are declared
|
# The default layout for fields. Alternative layouts may exist and are declared
|
||||||
# as static attributes of the concerned Type subclass.
|
# as static attributes of the concerned Type subclass.
|
||||||
defaultFieldLayouts = {'edit': 'lrv-f'}
|
defaultFieldLayouts = {'edit': 'lrv-f', 'search': 'l-f'}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
class ColumnLayout:
|
class ColumnLayout:
|
||||||
|
|
|
@ -585,7 +585,7 @@ class ToolMixin(BaseMixin):
|
||||||
hasStar = name.find('*') != -1
|
hasStar = name.find('*') != -1
|
||||||
fieldName = not hasStar and name[2:] or name[2:name.find('*')]
|
fieldName = not hasStar and name[2:] or name[2:name.find('*')]
|
||||||
field = self.getAppyType(fieldName, rq.form['className'])
|
field = self.getAppyType(fieldName, rq.form['className'])
|
||||||
if field and not field.persist: continue
|
if field and not field.persist and not field.indexed: continue
|
||||||
# We have a(n interval of) value(s) that is not empty for a
|
# We have a(n interval of) value(s) that is not empty for a
|
||||||
# given field or index.
|
# given field or index.
|
||||||
value = rq.form[name]
|
value = rq.form[name]
|
||||||
|
|
|
@ -366,7 +366,7 @@ class ToolWrapper(AbstractWrapper):
|
||||||
|
|
||||||
<!-- Results -->
|
<!-- Results -->
|
||||||
<tr for="zobj in zobjects" id="query_row" valign="top"
|
<tr for="zobj in zobjects" id="query_row" valign="top"
|
||||||
var2="currentNumber=currentNumber + 1;
|
var2="@currentNumber=currentNumber + 1;
|
||||||
obj=zobj.appy(); mayView=zobj.mayView()"
|
obj=zobj.appy(); mayView=zobj.mayView()"
|
||||||
class=":loop.zobj.odd and 'even' or 'odd'">
|
class=":loop.zobj.odd and 'even' or 'odd'">
|
||||||
<td for="column in columns"
|
<td for="column in columns"
|
||||||
|
|
Loading…
Reference in a new issue