[Zope-DB] changing from dtml-in

Tom Jenkins tjenkins@devis.com
Tue, 03 Dec 2002 21:45:04 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

D. Rick Anderson wrote:
| Thanks for the reply Ed.  I tried that and here's how it looks:
| x = context.basicReport()
| if x:
| for result in x:
|  print result.accid
|

Are you returning the "print buffer"?

x = context.basicReport()
if x:
~ for result in x:
~    print result.accid

return printed

if you don't return printed, you are returning a None

hope this helps

Tom Jenkins

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)
Comment: Using GnuPG with MultiZilla - http://enigmail.mozdev.org

iEYEARECAAYFAj3tbDAACgkQV7Yk9/McDYUkEwCfXlC6dBFpG6nEd8Cyi/Z0GSeR
55wAnAwR1OjBCjhTmnP+V7RpzCLokeNJ
=Sm/8
-----END PGP SIGNATURE-----