Hello zope, Acquisition is really cool and amazing .. if it works..:D but sometimes it doesnt. for example, i have a folder "/admin", in that one i have an "options" admin has an index_html, options doesnt. options have a title property, admin too... but they are not getting rendered by <dtml-var title>... i have a real_index.html in the options folder... in which it does correctly render it... why isnt the acquired index_html rendering the variables ? i think i am too lame, or zope is too lame... but not both ;D hope i am ... thanks a lot:D k. -- don't believe everything you think
On Mon, Aug 05, 2002 at 05:49:32PM +0200, 3205 5361 1215 9784 wrote:
why isnt the acquired index_html rendering the variables ?
Is index_html a dtml document, or a dtml method? I think in general, you'll want it to be a method. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Hello Mike, Monday, August 5, 2002, 9:02:13 PM, you wrote: MR> On Mon, Aug 05, 2002 at 05:49:32PM +0200, 3205 5361 1215 9784 wrote:
why isnt the acquired index_html rendering the variables ?
MR> Is index_html a dtml document, or a dtml method? I think in general, MR> you'll want it to be a method. i tried... and works... thanks... so what is dtml document god for?:D k -- don't believe everything you think
On Mon, Aug 05, 2002 at 10:03:50PM +0200, 3205 5361 1215 9784 wrote:
MR> Is index_html a dtml document, or a dtml method? I think in general, MR> you'll want it to be a method.
i tried... and works... thanks... so what is dtml document god for?:D
I suppose it's good for standalone content, or for situations where you need an html-like object that has its own properties. That having been said, I never use it for an index_html, and this exact problem and solution has come up before. I'm completely unsure why it was the default object type added when you use 'Create public interface' (unless my memory is off). However, it appears that in my 2.5.1 install, that the default public interface is a Page Template. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
On Mon, Aug 05, 2002 at 07:09:42PM -0500, Mike Renfro wrote:
I suppose it's good for standalone content, or for situations where you need an html-like object that has its own properties. That having been said, I never use it for an index_html, and this exact problem and solution has come up before.
Hacker Beware! ;-) You might run into problems later when you want to create new properties on your document. DTML methods cannot have their own properties, a fact which bit me a while back when I tried to implement a request counter for my DTML documents. So whenever I tried to change a property the property of the containing folder was changed (via Acquisition), so if you plan to add properties you'll need to use dtml documents as opposed to methods. Cheers, uwe -- Uwe Schuerkamp Tel: +49 (0)5241 / 80 10 66, FAX: / 806 23 38 Uwe.Schuerkamp@nionex.net Nionex GmbH, IWN5 (http://www.nionex.de/) GnuPG KeyID: 5887047D Avenwedder Str. 55, 33311 Guetersloh GnuPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61
participants (4)
-
3205 5361 1215 9784 -
Chris Withers -
Mike Renfro -
Uwe Schuerkamp