[Zope] Object acquisition question

hans hans@beehive.de
Fri, 19 Apr 2002 10:32:16 +0100


"Jorge O. Martinez" wrote:

> Hi:
>
> When I started playing with zope, I put a bunch of ZSQL objects in the
> dev area(/dev), and along with them there was some DTML docs that use
> these objects. However, I have now put all the object in one folder (say
> SqlObjects, still inside the dev area), but my DTML docs crash because
> they can't see the ZSQL objects.
>
> I know that I have to somehow tell my DTML documents of the location
> change, but can't figure out the right way, I tried (among many other
> things):
>
> <dtml-in context.dev.SqlObjects.myZSQLObject>
> do stuff
> </dtml-in>
>
> dtml document name: myDTMLdoc.html
>
> and many other combinations with no luck. Could anyboy outhere be so
> kind to share the right way to do it. I looked at the doc, and tried to
> follow the hippo example, but didn't get it to work in my case.

http://www.zope.org/Members/TheJester/CleanYourTree
http://www.zope.org/Members/hathawsh/TransparentFolders
might help, if SqlObjects is Transparent.
in addition (depends on TransparentFolder),
http://www.zope.org/Members/srichter/Products/OrderedFolder
and latest
http://demo.iuveno-net.de/iuveno/Products/OrderedFolder

-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299