[Zope] 2.1.4 to 2.1.6 nightmare

Felipe Alvarez Harnecker felipe.alvarez@qlsoft.cl
Wed, 24 May 2000 13:38:55 -0400 (CLT)


Hi Zopistas,

after upgrading Zope (in a debian/Linux system) from 2.1.4 to 2.1.6
the acquisition rules seems to be broken.

As an example supose we have this tree structure

---|- aviso
   |- foo
   |- bar     
      |- X_sql (sql method)



X_sql is a sql method with to parameters: objeto, aviso

here is the template:

INSERT INTO linea_publicacion
  (publicacion,aviso)
VALUES
  (&dtml-objeto;,&dtml-aviso;)

when zope renders this template to execute the sql, it renders

INSERT INTO linea_publicacion
  (publicacion,aviso)
VALUES
  (3,<Folder instance at 8580aa0>)

so it replaces aviso with the folder instance aviso.

Apart of discarding the explicit parameter "aviso", the aviso folder
is not parent of bar so it shoudn't acquire it.

So, who can explain me this??

is that a bug in Zope 2.1.6 ??  Zope 2.1.4 works fine.

-- 
______________________________________________________

Felipe Alvarez Harnecker.  QlSoftware.
		
Tel. 09.874.60.17  e-mail: felipe.alvarez@qlsoft.cl

Potenciado por Ql/Linux  http://www.qlsoft.cl/
______________________________________________________