Im just guessing here, but perhaps you should try naming your class something other than "View"

On Tue, May 10, 2011 at 12:08 PM, Pгoмᴇтнᴇυs 0x01 <prometheus.0x01@gmail.com> wrote:
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?


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss