exploring Mantissa/Axiom/Epsilon/etc..

Edward Muller <[email protected]> Mon, 12 Feb 2007 19:52:37 -0600
Newsgroups gmane.comp.python.quotient.dev
Message-ID <[email protected]>
We are looking at writing a new hosting system and are taking a look  
at various python frameworks. We really like the idea of Axiom and  
have played with it in the past. We don't have any experience with  
Nevow/Mantissa/etc thought.

We checked out the latest tagged releases of the framework from svn.  
Everything looks fine ... but when we run the following command...

(after creating a new project with axiomatic)
axiomatic -d interlix.axiom mantissa

We get this error:

Traceback (most recent call last):
   File "/sw/bin/axiomatic", line 3, in ?
     axiomatic.main()
   File "/sw/lib/python2.4/site-packages/axiom/scripts/axiomatic.py",  
line 228, in main
     o.parseOptions(argv)
   File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",  
line 189, in parseOptions
     self.subOptions.parseOptions(rest)
   File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",  
line 199, in parseOptions
     self.postOptions()
   File "/sw/lib/python2.4/site-packages/axiom/plugins/ 
mantissacmd.py", line 67, in postOptions
     s.transact(self.installSite, s, publicURL)
   File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1457,  
in transact
     result = f(*a, **k)
   File "/sw/lib/python2.4/site-packages/axiom/plugins/ 
mantissacmd.py", line 75, in installSite
     installOn(s.findOrCreate(userbase.LoginSystem), s)
   File "/sw/lib/python2.4/site-packages/axiom/dependency.py", line  
111, in installOn
     _installOn(self, target, True)
   File "/sw/lib/python2.4/site-packages/axiom/dependency.py", line  
168, in _installOn
     explicitlyInstalled=__explicitlyInstalled)
   File "/sw/lib/python2.4/site-packages/axiom/item.py", line 528, in  
__init__
     self.__subinit__(**kw)
   File "/sw/lib/python2.4/site-packages/axiom/item.py", line 510, in  
__subinit__
     self.store = tostore
   File "/sw/lib/python2.4/site-packages/axiom/slotmachine.py", line  
161, in __setattr__
     descr.__set__(self, value)
   File "/sw/lib/python2.4/site-packages/axiom/item.py", line 425, in  
set
     oid = self.storeID = self.store.executeSchemaSQL(
   File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1959,  
in executeSchemaSQL
     return self.executeSQL(sql, args)
   File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1966,  
in executeSQL
     sql = self._execSQL(sql, args)
   File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1952,  
in _execSQL
     rows = self._queryandfetch(sql, args)
   File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1919,  
in _queryandfetch
     self.cursor.execute(sql, args)
   File "/sw/lib/python2.4/site-packages/axiom/_pysqlite2.py", line  
90, in execute
     return self._cursor.execute(sql, args)
pysqlite2.dbapi2.IntegrityError: axiom_objects.type_id may not be NULL

We added some debug print statements to store.py and this is the SQL  
we believe is being called and the arguments being passed to it:

('INSERT INTO main.axiom_objects (type_id) VALUES (?)', [2])

I don't see anything wrong with that myself.

Any help getting us started would be appreciated.

Thanks

--
Edward Muller
Interlix, LLC
Owner

Zope, Plone & Zimbra Hosting

phone: +1.417.862.0573
fax: +1.770.818.5437
--