[Zope] Calling obj. in index_html
hi, I have an external fs object called ftp, in a folder called ftp. I had to put it in the folder so I could add users and what not. I would like to call the object in my index_html so I can do: http://www.bla.com/ftp rather than http://www.bla.com/ftp/ftp Can somone help w/ the dtml call? Thanks, j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Calling obj. in index_html
dtml-with "ftp" dtml-var index_html /dtml-with Put in the first ftp folder. This will only work on the index_html. To "skip" the entire folder you will need an access rule. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Jason C. Leach" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 11:12 AM Subject: [Zope] Calling obj. in index_html hi, I have an external fs object called ftp, in a folder called ftp. I had to put it in the folder so I could add users and what not. I would like to call the object in my index_html so I can do: http://www.bla.com/ftp rather than http://www.bla.com/ftp/ftp Can somone help w/ the dtml call? Thanks, j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Calling obj. in index_html
I had to catch myself. expr="Bad Jimbo" I guess calling it versus inserting it achieves the same results. Just to clarify this would render a string "_['ftp']" right? -Jimbo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Calling obj. in index_html
In the wonderful world of DTML dtml-with ftp dtml-with "ftp" dtml-with expr="ftp" dtml-with expr="_['ftp']" dtml-with expr="_.getitem('ftp')" etc... all work for folders. I know dtml-var foo is different from dtml-var "foo". But whilst its always been summarised that one "is python" and one "isnt", the exact difference I couldn't tell you without hunting through the DT source. wild guess Both dtml-var foo and dtml-var "foo" both render the string of foo, its just that the latter doesnt parse the resulting html/wild guess, but things are different for dtml-with compared to dtml-var. Maybe someone more expert than me would like to jump in... -- Andy McKay, Developer. ActiveState. - Original Message - From: "jimbo" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 1:30 PM Subject: [Zope] Calling obj. in index_html I had to catch myself. expr="Bad Jimbo" I guess calling it versus inserting it achieves the same results. Just to clarify this would render a string "_['ftp']" right? -Jimbo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )