[Checkins] SVN: z3ext.ownership/tags/1.1.1/ release tag

Nikolay Kim fafhrd at datacom.kz
Wed Mar 18 05:57:28 EDT 2009


Log message for revision 98220:
  release tag

Changed:
  A   z3ext.ownership/tags/1.1.1/
  D   z3ext.ownership/tags/1.1.1/CHANGES.txt
  A   z3ext.ownership/tags/1.1.1/CHANGES.txt
  D   z3ext.ownership/tags/1.1.1/setup.py
  A   z3ext.ownership/tags/1.1.1/setup.py
  D   z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py
  A   z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py

-=-
Deleted: z3ext.ownership/tags/1.1.1/CHANGES.txt
===================================================================
--- z3ext.ownership/trunk/CHANGES.txt	2009-03-18 05:26:55 UTC (rev 98217)
+++ z3ext.ownership/tags/1.1.1/CHANGES.txt	2009-03-18 09:57:27 UTC (rev 98220)
@@ -1,37 +0,0 @@
-=======
-CHANGES
-=======
-
-
-1.1.1 (Unreleased)
-------------------
-
-
-1.1.0 (2009-01-27)
-------------------
-
-- Added special IOwnership adapter for IInheritOwnership objects
-
-
-1.0.1 (2008-05-19)
-------------------
-
-- Replace 'autoinclude' with 'includeDependendcies'
-
-
-1.0.0 (2008-03-21)
-------------------
-
-- Moved to svn.zope.org
-
-
-0.99 (2008-03-19)
------------------
-
-- Code cleanup
-
-
-0.9.0 (2008-02-01)
-------------------
-
-- Initial release

Copied: z3ext.ownership/tags/1.1.1/CHANGES.txt (from rev 98219, z3ext.ownership/trunk/CHANGES.txt)
===================================================================
--- z3ext.ownership/tags/1.1.1/CHANGES.txt	                        (rev 0)
+++ z3ext.ownership/tags/1.1.1/CHANGES.txt	2009-03-18 09:57:27 UTC (rev 98220)
@@ -0,0 +1,39 @@
+=======
+CHANGES
+=======
+
+
+1.1.1 (2009-03-18)
+------------------
+
+- Fixed dependencies
+
+
+1.1.0 (2009-01-27)
+------------------
+
+- Added special IOwnership adapter for IInheritOwnership objects
+
+
+1.0.1 (2008-05-19)
+------------------
+
+- Replace 'autoinclude' with 'includeDependendcies'
+
+
+1.0.0 (2008-03-21)
+------------------
+
+- Moved to svn.zope.org
+
+
+0.99 (2008-03-19)
+-----------------
+
+- Code cleanup
+
+
+0.9.0 (2008-02-01)
+------------------
+
+- Initial release

Deleted: z3ext.ownership/tags/1.1.1/setup.py
===================================================================
--- z3ext.ownership/trunk/setup.py	2009-03-18 05:26:55 UTC (rev 98217)
+++ z3ext.ownership/tags/1.1.1/setup.py	2009-03-18 09:57:27 UTC (rev 98220)
@@ -1,71 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2008 Zope Corporation 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.
-#
-##############################################################################
-"""Setup for z3ext.ownership package
-
-$Id$
-"""
-import sys, os
-from setuptools import setup, find_packages
-
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-version='1.1.1dev'
-
-
-setup(name = 'z3ext.ownership',
-      version = version,
-      author = 'Nikolay Kim',
-      author_email = 'fafhrd91 at gmail.com',
-      description = "Content ownership.",
-      long_description = (
-        'Detailed Documentation\n' +
-        '======================\n'
-        + '\n\n' +
-        read('src', 'z3ext', 'ownership', 'README.txt')
-        + '\n\n' +
-        read('CHANGES.txt')
-        ),
-      classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Environment :: Web Environment',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: Zope Public License',
-        'Programming Language :: Python',
-        'Natural Language :: English',
-        'Operating System :: OS Independent',
-        'Topic :: Internet :: WWW/HTTP',
-        'Framework :: Zope3'],
-      url='http://z3ext.net/',
-      license='ZPL 2.1',
-      packages=find_packages('src'),
-      package_dir = {'':'src'},
-      namespace_packages=['z3ext'],
-      install_requires = ['setuptools',
-                          'rwproperty',
-                          'zope.component',
-                          'zope.interface',
-                          'zope.security',
-                          'zope.annotation',
-			  'zope.lifecycleevent',
-			  'zope.app.security',
-			  'z3c.autoinclude',
-			  'z3ext.security',
-                          ],
-      extras_require = dict(test=['zope.app.testing',
-                                  'zope.testing',
-                                  ]),
-      include_package_data = True,
-      zip_safe = False
-      )

