I'm not 100% sure how the KidKit plugin works, but I've the problem below. I created a test app so I could play with SQLObject. Everything went fine until I changed the page which was running fine already. The code added a person to the database. The problem occurs when I change the code. Unless I restart the server, the next query will print out the error below. I've attached my example code as well at the end of this post.
Traceback (most recent call last): File "./WebKit/Application.py", line 477, in dispatchRawRequest [edit] File "./WebKit/Application.py", line 539, in runTransaction [edit] File "./WebKit/URLParser.py", line 69, in findServletForTransaction [edit] File "./WebKit/URLParser.py", line 301, in parse [edit] File "./WebKit/URLParser.py", line 412, in parse [edit] File "./WebKit/URLParser.py", line 844, in servletForFile [edit] File "./WebKit/ServletFactory.py", line 230, in servletForTransaction [edit] File "./KidKit/KidServletFactory.py", line 147, in loadClass [edit] File "/usr/lib/python2.5/site-packages/kid-0.9.5-py2.5.egg/kid/__init__.py", line 158, in load_template [edit] store=cache, ns=ns, exec_module=exec_module) File "/usr/lib/python2.5/site-packages/kid-0.9.5-py2.5.egg/kid/importer.py", line 144, in _create_module [edit] raise_template_error(module=name, filename=filename) File "/usr/lib/python2.5/site-packages/kid-0.9.5-py2.5.egg/kid/importer.py", line 141, in _create_module [edit] exec code in mod.__dict__ File "/home/tsume/appserver/TestApp/MyContext/What.py", line 27, in <module> [edit] File "/usr/lib/python2.5/site-packages/sqlobject/declarative.py", line 109, in __new__ [edit] cls.__classinit__(cls, new_attrs) File "/usr/lib/python2.5/site-packages/sqlobject/main.py", line 805, in __classinit__ [edit] classregistry.registry(cls.sqlmeta.registry).addClass(cls) File "/usr/lib/python2.5/site-packages/sqlobject/classregistry.py", line 91, in addClass [edit] '__file__', '(unknown)'))) ValueError: class Person is already in the registry (other class is <class 'kid.util.template_66e30851.Posds'>, from the module kid.util.template_66e30851 in (unknown); attempted new class is <class 'kid.util.template_66e30851.Posds'>, from the module kid.util.template_66e30851 in (unknown)) Error in code generated from template file '/home/tsume/appserver/TestApp/MyContext/What.kid' Example.kid <?xml version='1.0' encoding='utf-8'?> <?python from sqlobject import * import os, sys db_filename = os.path.abspath('data.db') connection_string = 'sqlite:' + db_filename connection = connectionForURI(connection_string) sqlhub.processConnection = connection class Person(SQLObject): firstname = StringCol() ?> <body py:strip="" xmlns:py="http://purl.org/kid/ns#"> <h3>Index of </h3> <div>${Person(firstname="blah blah")}</div> </body> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss