[Zope] Re: Florent Guillaume's database Conflict Error on session objects patch not working ?

yacine chaouche yacinechaouche at gmail.com
Fri Feb 2 12:01:28 EST 2007


I added a new faster session object in my root folder. Once it was
created, i was on the property manager form and clicked on the test
tab and got the error reported above.

Is the request["SESSION"] object that you use in your code addressing
the classic SESSION object (in temp_folder/session_data_container) or
does it address your new session data objects ? for the latter case,
maybe i should rename the classic (zope's) SESSION object to SESSION2
or something...


Y.Chaouche


2007/2/2, Tres Seaver <tseaver at palladion.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> yacine chaouche wrote:
> > I forward your message to the list.
> >
> > I installed faster :
> > 1) It has no INSTALL file
>
> You're correct.  It installs like other Zope2 products, but it could use
> some description of how to replace the stock session manager with the
> new one.
>
> > 2) I created a better session manager object under the id newSession,
> > and hit the test button. I Got this error :
>
> Assuming that you mean the "Add" button on the "Test" tab, I can't
> reproduce this in my Zopd 2.9-based sandbox (running on the head of the
> 2.9 branch).  The items get added to the list (assuming that the key is
> separated from the value on the same line with a space.
>
>
> > Traceback (most recent call last):
> >   File "/opt/aef/Zope-2.9.0/lib/python/ZPublisher/Publish.py", line
> > 113, in publish
> >     request, bind=1)
> >   File "/opt/aef/Zope-2.9.0//lib/python/ZPublisher/mapply.py", line
> > 88, in mapply
> >     if debug is not None: return debug(object,args,context)
> >   File "/opt/aef/Zope-2.9.0/lib/python/ZPublisher/Publish.py", line
> > 40, in call_object
> >     result=apply(object,args) # Type s<cr> to step into published object.
> >   File "/opt/aef/Zope-2.9.0//lib/python/Shared/DC/Scripts/Bindings.py",
> > line 311, in __call__
> >     return self._bindAndExec(args, kw, None)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Shared/DC/Scripts/Bindings.py",
> > line 329, in _bindAndExec
> >     def _bindAndExec(self, args, kw, caller_namespace):
> >   File "/opt/aef/Zope-2.9.0//lib/python/Shared/DC/Scripts/Bindings.py",
> > line 348, in _bindAndExec
> >     return self._exec(bound_data, args, kw)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/PageTemplateFile.py",
> > line 110, in _exec
> >     return self.pt_render(extra_context=bound_names)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/PageTemplate.py",
> > line 104, in pt_render
> >     tal=not source, strictinsert=0)()
> >   File "/opt/aef/Zope-2.9.0//lib/python/TAL/TALInterpreter.py", line
> > 234, in __call__
> >     def __call__(self):
> >   File "/opt/aef/Zope-2.9.0//lib/python/TAL/TALInterpreter.py", line
> > 238, in __call__
> >     self.interpret(self.program)
> >   File "/opt/aef/Zope-2.9.0//lib/python/TAL/TALInterpreter.py", line
> > 281, in interpret
> >     handlers[opcode](self, args)
> >   File "/opt/aef/Zope-2.9.0//lib/python/TAL/TALInterpreter.py", line
> > 507, in do_setLocal_tal
> >     self.engine.setLocal(name, self.engine.evaluateValue(expr))
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/TALES.py",
> > line 221, in evaluate
> >     return expression(self)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/Expressions.py",
> > line 182, in __call__
> >     def __call__(self, econtext):
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/Expressions.py",
> > line 185, in __call__
> >     return self._eval(econtext)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/Expressions.py",
> > line 180, in _eval
> >     return render(ob, econtext.vars)
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/Expressions.py",
> > line 88, in render
> >     raise
> >   File "/opt/aef/Zope-2.9.0//lib/python/Products/PageTemplates/Expressions.py",
> > line 85, in render
> >     ob = ob()
> >   File "/opt/aef/Zope-2.9.0/lib/python/Products/faster/sessiondata.py",
> > line 255, in addItemsToSession
> >     before = len(session)
> > AttributeError: __len__
> >
> > Do you use a bug reporting system or something for your product ?
>
> Yes, there is a collector linked of the product's homepage.
>
>    http://agendaless.com/Members/tseaver/software/faster/
>
> I would note that we have had the product deployed in production for two
> customers for six months now, without any issues at all.
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver          +1 540-429-0999          tseaver at palladion.com
> Palladion Software   "Excellence by Design"    http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFw2qz+gerLs4ltQ4RAn4nAJ9I5kHhVtcdHHjLKQhiPpZH0/YyJwCdFrV1
> X5aHzRbZHQVi1lGLH/Hkpsw=
> =ufay
> -----END PGP SIGNATURE-----
>


More information about the Zope mailing list