[Checkins] SVN: z3c.soap/trunk/ remove cmf dependency, use collective.autopermission
Jean-Francois Roche
jfroche at jfroche.be
Wed Jan 5 14:13:22 EST 2011
Log message for revision 119394:
remove cmf dependency, use collective.autopermission
Changed:
U z3c.soap/trunk/buildout.cfg
U z3c.soap/trunk/docs/HISTORY.txt
U z3c.soap/trunk/setup.py
U z3c.soap/trunk/z3c/soap/__init__.py
U z3c.soap/trunk/z3c/soap/configure.zcml
U z3c.soap/trunk/z3c/soap/mem.txt
D z3c.soap/trunk/z3c/soap/permissions.py
-=-
Modified: z3c.soap/trunk/buildout.cfg
===================================================================
--- z3c.soap/trunk/buildout.cfg 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/buildout.cfg 2011-01-05 19:13:21 UTC (rev 119394)
@@ -32,6 +32,6 @@
[test]
recipe = zc.recipe.testrunner
-eggs = z3c.soap
+eggs = z3c.soap [test]
Zope2
defaults = ['--tests-pattern', '^f?tests$', '-c', '--module=z3c.soap']
Modified: z3c.soap/trunk/docs/HISTORY.txt
===================================================================
--- z3c.soap/trunk/docs/HISTORY.txt 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/docs/HISTORY.txt 2011-01-05 19:13:21 UTC (rev 119394)
@@ -4,6 +4,8 @@
0.5.3 (unreleased)
------------------
+- Remove CMF dependency, use collective.autopermission to define permission
+
- Using Python's ``doctest`` module instead of depreacted
``zope.testing.doctest``.
Modified: z3c.soap/trunk/setup.py
===================================================================
--- z3c.soap/trunk/setup.py 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/setup.py 2011-01-05 19:13:21 UTC (rev 119394)
@@ -29,9 +29,10 @@
namespace_packages=['z3c'],
include_package_data=True,
zip_safe=False,
+ extras_require=dict(test=['zope.testing',
+ 'zope.app.folder']),
install_requires=[
'setuptools',
- 'Products.CMFCore',
+ 'collective.autopermission',
'Products.PluggableAuthService',
- 'zope.app.folder',
'ZSI'])
Modified: z3c.soap/trunk/z3c/soap/__init__.py
===================================================================
--- z3c.soap/trunk/z3c/soap/__init__.py 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/z3c/soap/__init__.py 2011-01-05 19:13:21 UTC (rev 119394)
@@ -2,4 +2,3 @@
# This is a Python package.
import HTTPRequest
from patch import *
-from permissions import *
Modified: z3c.soap/trunk/z3c/soap/configure.zcml
===================================================================
--- z3c.soap/trunk/z3c/soap/configure.zcml 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/z3c/soap/configure.zcml 2011-01-05 19:13:21 UTC (rev 119394)
@@ -2,7 +2,9 @@
i18n_domain="z3c.soap">
<include file="meta.zcml"/>
-
+ <include package="zope.component" file="meta.zcml"/>
+ <include package="zope.component"/>
+ <include package="collective.autopermission"/>
<permission
id="zope2.SOAPAccess"
title="SOAP Access"/>
Modified: z3c.soap/trunk/z3c/soap/mem.txt
===================================================================
--- z3c.soap/trunk/z3c/soap/mem.txt 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/z3c/soap/mem.txt 2011-01-05 19:13:21 UTC (rev 119394)
@@ -41,11 +41,11 @@
... encodingStyle=None)
>>> res = sw.serialize([element, element, element, element, element], tc)
>>> print sys.getrefcount(Element)
- 33
+ 19
>>> Node.unlink(sw.body.node)
>>> Node.unlink(sw.dom.node)
>>> print sys.getrefcount(Element)
- 22
+ 8
>>> del res
>>> del sw.body.node
>>> del sw.body
@@ -53,6 +53,6 @@
>>> del sw.dom
>>> del sw
>>> print sys.getrefcount(Element)
- 20
+ 6
There are thus less references to Element when using unlink before deleting the soapwriter object.
Deleted: z3c.soap/trunk/z3c/soap/permissions.py
===================================================================
--- z3c.soap/trunk/z3c/soap/permissions.py 2011-01-05 16:59:26 UTC (rev 119393)
+++ z3c.soap/trunk/z3c/soap/permissions.py 2011-01-05 19:13:21 UTC (rev 119394)
@@ -1,22 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2001 Zope Foundation and Contributors.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (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
-#
-##############################################################################
-from AccessControl import ModuleSecurityInfo
-from Products.CMFCore.permissions import setDefaultRoles
-
-
-security = ModuleSecurityInfo('z3c.soap.permissions')
-
-security.declarePublic('SOAP Access')
-SoapAccess = 'SOAP Access'
-setDefaultRoles(SoapAccess, ('Manager', ))
More information about the checkins
mailing list