removed the need for quickviews to have an active person set---most reports don't have anything to do with active person, but there may be issues somewhere that need to be taken care of.
svn: r10580
This commit is contained in:
parent
4e3606acd3
commit
0709ed5606
@ -152,8 +152,8 @@ def run_quick_report_by_name_direct(report_name, database, document, handle):
|
|||||||
def run_report(dbstate, uistate, category, handle, func, **kwargs):
|
def run_report(dbstate, uistate, category, handle, func, **kwargs):
|
||||||
from docgen import TextBufDoc
|
from docgen import TextBufDoc
|
||||||
from Simple import make_basic_stylesheet
|
from Simple import make_basic_stylesheet
|
||||||
|
|
||||||
if dbstate.active and handle:
|
if handle:
|
||||||
d = TextBufDoc(make_basic_stylesheet(), None, None)
|
d = TextBufDoc(make_basic_stylesheet(), None, None)
|
||||||
d.dbstate = dbstate
|
d.dbstate = dbstate
|
||||||
d.uistate = uistate
|
d.uistate = uistate
|
||||||
@ -181,3 +181,7 @@ def run_report(dbstate, uistate, category, handle, func, **kwargs):
|
|||||||
retval = func(dbstate.db, d, obj, **kwargs)
|
retval = func(dbstate.db, d, obj, **kwargs)
|
||||||
d.close()
|
d.close()
|
||||||
return retval
|
return retval
|
||||||
|
else:
|
||||||
|
print "QuickView Error: failed to run report: no obj"
|
||||||
|
else:
|
||||||
|
print "QuickView Error: handle is not set"
|
||||||
|
Loading…
Reference in New Issue
Block a user