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,
John

On 11/08/05, Jason Pepas <cell@ices.utexas.edu> wrote:
Hello,

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
Machine.bySerial('1234').

Thanks,
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 * http://www.sqe.com/bsce5sf
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss