Author: jmorliaguet Date: Sat Jun 24 13:26:49 2006 New Revision: 3509 Added: CPSSkins4Five/trunk/security.py (contents, props changed) Modified: CPSSkins4Five/trunk/configure.zcml
Log: - make sure that there is an interaction Modified: CPSSkins4Five/trunk/configure.zcml ============================================================================== --- CPSSkins4Five/trunk/configure.zcml (original) +++ CPSSkins4Five/trunk/configure.zcml Sat Jun 24 13:26:49 2006 @@ -50,6 +50,11 @@ <include file="views.zcml" /> + <subscriber + for="zope.app.publication.interfaces.BeforeTraverseEvent" + handler=".security.ensureInteraction" + /> + <!-- zope2 --> <five:traversable class="OFS.Folder.Folder" /> Added: CPSSkins4Five/trunk/security.py ============================================================================== --- (empty file) +++ CPSSkins4Five/trunk/security.py Sat Jun 24 13:26:49 2006 @@ -0,0 +1,25 @@ +############################################################################## +# +# Copyright (c) 2006 Nuxeo and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## +""" + +$Id$ +""" + +__docformat__ = "reStructuredText" + +from Products.Five.security import newInteraction + +def ensureInteraction(event): + newInteraction() + -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins