On Tuesday 05 May 2009 04:04:42 pm Ed Leafe wrote:
> On May 5, 2009, at 2:50 PM, Steve Litt wrote:
> > File "/usr/lib/python2.5/site-packages/Dabo-0.9.1-py2.5.egg/dabo/db/
> > dCursorMixin.py",
> > line 760, in genTempAutoPK
> >    pkVal = rec[kf]
> > KeyError: ''
> > ================================================
> >
> > I'm using Dabo version 0.9.1, postgres version 8.3.7. It's possible
> > I messed
> > up the ownership of directory  /usr/local/pgsql/. I have it set to
> > root.root,
> > although /usr/local/pgsql/data is set to postgres.root.
>
>       It looks as though there isn't a KeyField defined for this data
> source. Can you post the bizobj it created? There should be file in
> the biz directory of the project with the same name as the table.
>
>
> -- Ed Leafe

Doooohhhhh! You're right -- I forgot to declare the sequence field a primary 
key. Remaking the table with the sequence column as a primary key fixed the 
problem and the newly autogenerated app now works perfectly.

Thanks!

What made you suspect lack of a primary key? Was it the KeyError: ''? I would 
have figured that KeyError: '' could have meant any one of many things. 

Thanks so much.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt

_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/200905051633.27567.sl...@troubleshooters.com

Reply via email to