Copied: z3ext.ownership/tags/1.1.1/setup.py (from rev 98219, z3ext.ownership/trunk/setup.py)
===================================================================
--- z3ext.ownership/tags/1.1.1/setup.py	                        (rev 0)
+++ z3ext.ownership/tags/1.1.1/setup.py	2009-03-18 09:57:27 UTC (rev 98220)
@@ -0,0 +1,72 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Corporation 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.
+#
+##############################################################################
+"""Setup for z3ext.ownership package
+
+$Id$
+"""
+import sys, os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+version='1.1.1'
+
+
+setup(name = 'z3ext.ownership',
+      version = version,
+      author = 'Nikolay Kim',
+      author_email = 'fafhrd91 at gmail.com',
+      description = "Content ownership.",
+      long_description = (
+        'Detailed Documentation\n' +
+        '======================\n'
+        + '\n\n' +
+        read('src', 'z3ext', 'ownership', 'README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
+        ),
+      classifiers=[
+        'Development Status :: 5 - Production/Stable',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'],
+      url='http://z3ext.net/',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir = {'':'src'},
+      namespace_packages=['z3ext'],
+      install_requires = ['setuptools',
+                          'rwproperty',
+                          'zope.component',
+                          'zope.interface',
+                          'zope.security',
+			  'zope.securitypolicy',
+                          'zope.annotation',
+			  'zope.lifecycleevent',
+			  'zope.app.security',
+			  'z3c.autoinclude',
+			  'z3ext.security',
+                          ],
+      extras_require = dict(test=['zope.app.testing',
+                                  'zope.testing',
+                                  ]),
+      include_package_data = True,
+      zip_safe = False
+      )

Deleted: z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py
===================================================================
--- z3ext.ownership/trunk/src/z3ext/ownership/localroles.py	2009-03-18 05:26:55 UTC (rev 98217)
+++ z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py	2009-03-18 09:57:27 UTC (rev 98220)
@@ -1,108 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2008 Zope Corporation 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$
-"""
-from zope import interface, component
-from zope.app.security.settings import Allow, Unset, Deny
-from zope.securitypolicy.interfaces import IPrincipalRoleMap
-
-from interfaces import \
-     IOwnership, IInheritOwnership, IOwnerAware, IOwnerGroupAware
-
-
- at component.adapter(IOwnerAware)
- at interface.implementer(IPrincipalRoleMap)
-def getLocalRoles(context):
-    if IInheritOwnership.providedBy(context):
-        return
-
-    owner = IOwnership(context)
-    if owner.isGroup and IOwnerGroupAware.providedBy(context):
-        return
-    return LocalRoles(context, owner)
-
-
-class LocalRoles(object):
-    interface.implements(IPrincipalRoleMap)
-
-    def __init__(self, context, owner):
-        self.owner = owner
-        self.ownerId = owner.ownerId or u''
-
-    def getPrincipalsForRole(self, role_id):
-        if (role_id == 'content.Owner'):
-            return ((self.ownerId, Allow),)
-        else:
-            return ()
-
-    def getRolesForPrincipal(self, principal_id,
-                             deny = (('content.Owner', Deny),),
-                             allow = (('content.Owner', Allow),)):
-        if principal_id == self.ownerId:
-            return allow
-        else:
-            return deny
-
-    def getSetting(self, role_id, principal_id):
-        if (principal_id == self.ownerId) and (role_id == 'content.Owner'):
-            return Allow
-        else:
-            return Deny
-
-    def getPrincipalsAndRoles(self):
-        return ()
-
-
- at component.adapter(IOwnerGroupAware)
- at interface.implementer(IPrincipalRoleMap)
-def getGroupLocalRoles(context):
-    if IInheritOwnership.providedBy(context):
-        return
-
-    owner = IOwnership(context)
-    if owner.isGroup:
-        return GroupLocalRoles(context, owner)
-
-
-class GroupLocalRoles(object):
-    interface.implements(IPrincipalRoleMap)
-
-    def __init__(self, context, owner):
-        self.owner = owner
-        self.ownerId = owner.ownerId
-
-    def getPrincipalsForRole(self, role_id):
-        if role_id == 'content.GroupOwner':
-            return ((self.ownerId, Allow),)
-        else:
-            return ()
-
-    def getRolesForPrincipal(self, principal_id,
-                             deny = (('content.GroupOwner', Deny),),
-                             allow = (('content.GroupOwner', Allow),)):
-        if principal_id == self.ownerId:
-            return allow
-        else:
-            return deny
-
-    def getSetting(self, role_id, principal_id):
-        if (principal_id == self.ownerId) and (role_id == 'content.GroupOwner'):
-            return Allow
-        else:
-            return Deny
-
-    def getPrincipalsAndRoles(self):
-        return ()

Copied: z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py (from rev 98219, z3ext.ownership/trunk/src/z3ext/ownership/localroles.py)
===================================================================
--- z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py	                        (rev 0)
+++ z3ext.ownership/tags/1.1.1/src/z3ext/ownership/localroles.py	2009-03-18 09:57:27 UTC (rev 98220)
@@ -0,0 +1,108 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Corporation 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$
+"""
+from zope import interface, component
+from zope.securitypolicy.interfaces import IPrincipalRoleMap
+from zope.securitypolicy.interfaces import Allow, Unset, Deny
+
+from interfaces import \
+     IOwnership, IInheritOwnership, IOwnerAware, IOwnerGroupAware
+
+
+ at component.adapter(IOwnerAware)
+ at interface.implementer(IPrincipalRoleMap)
+def getLocalRoles(context):
+    if IInheritOwnership.providedBy(context):
+        return
+
+    owner = IOwnership(context)
+    if owner.isGroup and IOwnerGroupAware.providedBy(context):
+        return
+    return LocalRoles(context, owner)
+
+
+class LocalRoles(object):
+    interface.implements(IPrincipalRoleMap)
+
+    def __init__(self, context, owner):
+        self.owner = owner
+        self.ownerId = owner.ownerId or u''
+
+    def getPrincipalsForRole(self, role_id):
+        if (role_id == 'content.Owner'):
+            return ((self.ownerId, Allow),)
+        else:
+            return ()
+
+    def getRolesForPrincipal(self, principal_id,
+                             deny = (('content.Owner', Deny),),
+                             allow = (('content.Owner', Allow),)):
+        if principal_id == self.ownerId:
+            return allow
+        else:
+            return deny
+
+    def getSetting(self, role_id, principal_id):
+        if (principal_id == self.ownerId) and (role_id == 'content.Owner'):
+            return Allow
+        else:
+            return Deny
+
+    def getPrincipalsAndRoles(self):
+        return ()
+
+
+ at component.adapter(IOwnerGroupAware)
+ at interface.implementer(IPrincipalRoleMap)
+def getGroupLocalRoles(context):
+    if IInheritOwnership.providedBy(context):
+        return
+
+    owner = IOwnership(context)
+    if owner.isGroup:
+        return GroupLocalRoles(context, owner)
+
+
+class GroupLocalRoles(object):
+    interface.implements(IPrincipalRoleMap)
+
+    def __init__(self, context, owner):
+        self.owner = owner
+        self.ownerId = owner.ownerId
+
+    def getPrincipalsForRole(self, role_id):
+        if role_id == 'content.GroupOwner':
+            return ((self.ownerId, Allow),)
+        else:
+            return ()
+
+    def getRolesForPrincipal(self, principal_id,
+                             deny = (('content.GroupOwner', Deny),),
+                             allow = (('content.GroupOwner', Allow),)):
+        if principal_id == self.ownerId:
+            return allow
+        else:
+            return deny
+
+    def getSetting(self, role_id, principal_id):
+        if (principal_id == self.ownerId) and (role_id == 'content.GroupOwner'):
+            return Allow
+        else:
+            return Deny
+
+    def getPrincipalsAndRoles(self):
+        return ()



More information about the Checkins mailing list