Getting a message:
No object (name: app_globals) has been registered for this thread
app_globals.py is attached.
the error occurs with
asyncjob_perform(doinit, 0)
probably not significant but doinit is: def doinit(cntsys):
RATIOs=DBSession.query(Ratio).filter_by(Year=ratioyear).one()
val=DBSession.query(UnitCost).filter_by(Year=unityear).one()
page= 'Total Salary Allocation'
TheRow=[]
sys2=DBSession.query(Sys).all()
alltotinst=0
countsys=0
checkinit=[]
countsys=DBSession.query(Sys).count()
for row in sys2:
#count =count+1
cntsys=cntsys+1.39
asyncjob_set_progress(cntsys, "")
leano=
row.id howtogot=howtoget(page,TheRow,leano,admyear,RATIOs, val,CDFyear)
checkinit.append(howtogot)
I am following directions from here:
http://pypi.python.org/pypi/tgext.asyncjob/0.2.1I have seen this ticket and tried unsuccessfully to make some modifications:
http://sourceforge.net/p/turbogears2/tickets/26/Any suggestions?