anatoly techtonik wrote:
> Hello,
>
> I've setup Trac environment as described on TracDev/
> DevelopmentEnvironmentSetup pages (valuable info indeed), but now I
> need to get to the source of mysterious Error
> (Error when calling the metaclass bases function() argument 1 must be
> code, not str)
>
> Logging console in DEBUG mode didn't provide enough info to pinpoint
> the problem, so I've tried PDB to go step-by-step until the offending
> line, but PDB has one big flaw - it doesn't understand threads. 

Well, then just don't use threads. Assuming you're using tracd, simply 
remove the ThreadingMixIn from the TracHTTPServer.

-- Christian

Index: trac/web/standalone.py
===================================================================
--- trac/web/standalone.py      (revision 8561)
+++ trac/web/standalone.py      (working copy)
@@ -100,7 +100,7 @@
         return self.application(environ, start_response)


-class TracHTTPServer(ThreadingMixIn, WSGIServer):
+class TracHTTPServer(WSGIServer):

     def __init__(self, server_address, application, env_parent_dir, 
env_paths,
                  use_http_11=False):

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to