Re: [SQLObject] Form fields and SQLObject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-03-04 18:26:45
|
mar...@ge... wrote: > What I would like is to implement a findPerson method that, based on > the field values incl. any operators - *, <, >, <=, >= and so on, is > able to perform a proper search and return all matching Person > objects(rows). I have fiddled around with some inelegant string > substitution to ugly to post. Especially properties - in this case > middleInitial - that defaults to None, are troublesome, since an > empty field is not matched by None. > > Is there a elegant preferably generic solution for the above ? by > generic I mean somthing that would work irrespective of the specific > class. You might want to look back through the mailing lists for a thread "Looking for selection hints" started by Frank Barknecht around 10/2003. He was doing some similar stuff. > I am using Python 2.3 on Windows 2000 and SQLObject 0.5.1. > > Ian Bicking - super cool tool. Thanks ;) Cheers, Ian |