Re: [Zope] prefix attribute in dtml-in

2006-06-10 Thread Gabriel Genellina

At Thursday 8/6/2006 22:12, you wrote:


Error Type: NameError
Error Value: name 'topic_var_fulltitle' is not defined

I accidentally put 'sequence_var_fulltitle' in the example code below,
I'm actually using 'topic_var_fulltitle'


That should work, given that getConsulting() returns a result with a 
column named var_fulltitle.
You can use names to see the actual column names: dtml-var 
expr=getConsulting().names

(or perhaps it is .names(), this code is untested)



Gabriel Genellina
Softlab SRL 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] prefix attribute in dtml-in

2006-06-08 Thread Sam Boggess
Using Zope 2.8, I have two nested dtml-in tags that each loop  
through the results of different SQL methods.  I'm trying to use the  
prefix attribute to differentiate the two, but I can't get it to  
work.  Does anyone have any thoughts?


dtml-in expr=getConsulting() prefix=topic
  fieldset
  legenddtml-var expr=sequence_var_fulltitle Sub Topics/legend
dtml-in expr=getConsultingSub() prefix=subtopic
fieldset
legendTopic dtml-var subtopic_displayorder: dtml-var  
subtopic_menutitle/legend

/fieldset
  /dtml-in
  /fieldset
/dtml-in
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )