[SQLObject] problem while _get_ function with parameter

2007-05-17 Thread ro
hi all I meet a problem I write a _get_ function in my class: class Page(SQLObject): ... def _get_link_copy_by_space(self, space_id): return None And while I call this function by such code: page = Page.get(page_id) page.link_copy_by_space(space.id) sqlobject give me th

Re: [SQLObject] Vacation

2007-05-17 Thread Daniel Nogradi
> Hello everyone. Hello and goodbye! I am leaving the town for a vacation. > >Please do not stop asking and answering questions. Help each other. > Discuss bugs and patches in the list, submit them to the Trac or SF > tracker. > >I'll be back in the beginning of June. > > Oleg. Have a good

[SQLObject] How to detect the attribute names....

2007-05-17 Thread F.A. Pinkse
Hi All, How do I discover, at runtime, the attribute names used in a resultlist like this one. list(alist) [] Thanks, Frans. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of

Re: [SQLObject] Why?, what am I doing wrong or do not understand.

2007-05-17 Thread F.A. Pinkse
Hi Christopher Thanks, sometimes you need a kick.:-) I did not realize that AddressBookDB is the name of a module, written by me and imported withfrom AddressBookDB import * Thanks again. Frans. Christopher Singley wrote: > Frans, > > Your problem is not with SQLObject, it's just st

Re: [SQLObject] Why?, what am I doing wrong or do not understand.

2007-05-17 Thread Christopher Singley
Frans, Your problem is not with SQLObject, it's just standard Python namespace confusion. To have a look at your namespace, type dir(). You will find that one entry on the list is 'Family', but you shouldn't find 'AddressBookDB' on the list. If you want to define AddressBookDB in your namespa

[SQLObject] Why?, what am I doing wrong or do not understand.

2007-05-17 Thread F.A. Pinkse
Hi All, While trying to refactor my app, I found out that there are more than one type of resultlists returned with and within the Results of a select. I use Boa constructor debug mode. When I do: Db> blist=Family.select() Db> type(blist) Db> type(blist)==sqlobject.sresults.SelectResults

Re: [SQLObject] How to use Update

2007-05-17 Thread Jorge Godoy
ro <[EMAIL PROTECTED]> writes: > Page._connection.query(Page._connection.sqlrepr(Update(Page.sqlmeta.table, > > {"synchronized": True}, > > where=Page.q.space_id==1))) Try: Page.q.spaceID -- Jorge Godoy <[EMAIL PROTECTED]> -

Re: [SQLObject] How to use Update

2007-05-17 Thread ro
On 5/17/07, ro <[EMAIL PROTECTED]> wrote: > On 5/16/07, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > Page._connection.query(Page._connection.sqlrepr( > > Update(Page.sqlmeta.table, {"synchronized": True}, where=Space.q.id==1) > > )) > > > > Sorry, I am trying this code now, but it does not work

Re: [SQLObject] How to use Update

2007-05-17 Thread ro
On 5/16/07, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Wed, May 16, 2007 at 08:36:00PM +0800, ro wrote: > > I need to update all of records' synchronized attribute to 'True' in > > page table where the space.id is 1. > > > > from sqlobject.sqlbuilder import Update > > Update(Page.sqlmeta.table