Re: [Zope-dev] exceptions on windows
Wild guess... theres a module /lib/python/Interface/Exceptions.py. In Python 1.5.2 doesnt that mean windows will import that rather than exceptions.py? Cheers. -- Andy McKay. - Original Message - From: "kapil thangavelu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 4:57 AM Subject: [Zope-dev] exceptions on windows > i've always been curious why zope on windows with > a bundled python seems to have problems with finding > the standard lib exceptions. does anyone know why? > > for example > > from exceptions import SyntaxError > > class MySyntaxErr(SyntaxError): > pass > > in a product generates an import error. > > (i last noted this behavior on 2.2, haven't used windows since...) > > > thanks > > -kapil > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] exceptions on windows
i've always been curious why zope on windows with a bundled python seems to have problems with finding the standard lib exceptions. does anyone know why? for example from exceptions import SyntaxError class MySyntaxErr(SyntaxError): pass in a product generates an import error. (i last noted this behavior on 2.2, haven't used windows since...) thanks -kapil ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] pluggable indexes and ranking
i've hooked up some external indexing machinery to zcatalog via a pluggable index. i get backed ranked results and i'd like not to loose the ranking info, but i don't know how to return a result set that preserves this information. any ideas? -kapil ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.4.1 bugfix in RestrictedPython/__init__.py
Romain Slootmaekers wrote: > Yo dudes, > VSEval in Documenttemplate tries to set Eval > No problem but RestictedPython has no Eval attribute by default > so you need to import it > > add this line to RestrictedPython/__init__.py > > import Eval Actually, VSEval currently does *not* apply restrictions. I'd like you to try changing VSEval to the following and tell me whether you have any problems. Shane # alias module for backwards compatibility from DT_Util import Eval def careful_mul(env, *factors): r = 1 for factor in factors: r=r*factor return r ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.4.1 bugfix in RestrictedPython/__init__.py
Yo dudes, VSEval in Documenttemplate tries to set Eval No problem but RestictedPython has no Eval attribute by default so you need to import it add this line to RestrictedPython/__init__.py import Eval can someone add this to the source tree ? Tia & have fun, Sloot. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )