[Zope] Acquisitive
Steve Spicklemire
steve@spvi.com
Sat, 21 Oct 2000 08:09:21 -0500 (EST)
Hi Jerry,
I'm guessing the the problem is that
&dtml-xxx; does an implicit "html_quote" format
on whatever expression you provide.. so
<table &dtml-set_table_0;>
should produce:
<table border="0" cellpadding="0" cellspacing="0">
Which the browser doesn't grok....
try:
<table <dtml-var set_table_0>>
-steve
>>>>> "JS" == Spicklemire, Jerry <Jerry.Spicklemire@IFLYATA.COM> writes:
JS> Hi Zope Fans,
JS> I ran into an odd quirk today, and I'm hoping someone has an
JS> insight to share. There is a simple text string stored as a
JS> DTML Method, with ID = "set_table_0", e.g.:
JS> 'border="0" cellpadding="0" cellspacing="0"'
JS> When set_table_0 is in the Zope root folder, it isn't
JS> discovered through normal acquisition, but no error occurs.
JS> <table &dtml-set_table_0;>
JS> creates a table with defaults, e.g. border is visible.
JS> However, when set_table_0 is moved to a subfolder of the Zope
JS> root folder, with the name "table_settings", and the reference
JS> is made like so:
JS> <table %dtml-table_settings[set_table_0];>
JS> the DTML Method is found successfully, and the table border
JS> isn't displayed.
JS> The question is, why is the folder "table_settings" found in
JS> the Zope Root Folder, but not the method?
JS> Does Acquisition give higher preference to folders
JS> (container), objects than a DTML Method?
JS> Thanks, Jerry S.
JS> _______________________________________________ Zope maillist
JS> - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope **
JS> No cross posts or HTML encoding! ** (Related lists -
JS> http://lists.zope.org/mailman/listinfo/zope-announce
JS> http://lists.zope.org/mailman/listinfo/zope-dev )