[SQLObject] Some questions and a sugestion...
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <mic...@ya...> - 2004-05-28 19:10:32
|
Hi guys! I using SQLObject and enjoying but, how can I delete a row (i think del row is a good idea but I can be wrong)? I have a sugestion on the column definition: ... Class Person(SQLObject): name=StringCol(length=100) p=Person(name='Some name') dictionary={'name':'Another Name'} q=Person(dictionary) # this code won´t work ... I think you are using something like this in the method: ... def method(cnf={}, **kw): default={'name':'My Name'} default.update(kw) default.update(cnf) print default ... I don´t know how to explain with words (sorry my poor english), but using the code above I can do: ... method(name='Another Name') method({'name':'Another else Name'}) method() ... This is usefull when I have a lot of values with keys in a dictionary... I don´t know of this is used this time, but I try and can´t do Person({'name':'Some Name'})... Thanks for attention and sorry again about my poor english! ===== -- Michel Thadeu Sabchuk Curitiba/PR ______________________________________________________________________ Participe da pesquisa global sobre o Yahoo! Mail: http://br.surveys.yahoo.com/global_mail_survey_br |