Machine.selectBy(serial='1234') is the usual answer.
The difference is that designating a column an alternateID results in an index being generated automatically. If you use selectBy, it is up to you to generate the index.

God bless,

On 11/08/05, Jason Pepas <> wrote:

It appears that alternateID=True implies notNone=True.

Why is this?  Imagine the case of 'machine' and 'serial'.  Even if some
machines don't have a serial number, it would still be useful to do

Jason Pepas

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
sqlobject-discuss mailing list