On 5/9/06, Ronald Jaramillo <[EMAIL PROTECTED]> wrote:
> On a fresh quickstarted project, setting tg.scheduler = True on
> config/app.cfg yields the following traceback:
>
> Unhandled exception in thread started by <bound method Server._start
> of <cherrypy._cpserver.Server object at 0x2d6970>>
> Traceback (most recent call last):
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cpserver.py", line 78, in _start
>      Engine._start(self)
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cpengine.py", line 108, in _start
>      func()
>    File "/Users/ronald/Documents/PYTHON/TG_1.0/turbogears/
> startup.py", line 225, in startTurboGears
>      turbogears.scheduler._start_scheduler()
> AttributeError: 'module' object has no attribute 'scheduler'

scheduler was missing from __all__. I just realized that in my testing
I hadn't actually run the scheduler from a webapp. oops.

I just fixed this.


> Tg-admin info on the same machine (which is kind of broken as well)
> tells the following:

I just fixed tg-admin info and the Toolbox system info commands.

> Another issue I have, is that trying to update/insert records to a
> database from within a scheduled job, doesn't work with SQLite.
> I get an error saying something about "only one thread <thread
> number> allowed to access the db, you are thread number <other thread
> number>"
> Is there a  special way to do this , or should we add this
> restriction to the scheduler documentation.

We'll definitely need to be able to update the database. Can you open
a ticket on this?

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to