Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
remove cmf dependency, use collective.autopermission
Browse files Browse the repository at this point in the history
  • Loading branch information
jfroche committed Jan 5, 2011
1 parent a355519 commit cf3b05b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 30 deletions.
2 changes: 1 addition & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ zcml =

[test]
recipe = zc.recipe.testrunner
eggs = z3c.soap
eggs = z3c.soap [test]
Zope2
defaults = ['--tests-pattern', '^f?tests$', '-c', '--module=z3c.soap']
2 changes: 2 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
0.5.3 (unreleased)
------------------

- Remove CMF dependency, use collective.autopermission to define permission

- Using Python's ``doctest`` module instead of depreacted
``zope.testing.doctest``.

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
1 change: 0 additions & 1 deletion z3c/soap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# This is a Python package.
import HTTPRequest
from patch import *
from permissions import *
4 changes: 3 additions & 1 deletion z3c/soap/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
6 changes: 3 additions & 3 deletions z3c/soap/mem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ What if we unlink the nodes first::
... 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
>>> del sw.dom.node
>>> 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.
22 changes: 0 additions & 22 deletions z3c/soap/permissions.py

This file was deleted.

0 comments on commit cf3b05b

Please sign in to comment.