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,
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 .
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
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
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
: [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
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
. 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