[Zope-CMF] Be more Explicit about Problems/Exceptions was Erratci behaviour

Zopista zopista@zopezen.org
Thu, 15 Aug 2002 17:07:11 -0700


Yep Shane, thanks that seems to fix that. However since it was a rather
erratic bug I cant say for certain its squished, just that I cant reproduce
it ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


----- Original Message -----
From: "Zopista" <zopista@zopezen.org>
To: "alan runyan" <runyaga@runyaga.com>; <chetan@cdac.ernet.in>; "zope-cmf"
<zope-cmf@zope.org>
Sent: Thursday, August 15, 2002 11:00 AM
Subject: Re: [Zope-CMF] Be more Explicit about Problems/Exceptions was
Erratci behaviour


> Just got this on my clients site this morning
>
> > What version of ZOPE are you running?  2.5.1
> > What version of CMF are you running? 1.2
> > What CMF Products do you have installed? Plone, CMFCalendar,
CMFCollector,
> CMFWeblog, CMFWiki
> > Do you see any pattern in whats causing this?  Nope
> > Is the Python Script inside Filesystem Directory View? Yes, so fixed by
> altering the script.
> > if so does it have the context parameter defined? Yes
>
> I quickly threw the context bit in question inside a try except which
doesnt
> solve the problem, but it means the site will work. I can reproduce this
on
> demand by deleting the altered script, I can have a look further tonight
but
> cant while the site is being used....
>
> --
>   Andy McKay
>   Agmweb Consulting
>   http://www.agmweb.ca
>
> ----- Original Message -----
> From: "alan runyan" <runyaga@runyaga.com>
> To: <chetan@cdac.ernet.in>; "zope-cmf" <zope-cmf@zope.org>
> Sent: Thursday, August 15, 2002 10:42 AM
> Subject: [Zope-CMF] Be more Explicit about Problems/Exceptions was Erratci
> behaviour
>
>
> > Ok.
> >
> > Recently people have been getting a very bizarre exception that everyone
> > needs to be aware of.
> > Not only do they need to be aware of it but they need to give feedback
on
> > how often it is happening,
> > their configuration and if they can reproduce it.  The error has been
> filed
> > here, http://collector.zope.org/CMF/37
> >
> > It appears that Python Scripts will lose the context binding while being
> > executed.  since context is
> > how you do anything inside a Python Script -- it will make everything
blow
> > up.  If this happens to
> > you the last lines will have something like:
> >
> > File Script (Python), line 4, in breadcrumbs
> >     (Object: oscom.html)
> > TALESError: exceptions.NameError on global name 'context' is not defined
> in
> > '&lt;PythonExpr here.breadcrumbs(here)&gt;', at line 152, column 9
> >
> > I can reproduce this using Plone.  And I believe other people who are
not
> > using Plone are seeing this.  We need to find out
> > what circumstances it occurs under and provide more info so that it can
be
> > fixed.  If it happens you most probably will have to
> > refresh your Product or restart the ZOPE to get it working again.
> >
> > What version of ZOPE are you running?  What version of CMF are you
> running?
> > What CMF Products do you have installed?
> > Do you see any pattern in whats causing this?  Is the Python Script
inside
> > Filesystem Directory View?  if so does it have the
> > context parameter defined?
> >
> > cheers,
> > ~runyaga
> > p.s. its very important that we work together to squash this unruley
bug.
> >
> >
> >
> > _______________________________________________
> > Zope-CMF maillist  -  Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://collector.zope.org/CMF for bug reports and feature requests
> >
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>