RE: [Zope] Info about a Z Gadfly Database in a DTML doc
Iirc, Gadfly has internal tables/views just like, say, MSSQL or Sybase has. And iirc, they're called things like __table_names__ __datadefs__ __columns__ __indices__ __indexcols__ and so forth. Check the Gadfly documentation and/or source code for more information. -- Alexander Staubo http://www.mop.no/~alex/ "It has taken the planet Earth 4.5 billion years to discover it is 4.5 billion years old." --George Wald
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of ggtr@club-internet.fr Sent: 8. juli 1999 18:45 To: zope@zope.org Subject: [Zope] Info about a Z Gadfly Database in a DTML doc
Hello zopers,
I'm new in Zope, and i can't deal with that : how can i reach informations about tables from a Z Gadfly Database Connection?
For example, using the 'Sample Gadfly script' from a Zope How-to, how can i get the fact that the 'Zopadelic' base has one table, 'zopista', which has 2 columns (col_a and col_b) from the int type ?
Of course i can get that info with the browse tab, but my need is to get that from a DTML document (which will be the beginning of a little web interface for Gadfly i hope.) I read the docs and didn't find the answer, do i have to code a external method?
Hope this is clear, i'm not sure of my english ;)
Guillaume Gautier
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Well Alex, Sure it was a thank you in advance! that looks obvious but i still can't implement that in DTML ! i thought i could say something like: <!--#var zopadelic.__table_names__--> but this don't works. Yes i know i'm very far from Zen's Zope but i'm trying... a DTML snippet would be appreciated! Guillaume.
I don't think so. The built in Gadfly implementation is different than the standard distribution. It doesn't have "__table_names__" etc. like the standard release. Alexander Staubo wrote:
Iirc, Gadfly has internal tables/views just like, say, MSSQL or Sybase has.
And iirc, they're called things like
__table_names__ __datadefs__ __columns__ __indices__ __indexcols__
and so forth. Check the Gadfly documentation and/or source code for more information.
...
I don't know about that; I've long since replaced the version that comes with Zope 1.10.20 with Gadfly 1.0, which seems to work fine. Afaik, the version bundled with Zope is just vanilla Gadfly; but this distribution is also pretty old, iirc. Could it be that the bundled version does not support these tables? -- Alexander Staubo http://www.mop.no/~alex/
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Larry Luther Sent: 13. juli 1999 05:46 To: Alexander Staubo Cc: Zope Mailing List (E-mail); ggtr@club-internet.fr Subject: Re: [Zope] Info about a Z Gadfly Database in a DTML doc
I don't think so. The built in Gadfly implementation is different than the standard distribution. It doesn't have "__table_names__" etc. like the standard release.
Alexander Staubo wrote:
Iirc, Gadfly has internal tables/views just like, say, MSSQL or Sybase has.
And iirc, they're called things like
__table_names__ __datadefs__ __columns__ __indices__ __indexcols__
and so forth. Check the Gadfly documentation and/or source code for more information.
...
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Alexander Staubo -
ggtr@club-internet.fr -
Larry Luther