[SQLObject] Registry error? (class X is already in the registry)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Pгoмᴇтнᴇυs 0. <pro...@gm...> - 2011-05-10 19:08:53
|
Hi all, First, thanks for the help and support with all my earlier queries (especially Oleg); you've all helped me a lot with this stuff, and I've gotten over all my previous problems. I currently have a new problem (I am using a wrapper to run python scripts like a PHP script/cgi script): Traceback (most recent call last): File "/local/lf/index.py", line 38, in main oContent = Content(sPageName, req); File "/local/lf/content.py", line 75, in __init__ self.template, self.module = self.loadTemplate(self.view.template); File "/local/lf/content.py", line 277, in loadTemplate __import__(config.sModulePrefix + sTemplateModule); File "/local/lf/lf/__init__.py", line 62, in import db; File "/local/lf/db.py", line 34, in class View(SQLObject): File "/usr/local/lib/python2.6/dist-packages/SQLObject-1.0.0-py2.6.egg/sqlobject/declarative.py", line 92, in __new__ cls.__classinit__(cls, new_attrs) File "/usr/local/lib/python2.6/dist-packages/SQLObject-1.0.0-py2.6.egg/sqlobject/main.py", line 818, in __classinit__ classregistry.registry(sqlmeta.registry).addClass(cls) File "/usr/local/lib/python2.6/dist-packages/SQLObject-1.0.0-py2.6.egg/sqlobject/classregistry.py", line 91, in addClass '__file__', '(unknown)'))) ValueError: class View is already in the registry (other class is , from the module lf.db in /local/lf/db.pyc; attempted new class Any ideas on what I can do to overcome this? I've tried to replicate this error in python (interactive mode), but I haven't been able to. What causes this error exactly? |