[Zope] RE: Using supplied demo Gadfly database
Olivier Berger
olberger@club-internet.fr
Wed, 26 May 1999 23:57:57 +0000
Aaron Watters wrote:
>
> Olivier Berger reports:
> >I found the demo (empty) database supplied with Zope but couldn't get
> it to work...
> >even a simple select * from __table_names__ won't work...
> >Tried to import an allready working gadfly base created with Python
> (gfplus) next to the
> >demo directory, but neither did it work....
>
> I think this is because Zope distributes a very old version of Gadfly
> and
> probably uses it even if you have the 1.0 released version. Maybe try
> hacking whatever zope uses for the pythonpath so that it gets the
> released
> version. Beyond that I'm clueless.
>
You're right for the versions...
I tried that old version by copying it from the gadfly version supplied
with Zope 1.11.0pr1, to a different directory.
I couldn't get it to work til I changed the sqlwhere.py stating where
the sql.mar file is.
After changing it in my gadfly test-installation, I was able to create a
demo database using gfplus.py... I thought I had found where the problem
came from.
Indeed, the original sqlwhere.py file coming with zope
(lib/python/Products/ZGadflyDA/gadfly/sqlwhere.py) seems to reference a
sql.mar file in a directory on the original development machine, which
of course is no longer valid.
I think this path should be updated to correspond to the place where
Zope is installed on the user's computer. Otherwise, I doubt that gadfly
can work under Zope... Anyone agree on that being a bug ?
So I tried to correct that problem by modifying it in the Zope
installation on my computer, but that doesn't seem to be much better...
So the problem may come also from something else.
Something still seems strange to me : when I use gadfly, for instance
with the gfplus tool, I have to mention a database name and a storage
directory for it, in order to connect to the base.
In zope, the only thing that can be configured when creating a ZGadfly
database connection, is the directory (selecting it in the scroll-list).
So how can we state the name of the database to connect to ?
Any help will be greatly appreciated.
C ya on Friday Aaron.
>
> -- Aaron Watters
>
> ===
>
> Just because you're paranoid doesn't mean everyone isn't
> out to get you!
--
Olivier Berger - olberger@club-internet.fr - membre de PARINUX
Paris Linux User Group : http://www.parinux.org
Vive Linux (www.linux.org) - Vive python (www.python.org)