[ZPatterns] what I'm doing wrong? PlugIns bug?

Antonio Beamud Montero [email protected]
25 Oct 2001 09:47:32 +0200


I have discover more data about this problem.

The list of object references I try to show in the dtml method is ok,
but this object instances aren't Acquisition Wrappers... but why one
moment before they are?

In the Traversable code I put one line like this:

  def absolute_url(self, relative=3D0):
        try:
            req =3D self.REQUEST
        except AttributeError:
            req =3D {}
->      open('/tmp/kk', 'w').write(str(req))
        rpp =3D req.get('VirtualRootPhysicalPath', ('',))
        spp =3D self.getPhysicalPath()


And the contents of /tmp/kk is: (Thanks to Juan David Iba=F1ez)
<Special Object Used to Force Acquisition>

What Can I do?

Greetings


On Wed, 2001-10-24 at 16:45, Antonio Beamud Montero wrote:
> Hello again:
> I have a little problem. Al my system works well, but after some time
> working with it, fails.
>=20
> I have a Folder, and inside, different objects (plugins). Some of this
> objects contains a list of references to objects contained in the same
> folder.=20
> When I try list that references using:
>=20
> <dtml-in list_plugins>
>   <p><a href=3D"<dtml-var absolute_url>"><dtml-var id></a>
> </dtml-in>
>=20
> When I click in this generated links, all works well, but some time
> later when I try to click in it, Zope return me the next error:
>=20
> Error Type: AttributeError
> Error Value: get
>=20
>=20
>  File
> /usr/local/Zope-2.4.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py=
, line 354, in _bindAndExec
>     (Object: editMachine)
>   File /usr/local/Zope-2.4.1-linux2-x86/lib/python/App/special_dtml.py,
> line 244, in _exec
>     (Object: editMachine)
>   File
> /usr/local/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
> line 770, in renderwob
>     (Object: list_installed_plugs)
>   File /usr/local/Zope-2.4.1-linux2-x86/lib/python/OFS/Traversable.py,
> line 107, in absolute_url
>     (Object: PlugInBase)
>=20
>=20
> I'm using PlugIns Product and all this objects are plugins. How I can
> debug this problem. Anybody has any idea? Why all works well during a
> moment..?
>=20
> Thanks
>=20
>=20
> _______________________________________________
> ZPatterns mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/zpatterns