fixed 2.5 issues with scheduler
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-09 14:11:30) stable
|
Version 2.2.1 (2012-11-13 16:27:20) stable
|
||||||
|
|||||||
+4
-4
@@ -951,10 +951,10 @@ class Scheduler(MetaScheduler):
|
|||||||
orderby = ~st.id | ~sr.id
|
orderby = ~st.id | ~sr.id
|
||||||
row = self.db(q).select(
|
row = self.db(q).select(
|
||||||
*fields,
|
*fields,
|
||||||
orderby=orderby,
|
**dict(orderby=orderby,
|
||||||
left=left,
|
left=left,
|
||||||
limitby=(0, 1)
|
limitby=(0, 1))
|
||||||
).first()
|
).first()
|
||||||
if output:
|
if output:
|
||||||
row.result = row.scheduler_run.result and \
|
row.result = row.scheduler_run.result and \
|
||||||
loads(row.scheduler_run.result,
|
loads(row.scheduler_run.result,
|
||||||
|
|||||||
+5
-3
@@ -2079,7 +2079,7 @@ class SQLFORM(FORM):
|
|||||||
if buttons_placement in ['left', 'both']:
|
if buttons_placement in ['left', 'both']:
|
||||||
headcols.insert(0, TH(_class=ui.get('default','')))
|
headcols.insert(0, TH(_class=ui.get('default','')))
|
||||||
|
|
||||||
head = TR(*headcols, _class=ui.get('header'))
|
head = TR(*headcols, **dict(_class=ui.get('header')))
|
||||||
|
|
||||||
cursor = True
|
cursor = True
|
||||||
#figure out what page we are one to setup the limitby
|
#figure out what page we are one to setup the limitby
|
||||||
@@ -2261,9 +2261,11 @@ class SQLFORM(FORM):
|
|||||||
rid = id
|
rid = id
|
||||||
if callable(rid): # can this ever be callable?
|
if callable(rid): # can this ever be callable?
|
||||||
rid = rid(row)
|
rid = rid(row)
|
||||||
tr = TR(*trcols, _id=rid, _class='%s %s' % (classtr, 'with_id'))
|
tr = TR(*trcols, **dict(
|
||||||
|
_id=rid,
|
||||||
|
_class='%s %s' % (classtr, 'with_id')))
|
||||||
else:
|
else:
|
||||||
tr = TR(*trcols, _class=classtr)
|
tr = TR(*trcols, **dict(_class=classtr))
|
||||||
tbody.append(tr)
|
tbody.append(tr)
|
||||||
htmltable.append(tbody)
|
htmltable.append(tbody)
|
||||||
htmltable = DIV(htmltable, _style='width:100%;overflow-x:auto')
|
htmltable = DIV(htmltable, _style='width:100%;overflow-x:auto')
|
||||||
|
|||||||
Reference in New Issue
Block a user