Re: [Zope] Namespace question

2000-06-30 Thread Dieter Maurer

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]"
   tddtml-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]"
   tddtml-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  -  [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] Namespace question

2000-06-29 Thread Nick Garcia

Rogerio Atem de Carvalho wrote:
 
 Hi,
 
 I working on an structure like this:
 
 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]"
  tddtml-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...
 
 How can I do that

You should be able to do:

dtml-with "folder11.folder111"
  tddtml-var "mtdCreate(_.None, _, qry_item='par1',qry_table='par2',
list_name='par3')"
  /td/tr
/dtml-with

-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.com

___
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 )