Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook
Stephane Bortzmeyer wrote: > Does it mean I have to turn all my DTML documents into DTML methods if > I want them to call DTML methods, even if they are only content? > DTML Rule of Thumb (according to Tim): "Only use DTML Documents when you want an object to have persistent properties. All DTM

Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer
On Wed, Dec 13, 2000 at 12:20:34PM -0600, Tim Cook wrote: > If the calling code is within a DTML Document, then yes. The DTML > Method is within the calling namespace. OK, I understand, now, the ZopeBook was far from clear on this example. > You would need to set up the correct namespace first

Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer
On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote: > Are you sure you put it in a DTML Method and not a DTML Document? OK, I get you: my code is in a DTML method but it was ultimately called by DTML documents, which produced the wrong result. If I create a DTML method, it works. After rea

Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook
Stephane Bortzmeyer wrote: > Could it be an error in the calling code? I just say: > > > If the calling code is within a DTML Document, then yes. The DTML Method is within the calling namespace. You would need to set up the correct namespace first using dtml-with or PARENTS[x] where x is the

Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer
On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote: > Are you sure you put it in a DTML Method and not a DTML Document? Well, viewing the object through the management interface says so. To be sure, I created a new object from scratch and changed the standard_html_header to use it. Same pr

Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook
Stephane Bortzmeyer wrote: > my code, in a DTML method in the root folder: Are you sure you put it in a DTML Method and not a DTML Document? The code looks fine. > If I call it from /index_html, it works fine. If I call it from any > other document anywhere, I just get (so I'm sure the met

[Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer
I just try to automatically get a list of subfolders, following the example in the ZopeBook . Here is my code, in a DTML method in the root folder: If I call it from /index_html, it works fine. If I call