[Zope-dev] Zope 2.10 TALES repeat and 'item'

2006-06-01 Thread Florent Guillaume
The following TALES expression using the 'item' name doesn't work: python:repeat['item'].even() Unauthorized: The container has no security assertions. Access to 'even' of (Products.PageTemplates.Expressions.PathIterator object at 0x47986f0) denied. whereas this works: repeat/item/ev

[Zope-dev] Re: Zope 2.10 deprecation warnings

2006-06-01 Thread Florent Guillaume
FYI I've fixed all this. Florent Florent Guillaume wrote: Current bare Zope 2.10 sends some deprecation warnings because it itself imports things that it deprecates, this will have to be hidden. Suggestions welcome: - App/Product.py imports ZClasses which are deprecated, - Products/ZCatalog

[Zope-dev] Re: Zope 2.10 TALES repeat and 'item'

2006-06-01 Thread Philipp von Weitershausen
Florent Guillaume wrote: > The following TALES expression using the 'item' name doesn't work: > > python:repeat['item'].even() > Unauthorized: The container has no security assertions. Access to > 'even' of (Products.PageTemplates.Expressions.PathIterator object at > 0x47986f0) denied. > > w

[Zope-dev] Re: SVN: Zope/trunk/lib/python/AccessControl/ Make python security policy work with a boolean __aatus__

2006-06-01 Thread Philipp von Weitershausen
Florent Guillaume wrote: > Log message for revision 68446: > Make python security policy work with a boolean __aatus__ Wow, I wasn't aware that only ints were possible. Shouldn't this be backported to Zope 2.9 as well? I consider it a bug when an 1 won't be exchangeable for True in something tha

[Zope-dev] Re: Zope 2.10 TALES repeat and 'item'

2006-06-01 Thread Philipp von Weitershausen
Philipp von Weitershausen wrote: > Florent Guillaume wrote: >> The following TALES expression using the 'item' name doesn't work: >> >> python:repeat['item'].even() >> Unauthorized: The container has no security assertions. Access to >> 'even' of (Products.PageTemplates.Expressions.PathIterato

[Zope-dev] Re: SVN: Zope/trunk/lib/python/AccessControl/ Make python security policy work with a boolean __aatus__

2006-06-01 Thread Florent Guillaume
On 1 Jun 2006, at 17:53, Philipp von Weitershausen wrote: Florent Guillaume wrote: Log message for revision 68446: Make python security policy work with a boolean __aatus__ Wow, I wasn't aware that only ints were possible. Shouldn't this be backported to Zope 2.9 as well? I consider it a bug

[Zope-dev] Re: SVN: Zope/trunk/lib/python/AccessControl/ Make python security policy work with a boolean __aatus__

2006-06-01 Thread Philipp von Weitershausen
Florent Guillaume wrote: > On 1 Jun 2006, at 17:53, Philipp von Weitershausen wrote: >> Florent Guillaume wrote: >>> Log message for revision 68446: >>> Make python security policy work with a boolean __aatus__ >> >> Wow, I wasn't aware that only ints were possible. Shouldn't this be >> backporte

[Zope-dev] Re: SVN: Zope/trunk/lib/python/AccessControl/ Make python security policy work with a boolean __aatus__

2006-06-01 Thread Florent Guillaume
On 1 Jun 2006, at 18:19, Philipp von Weitershausen wrote: Florent Guillaume wrote: On 1 Jun 2006, at 17:53, Philipp von Weitershausen wrote: By the way, a test for isinstance(__aatus__, int) would also be true for booleans because bool inherits from int. I didn't want to touch the p.__class

[Zope-dev] Re: SVN: Zope/branches/2.10/lib/python/Products/PageTemplates/Expressions.py Revert unwanted checkin.

2006-06-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: > Log message for revision 68445: > Revert unwanted checkin. > > > Changed: > U Zope/branches/2.10/lib/python/Products/PageTemplates/Expressions.py > > -=- > Modified: Zope/branches/2.10/lib/python/Products/PageTempl

[Zope-dev] Re: SVN: Zope/branches/2.10/lib/python/Products/PageTemplates/Expressions.py Revert unwanted checkin.

2006-06-01 Thread Philipp von Weitershausen
Tres Seaver wrote: > Florent Guillaume wrote: >>> Log message for revision 68445: >>> Revert unwanted checkin. >>> >>> >>> Changed: >>> U Zope/branches/2.10/lib/python/Products/PageTemplates/Expressions.py >>> >>> -=- >>> Modified: >>> Zope/branches/2.10/lib/python/Products/PageTemplates/