[Zope] Random Choice from SQL Method

Petru Paler ppetru@coltronix.com
Wed, 8 Mar 2000 14:56:39 +0200


On Wed, Mar 08, 2000 at 07:45:52AM -0500, Jatwood@bwanazulia.com wrote:
> I got this far:
> 
> <dtml-var expr="_.whrandom.choice(sqlMethodNamet())">
> 
> and get...
> 
> <r instance at 87183a8>

   This is a record object. You should use:
<dtml-var expr="_.whrandom.choice(sqlMehodNamet()).somesqlfieldname">

-Petru