+# 1 1 1: 0
+return xor(xor(a, b), c) and not (a and b and c)
Heh, boolean algebra is nice but sometimes integers convey the
meaning much better:
return int(a)+int(b)+int(c) == 1
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of RD
+33 1 40 33 71 59 http://nuxeo.com
Indeed :)
On 29 Jul 2006, at 00:39, Benji York wrote:
Florent Guillaume wrote:
On 27 Jul 2006, at 16:15, Lennart Regebro wrote:
Modified: Products.Five/trunk/site/localsite.py
===
--- Products.Five/trunk/site/localsite.py 2006
Log message for revision 69002:
Correct view traversal security checks
Changed:
U Zope/branches/2.10/lib/python/OFS/Traversable.py
-=-
Modified: Zope/branches/2.10/lib/python/OFS/Traversable.py
===
---
Log message for revision 69003:
Merged 69002 from 2.10 branch:
Correct view traversal security checks
Changed:
U Zope/trunk/lib/python/OFS/Traversable.py
-=-
Modified: Zope/trunk/lib/python/OFS/Traversable.py
===
---
Log message for revision 69004:
Code cleanup.
Changed:
U Zope/branches/2.10/lib/python/OFS/Traversable.py
-=-
Modified: Zope/branches/2.10/lib/python/OFS/Traversable.py
===
---
Log message for revision 69005:
Code cleanup.
Changed:
U Zope/trunk/lib/python/OFS/Traversable.py
-=-
Modified: Zope/trunk/lib/python/OFS/Traversable.py
===
--- Zope/trunk/lib/python/OFS/Traversable.py2006-07-06 14:24:13
Log message for revision 68980:
Fixed refactored traversal on bound methods of classes with no default
access.
Changed:
U Zope/branches/2.10/lib/python/OFS/Traversable.py
U Zope/branches/2.10/lib/python/OFS/tests/testTraverse.py
-=-
Modified:
Log message for revision 68458:
Acquisition wrappers now correctly proxy __contains__.
Changed:
U Zope/branches/2.10/doc/CHANGES.txt
U Zope/branches/2.10/lib/python/Acquisition/_Acquisition.c
U Zope/branches/2.10/lib/python/Acquisition/tests.py
-=-
Modified:
Log message for revision 68460:
Sync formatting with trunk.
Changed:
U Zope/branches/2.10/doc/CHANGES.txt
-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===
--- Zope/branches/2.10/doc/CHANGES.txt 2006-06-02 14:34:52 UTC
Log message for revision 68461:
Empty TALES path expressions are allowed in Zope 2.
http://www.zope.org/Collectors/Zope/2118
Changed:
U Zope/branches/2.10/lib/python/Products/PageTemplates/Expressions.py
U
Log message for revision 68462:
Merged r68461 from 2.10 branch:
Empty TALES path expressions are allowed in Zope 2.
http://www.zope.org/Collectors/Zope/2118
Changed:
U Zope/trunk/lib/python/Products/PageTemplates/Expressions.py
U
Log message for revision 68427:
Removed a warning at Zope startup.
Changed:
U Zope/branches/2.10/lib/python/Products/ZCatalog/ZCatalog.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/ZCatalog/ZCatalog.py
===
---
Log message for revision 68428:
Merged r68427 from 2.10 branch:
Removed a warning at Zope startup.
Changed:
U Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py
-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py
Log message for revision 68430:
Removed a warning at Zope startup.
Changed:
U Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py
Log message for revision 68431:
Removed a warning at Zope startup.
Changed:
U Zope/trunk/lib/python/Products/PluginIndexes/__init__.py
-=-
Modified: Zope/trunk/lib/python/Products/PluginIndexes/__init__.py
===
---
Log message for revision 68432:
Removed a warning at Zope startup.
Changed:
U Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
===
---
Log message for revision 68433:
Removed a warning at Zope startup.
Changed:
U Zope/trunk/lib/python/Products/ZCatalog/__init__.py
-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/__init__.py
===
---
Log message for revision 68434:
More robust.
Changed:
U Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
===
---
Log message for revision 68435:
More robust.
Changed:
U Zope/trunk/lib/python/Products/ZCatalog/__init__.py
-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/__init__.py
===
---
Log message for revision 68436:
More robust.
Changed:
U Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/PluginIndexes/__init__.py
===
---
Log message for revision 68437:
More robust.
Changed:
U Zope/trunk/lib/python/Products/PluginIndexes/__init__.py
-=-
Modified: Zope/trunk/lib/python/Products/PluginIndexes/__init__.py
===
---
Log message for revision 68438:
Removed a warning at Zope startup.
Changed:
U Zope/branches/2.10/lib/python/App/Product.py
-=-
Modified: Zope/branches/2.10/lib/python/App/Product.py
===
---
Log message for revision 68439:
Removed a warning at Zope startup.
Changed:
U Zope/trunk/lib/python/App/Product.py
-=-
Modified: Zope/trunk/lib/python/App/Product.py
===
--- Zope/trunk/lib/python/App/Product.py
Log message for revision 68440:
Don't warn when the ZGadflyDA is imported by Zope startup code.
Changed:
U Zope/branches/2.10/lib/python/Products/ZGadflyDA/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/ZGadflyDA/__init__.py
Log message for revision 68444:
Make python security policy work with a boolean __aatus__
Changed:
U Zope/branches/2.10/lib/python/AccessControl/ImplPython.py
U
Zope/branches/2.10/lib/python/AccessControl/tests/testZopeSecurityPolicy.py
U
Log message for revision 68446:
Make python security policy work with a boolean __aatus__
Changed:
U Zope/trunk/lib/python/AccessControl/ImplPython.py
U Zope/trunk/lib/python/AccessControl/tests/testZopeSecurityPolicy.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/ImplPython.py
Log message for revision 68447:
Make python security policy work with a boolean __aatus__
Changed:
U Zope/branches/2.9/lib/python/AccessControl/ImplPython.py
U Zope/branches/2.9/lib/python/AccessControl/tests/testZopeSecurityPolicy.py
-=-
Modified:
Log message for revision 68448:
Use isinstance, like the C implementation.
Changed:
U Zope/branches/2.10/lib/python/AccessControl/ImplPython.py
-=-
Modified: Zope/branches/2.10/lib/python/AccessControl/ImplPython.py
===
---
Log message for revision 68449:
Use isinstance, like the C implementation.
Changed:
U Zope/trunk/lib/python/AccessControl/ImplPython.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/ImplPython.py
===
---
Log message for revision 68414:
There must be no warning when __name__ is supplied.
Changed:
U Zope/branches/2.10/lib/python/Products/PageTemplates/PageTemplateFile.py
-=-
Modified:
Zope/branches/2.10/lib/python/Products/PageTemplates/PageTemplateFile.py
Log message for revision 68415:
Merged r68414 from 2.10 branch:
There must be no warning when __name__ is supplied.
Changed:
U Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py
-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/PageTemplateFile.py
Log message for revision 41327:
Fix temp_folder mounting problem.
Othere tests don't pass though, maybe I think due to __implemented__ and
__provides__ attributes in the persistentclass state.
Changed:
U Zope/branches/2.9/lib/python/ZClasses/ZClass.txt
-=-
Modified:
Log message for revision 41303:
When a database is created by hand from a custom_zodb.py during
startup, we still want to put it in the dbtab multidatabases dict.
This happens when unit tests call Zope2.startup(), because Testing has a
specific custom_zodb.py loaded at startup that uses
Log message for revision 40929:
Forgotten import.
Changed:
U Zope/trunk/lib/python/OFS/CopySupport.py
-=-
Modified: Zope/trunk/lib/python/OFS/CopySupport.py
===
--- Zope/trunk/lib/python/OFS/CopySupport.py2005-12-21
Log message for revision 40864:
Added a 'conflict-error-log-level' directive to zope.conf, to set the
level at which conflict errors (which are normally retried
automatically) are logged. The default is 'info'.
This doesn't interfere with the error_log site object which copies
Log message for revision 40865:
Merged r40864 from 2.9 branch:
Added a 'conflict-error-log-level' directive to zope.conf, to set the
level at which conflict errors (which are normally retried
automatically) are logged. The default is 'info'.
This doesn't interfere with the error_log
Log message for revision 40764:
The SiteErrorLog now copies exceptions to the event log by default
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U
Zope/branches/Zope-2_8-branch/lib/python/Products/SiteErrorLog/SiteErrorLog.py
-=-
Modified:
Log message for revision 40765:
The SiteErrorLog now copies exceptions to the event log by default
Changed:
U Zope/branches/2.9/doc/CHANGES.txt
U Zope/branches/2.9/lib/python/Products/SiteErrorLog/SiteErrorLog.py
-=-
Modified: Zope/branches/2.9/doc/CHANGES.txt
Log message for revision 40536:
ObjectManager now has an hasObject method to test presence. This
brings it in line with BTreeFolder.
Changed:
U Zope/branches/2.9/doc/CHANGES.txt
U Zope/branches/2.9/lib/python/OFS/ObjectManager.py
U Zope/branches/2.9/lib/python/OFS/interfaces.py
Log message for revision 40537:
Merged r40536 from 2.9 branch:
ObjectManager now has an hasObject method to test presence. This
brings it in line with BTreeFolder.
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/OFS/ObjectManager.py
U
Log message for revision 40542:
Merged r40536 from 2.9 branch:
ObjectManager now has an hasObject method to test presence. This
brings it in line with BTreeFolder.
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U
Log message for revision 40454:
Improved logging of ConflictErrors. Now a log is made at level BLATHER
with traceback for any conflict retried. In addition, a log is made at
level ERROR for a conflict that can't be retried anymore and is returned
to the browser as an error. Nothing is
Log message for revision 40455:
Merged r40454 from 2.9 branch:
Improved logging of ConflictErrors. Now a log is made at level BLATHER
with traceback for any conflict retried. In addition, a log is made at
level ERROR for a conflict that can't be retried anymore and is returned
to the
Log message for revision 40432:
Fixed #1960. Simplified dumb useless dialog.
Changed:
U Zope/branches/Zope-2_8-branch/lib/python/Products/SiteAccess/SiteRoot.py
-=-
Modified:
Zope/branches/Zope-2_8-branch/lib/python/Products/SiteAccess/SiteRoot.py
Log message for revision 40433:
Fixed #1960. Simplified dumb useless dialog.
Changed:
U Zope/branches/2.9/lib/python/Products/SiteAccess/SiteRoot.py
-=-
Modified: Zope/branches/2.9/lib/python/Products/SiteAccess/SiteRoot.py
Log message for revision 40403:
Fixed problem with security.setPermissionDefault when the permission
wasn't used anywhere else in the class to protect methods.
Changed:
U Zope/branches/2.9/lib/python/AccessControl/SecurityInfo.py
U
Log message for revision 40404:
Merged r40403 from 2.9 branch:
Fixed problem with security.setPermissionDefault when the permission
wasn't used anywhere else in the class to protect methods.
Changed:
U Zope/trunk/lib/python/AccessControl/SecurityInfo.py
U
Log message for revision 40405:
Update CHANGES.
Changed:
U Zope/branches/2.9/doc/CHANGES.txt
-=-
Modified: Zope/branches/2.9/doc/CHANGES.txt
===
--- Zope/branches/2.9/doc/CHANGES.txt 2005-11-29 14:56:48 UTC (rev 40404)
Log message for revision 40406:
Merged r40403 from 2.9 branch:
Fixed problem with security.setPermissionDefault when the permission
wasn't used anywhere else in the class to protect methods.
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U
Log message for revision 40408:
Added backward compat for suppress_events parameter passing.
Changed:
U Zope/branches/2.9/lib/python/OFS/CopySupport.py
U Zope/branches/2.9/lib/python/OFS/OrderSupport.py
-=-
Modified: Zope/branches/2.9/lib/python/OFS/CopySupport.py
Log message for revision 40409:
Merged r40408 from 2.9 branch:
Added backward compat for suppress_events parameter passing.
Changed:
U Zope/trunk/lib/python/OFS/CopySupport.py
U Zope/trunk/lib/python/OFS/OrderSupport.py
-=-
Modified: Zope/trunk/lib/python/OFS/CopySupport.py
Log message for revision 40389:
Use ObjectCopiedEvent with an 'original' parameter.
Changed:
U Zope/branches/2.9/lib/python/OFS/CopySupport.py
U Zope/branches/2.9/lib/python/OFS/ObjectManager.py
U Zope/branches/2.9/lib/python/OFS/OrderSupport.py
-=-
Modified:
Log message for revision 40390:
Merged 40389 from 2.9 branch:
Use ObjectCopiedEvent with an 'original' parameter.
Changed:
U Zope/trunk/lib/python/OFS/CopySupport.py
U Zope/trunk/lib/python/OFS/ObjectManager.py
U Zope/trunk/lib/python/OFS/OrderSupport.py
-=-
Modified:
Log message for revision 40371:
Merged 40370 from 2.9 branch:
Send ContainerModifiedEvent when appropriate.
This requires Five 1.3+ = r20254.
Some BBB has been kept until Zope 3.2 = r40368 is stiched in.
Changed:
U Zope/trunk/lib/python/OFS/CopySupport.py
U
Log message for revision 40372:
Updated to Five 1.3b4.
Changed:
U Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt
U Zope/branches/2.9/lib/python/Products/Five/__init__.py
U Zope/branches/2.9/lib/python/Products/Five/tests/event.txt
U
Log message for revision 40375:
Forgotten in Five 1.3b4 merge.
Changed:
A Zope/trunk/lib/python/Products/Five/monkey.py
-=-
Added: Zope/trunk/lib/python/Products/Five/monkey.py
===
---
Log message for revision 40280:
Merged r40279 from 2.9 branch:
Warn when an attempt is made to have a security declaration on a
nonexistent method. Removed one such method.
Fixed unclear security declarations. When bug 761 was fixed,
declareProtected(perm) was made illegal, at
Log message for revision 40281:
Merged r40279 from 2.9 branch:
Warn when an attempt is made to have a security declaration on a
nonexistent method. Removed one such method.
Fixed unclear security declarations. When bug 761 was fixed,
declareProtected(perm) was made illegal, at
Log message for revision 40024:
Move code around a bit.
Changed:
U Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py
-=-
Modified: Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py
===
---
Log message for revision 40031:
Banch has been merged.
Changed:
D Zope/branches/efge-five-events-work/
-=-
___
Zope-Checkins maillist - Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
Log message for revision 40006:
Use a better __repr__ for User objects.
(NullUnrestrictedUser had a non-string repr that made it impossible to
debug properly.)
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/AccessControl/User.py
U
Log message for revision 40012:
Branch to fix events with Five.
Changed:
A Zope/branches/efge-five-events-work/
-=-
Copied: Zope/branches/efge-five-events-work (from rev 40011, Zope/trunk)
___
Zope-Checkins maillist - Zope-Checkins@zope.org
Log message for revision 39820:
Work correctly with event dispatching:
- mark a test class as deprecated,
- use a container class that implements IItem.
Changed:
U
Zope/branches/philikon-zope32-integration/lib/python/OFS/tests/testObjectManager.py
-=-
Modified:
Log message for revision 39829:
Move code inside try/except.
Changed:
U
Zope/branches/philikon-zope32-integration/lib/python/Products/SiteErrorLog/tests/testSiteErrorLog.py
-=-
Modified:
Log message for revision 39835:
Don't recurse explicitely, and shut up deprecation warnings.
Changed:
U
Zope/branches/philikon-zope32-integration/lib/python/OFS/tests/testObjectManager.py
-=-
Modified:
Zope/branches/philikon-zope32-integration/lib/python/OFS/tests/testObjectManager.py
Log message for revision 39846:
Moved more stuff from Five into Zope itself.
Event interfaces are now in OFS.interfaces.
IFiveObjectClonedEvent has been renamed into IObjectClonedEvent.
Changed:
U Zope/branches/philikon-zope32-integration/lib/python/OFS/CopySupport.py
U
Log message for revision 39540:
Collector #1926: fixed a typo in _doAddUser when password encryption is
enabled.
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U Zope/branches/Zope-2_8-branch/lib/python/AccessControl/User.py
-=-
Modified:
Log message for revision 38738:
The '@' character is now allowed in object ids (RFC 1738 allows it).
Expanded tests for _checkId.
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U Zope/branches/Zope-2_8-branch/lib/python/OFS/ObjectManager.py
U
Log message for revision 37625:
Additional test. CMF requires this behaviour.
Changed:
U
Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
-=-
Modified:
Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
Log message for revision 37633:
Display offending line when warning about getOwner(1) deprecation.
Changed:
U Zope/trunk/lib/python/AccessControl/Owned.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/Owned.py
===
---
Update of /cvs-repository/Packages/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv8
Modified Files:
Tag: Zope-2_7-branch
Owned.py
Log Message:
Merge from 37633 on trunk:
Display offending line when warning about getOwner(1) deprecation.
===
Log message for revision 37638:
Merge from 37625 on trunk:
Additional test. CMF requires this behaviour.
Changed:
U
Zope/branches/Zope-2_8-branch/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
-=-
Modified:
Log message for revision 37481:
Put warning on a single line.
Changed:
U Zope/trunk/lib/python/Zope.py
-=-
Modified: Zope/trunk/lib/python/Zope.py
===
--- Zope/trunk/lib/python/Zope.py 2005-07-27 13:38:39 UTC (rev
Log message for revision 37482:
Put warning on a single line.
Changed:
U Zope/branches/Zope-2_8-branch/lib/python/Zope.py
-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/Zope.py
===
---
)
if not ((name.startswith('_p_') or name.startswith('_v'))):
self._p_maybeupdate(name)
-super(ZClassPersistentMetaClass, self).__delattr__(name)
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD
+33 1 40 33 71 59 http://nuxeo.com [EMAIL
Log message for revision 30588:
Fixed unit test.
Changed:
U Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py
-=-
Modified:
Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py
===
---
Log message for revision 30589:
Fixed unit test.
Changed:
U Zope/trunk/lib/python/DateTime/tests/testDateTime.py
-=-
Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
===
---
Log message for revision 30570:
Added test for strftime with unicode pattern.
Changed:
U Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py
-=-
Modified:
Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py
Log message for revision 30571:
Merged revision 30570 from Zope-2_8-branch:
Added test for strftime with unicode pattern.
Changed:
U Zope/trunk/lib/python/DateTime/tests/testDateTime.py
-=-
Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
79 matches
Mail list logo