[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] Namespace question
From:       Dieter Maurer <dieter () handshake ! de>
Date:       2000-06-30 21:52:24
[Download RAW message or body]

Rogerio Atem de Carvalho writes:
 > folder1
 >       |
 >       folder11
 >              |
 >              folder111
 > 
 > I have some objects in folder111 which I want to pass 
 > as parameters to a dtml method in folder1 (two levels 
 > above). I tried something like:
 > 
 > <dtml-with "PARENTS[2]">
 >  <td><dtml-var "mtdCreate(_.None, _,   
 > qry_item='par1',qry_table='par2', list_name='par3')">
 > </td></tr>
 > </dtml-with>
 > 
 > where par1 and par2 are strings and par3 is an object 
 > in folder111. mtdCreate is in folder1. it doesn't 
 > work...
You do not pass the objects "par1", "par2" and "par3"
but the literal strings 'par1', 'par2' and 'par3'.

At least for "par3", this will not be what you want.
Try: 
  <dtml-with "PARENTS[2]">
   <td><dtml-var "mtdCreate(_.None, _,   
  qry_item='par1',qry_table='par2', list_name=par3)">
  </td></tr>
  </dtml-with>
I.e., remove the quotes from "par3" (maybe the other "par", too).



Dieter

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic