[sqlalchemy] __main__ error

2012-08-29 Thread Gery .
Hello, I'm quite new in SA and I'm having some problems with a script. After running the script, I'm getting this error: [__main__.Boreholes object at 0xb7a2958c, __main__.Boreholes object at 0xb7a2962c, __main__.Boreholes object at 0xb7a2966c, __main__.Boreholes object at 0xb7a296cc,

Re: [sqlalchemy] __main__ error

2012-08-29 Thread Robert Forkel
doesn't look like an error to me. It's just the result of your print alldata call. It depends on Postgis which attributes are available on the Borehole instances, but you could use print dir(alldata[0]) to get an idea about what is available. On Wed, Aug 29, 2012 at 12:37 PM, Gery .

RE: [sqlalchemy] __main__ error

2012-08-29 Thread Gery .
Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. Date: Wed, 29 Aug 2012 13:05:18 +0200 Subject: Re: [sqlalchemy] __main__ error From: xrotw...@googlemail.com To: sqlalchemy@googlegroups.com doesn't look like an error to me. It's just the result of your print alldata call

RE: [sqlalchemy] __main__ error

2012-08-29 Thread Gery .
: Re: [sqlalchemy] __main__ error To: sqlalchemy@googlegroups.com On Wed, Aug 29, 2012 at 11:37 AM, Gery . gameji...@hotmail.com wrote: Hello, I'm quite new in SA and I'm having some problems with a script. After running the script, I'm getting this error: [__main__.Boreholes object

Re: [sqlalchemy] __main__ error

2012-08-29 Thread Robert Forkel
NICHT, wenn es NICHT notwendig ist. Date: Wed, 29 Aug 2012 13:05:18 +0200 Subject: Re: [sqlalchemy] __main__ error From: xrotw...@googlemail.com To: sqlalchemy@googlegroups.com doesn't look like an error to me. It's just the result of your print alldata call. It depends on Postgis which

RE: [sqlalchemy] __main__ error

2012-08-29 Thread Gery .
: [sqlalchemy] __main__ error From: xrotw...@googlemail.com To: sqlalchemy@googlegroups.com for borehole in alldata: for attr in sorted(filter(lambda a: not a.startswith('_'), dir(borehole))): print attr, getattr(borehole, attr) could do the trick On Wed, Aug 29, 2012 at 1:24 PM

Re: [sqlalchemy] __main__ error

2012-08-29 Thread Robert Forkel
NICHT, wenn es NICHT notwendig ist. Date: Wed, 29 Aug 2012 13:28:44 +0200 Subject: Re: [sqlalchemy] __main__ error From: xrotw...@googlemail.com To: sqlalchemy@googlegroups.com for borehole in alldata: for attr in sorted(filter(lambda a: not a.startswith('_'), dir(borehole))): print attr

RE: [sqlalchemy] __main__ error

2012-08-29 Thread Gery .
. Do NOT print if it is NOT necessary. Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie NICHT, wenn es NICHT notwendig ist. Date: Wed, 29 Aug 2012 13:54:49 +0200 Subject: Re: [sqlalchemy] __main__ error From: xrotw...@googlemail.com To: sqlalchemy@googlegroups.com