Re: How to iterate over all the records of a block in a trigger

Andreas Fromm <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reinhard Mueller wrote:

> Am Sonntag, den 21.08.2005, 20:47 +0200 schrieb Andreas Fromm:
>
>> After throwing away the distro-packaged versions of gnue-* and
>> installing the newest releases from the original site,
>
>
> New packages for debian are being prepared.
>
>> I can iterate over the records like described above. My problem
>> now is that I can't access the fields of the record. As I can see
>> from your example and from the source I should be able to get a
>> value like rec.['fieldname']
>
>
> Without the dot. rec['fieldname'] (and be aware that the fieldname
> is case sensitive!)
>
>> but I just get a 'None' when trying this. I tried to get the all
>> the fieldnames by rec.keys but I just get something about a
>> "<bound method RecordSet.keys of <RecordSet for ...."
>
>
> rec.keys()
>
> rec.keys returns a pointer to the function rec.keys() calls the
> function and returns the result.
>
> Thanks, Reinhard

Em, of course without the dot. Just a typo in the mail. I also put the
() in the keys call. Just doesn't work for me.

I will try to continue on IRC.

Thanks

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDCd/lUmBtSMq5cGURAiENAJ9sf1CWo/KAAnO8sTPBmZynzZcjkgCgwrFn
yK76ZYLcKu2pX/y9+WX5ASc=
=zq2w
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.