[Zope-DB] Re: python script calls zsql method need to compare values
michael at d2m.at
Thu Sep 16 11:52:59 EDT 2004
Laura McCord wrote:
> I am having a problem compraing the value that is returned by a zsql
> This is what I have so far:
> status = context.view_activity(SystemNetName = SystemNetName)
> if status == 'active':
> return '#000'
> if status == 'inactive':
> return '#b7b7b7'
> return status
> Naturally, it is going to return status everytime because status is
> to <Shared.DC.ZRDB.Results.Results instance at 0xb2aa806c>
> So, how to I compare it's actual value?
ZSQLMethods return a sequence of result objects.
Read more about how to access them at
More information about the Zope-DB