Re: [SQLObject] Some questions and a sugestion...
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Ian B. <ia...@co...> - 2004-05-28 19:33:55
|
Michel Thadeu wrote:
> 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)?
Person.get(1).destroySelf()
> method(name='Another Name')
> method({'name':'Another else Name'})
Instead do:
method(**{'name': 'Another else Name'})
The ** unpacks the dictionary into keyword arguments. This works
anywhere in Python. (Just * unpacks a tuple into positional arguments)
Ian
|