#1175: Logging code throws error in Komodo
------------------------+---------------------------------------------------
Reporter: anseljh | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: unassigned | Version: 1.0b1
Severity: normal | Keywords: logging komodo windows
------------------------+---------------------------------------------------
I'm using the Komodo IDE (specifically Komodo Personal 3.5.1 on Windows XP
SP2). When I try to run any TurboGears code from Komodo, I get an ugly
error. The offending code appears to be at line 429 of `controllers.py`
in the main `turbogears` module.
Here's a sample trace:
{{{
Traceback (most recent call last):
File "C:\Program Files\ActiveState Komodo
3.5\lib\support\dbgp\pythonlib\dbgp\client.py", line 1806, in runMain
self.dbg.runfile(debug_args[0], debug_args)
File "C:\Program Files\ActiveState Komodo
3.5\lib\support\dbgp\pythonlib\dbgp\client.py", line 1529, in runfile
h_execfile(file, args, module=main, tracer=self)
File "C:\Program Files\ActiveState Komodo
3.5\lib\support\dbgp\pythonlib\dbgp\client.py", line 590, in __init__
execfile(file, globals, locals)
File "E:\IPLC\iplctg\iplctg\tests\test_model.py", line 7, in __main__
from turbogears import testutil, database
File "c:\python24\lib\site-packages\turbogears-1.0b1-
py2.4.egg\turbogears\__init__.py", line 6, in turbogears
from turbogears.controllers import expose, flash, validate, redirect,
\
File "c:\python24\lib\site-packages\turbogears-1.0b1-
py2.4.egg\turbogears\controllers.py", line 420, in ?
class RootController(Controller):
File "c:\python24\lib\site-packages\turbogears-1.0b1-
py2.4.egg\turbogears\controllers.py", line 429, in RootController
msglogfunc = {0: msglog.info, 1: msglog.warning, 2: msglog.error}
AttributeError: Logger instance has no attribute 'warning'
}}}
The same stuff works fine when run from the command line, so I expect it's
a Komodo problem, but it's odd nonetheless because Komodo is set up to use
my stock Python installation.
??
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1175>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---