Error when installing "app".

Edward Muller <[email protected]> Mon, 19 Feb 2007 21:29:03 -0600
Newsgroups gmane.comp.python.quotient.dev
Message-ID <[email protected]>
So I have a pretty basic InterlixPublicPage class and it's listed in  
the admin interface with a 'click here to install me' link. When I  
click on that link I get the following error:

2007/02/19 22:20 -0500 [HTTPChannel,1,127.0.0.1] Sending error to  
browser:
2007/02/19 22:20 -0500 [HTTPChannel,1,127.0.0.1] Unhandled Error
         Traceback (most recent call last):
           File "/usr/local/lib/python2.4/site-packages/nevow/ 
athena.py", line 434, in renderHTTP
             response = self.messageDeliverer.basketCaseReceived(ctx,  
messageData)
           File "/usr/local/lib/python2.4/site-packages/nevow/ 
athena.py", line 638, in basketCaseReceived
             self.livePage.liveTransportMessageReceived(ctx, msg)
           File "/usr/local/lib/python2.4/site-packages/nevow/ 
athena.py", line 886, in liveTransportMessageReceived
             method(ctx, *args)
           File "/usr/local/lib/python2.4/site-packages/nevow/ 
athena.py", line 899, in action_call
             result = defer.maybeDeferred(func, *args, **kwargs)
         --- <exception caught here> ---
           File "/usr/local/lib/python2.4/site-packages/twisted/ 
internet/defer.py", line 107, in maybeDeferred
             result = f(*args, **kw)
           File "/usr/local/lib/python2.4/site-packages/xmantissa/ 
offering.py", line 169, in install
             self.offeringConfig.installOffering(self.offeringPlugin,  
configuration)
           File "/usr/local/lib/python2.4/site-packages/xmantissa/ 
offering.py", line 145, in installOffering
             installOffering(s, offering, configuration)
           File "/usr/local/lib/python2.4/site-packages/xmantissa/ 
offering.py", line 127, in installOffering
             s.transact(siteSetup)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
store.py", line 1451, in transact
             return f(*a, **k)
           File "/usr/local/lib/python2.4/site-packages/xmantissa/ 
offering.py", line 118, in siteSetup
             avatars=substoreItem)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
userbase.py", line 453, in addAccount
             subStore.transact(createSubStoreAccountObjects)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
store.py", line 1457, in transact
             result = f(*a, **k)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
userbase.py", line 451, in createSubStoreAccountObjects
             verified=verified)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
userbase.py", line 207, in addLoginMethod
             peer = otherStore.findUnique(LoginAccount)
           File "/usr/local/lib/python2.4/site-packages/axiom/ 
store.py", line 1288, in findUnique
             raise errors.DuplicateUniqueItem(comparison, results)
         axiom.errors.DuplicateUniqueItem: (None, [LoginAccount 
(avatars=reference(-1), disabled=0, password=None, storeID=1) 
@0x22628D0, LoginAccount(avatars=reference(-1), disabled=0,  
password=None, storeID=3)@0x22622B0])

When I use axiomatic -d ... browse and query the store for Login  
Accounts I get the following:
[axiom, version 0.5.19].  Autocommit is off.
 >>> from axiom.userbase import LoginAccount
 >>> for account in db.query(LoginAccount):
...     print account
...
LoginAccount(avatars=reference(21), disabled=0, password=u'XXXXXX',  
storeID=22)@0x21119F0
LoginAccount(avatars=reference(32), disabled=0, password=None,  
storeID=33)@0x211F030
 >>>

The first of which is the admin account I got with axiomatic -d ...  
mantissa.


--
Edward Muller
Interlix, LLC
Owner

Zope, Plone & Zimbra Hosting

phone: +1.417.862.0573
fax: +1.770.818.5437
--