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

Antonio Beamud Montero antonio.beamud@agoratechnologies.com
25 Oct 2001 10:07:02 +0200


Software versions I use are:

Zope: Zope-2.4.1-linux2-x86
Python 2.2a4 (#1, Oct 11 2001, 12:38:11) [GCC 2.95.2 20000220 (Debian
GNU/Linux)] on linux2
PlugIns: version contained in TransactionAgents-0.0.4=20

On Thu, 2001-10-25 at 09:47, Antonio Beamud Montero wrote:
> I have discover more data about this problem.
>=20
> 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?
>=20
> In the Traversable code I put one line like this:
>=20
>   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()
>=20
>=20
> And the contents of /tmp/kk is: (Thanks to Juan David Iba=F1ez)
> <Special Object Used to Force Acquisition>
>=20
> What Can I do?
>=20
> Greetings
>=20
>=20
> 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
> > ZPatterns@eby-sarna.com
> > http://www.eby-sarna.com/mailman/listinfo/zpatterns
>=20