[Checkins] SVN: Products.CMFCore/branches/2.1/ - pinning GS to 1.3.3

Jens Vagelpohl jens at dataflake.org
Tue Aug 26 07:25:59 EDT 2008


Log message for revision 90302:
  - pinning GS to 1.3.3
  - refactor setup.py so it looks like the trunk's
  - reformat README for PyPI prettiness
  - synthesized CHANGES.txt from the monolithic file at
    http://svn.zope.org/CMF/branches/2.1/CHANGES.txt?rev=87755&view=auto
  

Changed:
  U   Products.CMFCore/branches/2.1/Products/CMFCore/CHANGES.txt
  U   Products.CMFCore/branches/2.1/Products/CMFCore/README.txt
  U   Products.CMFCore/branches/2.1/setup.py

-=-
Modified: Products.CMFCore/branches/2.1/Products/CMFCore/CHANGES.txt
===================================================================
--- Products.CMFCore/branches/2.1/Products/CMFCore/CHANGES.txt	2008-08-26 11:24:37 UTC (rev 90301)
+++ Products.CMFCore/branches/2.1/Products/CMFCore/CHANGES.txt	2008-08-26 11:25:58 UTC (rev 90302)
@@ -1,35 +1,234 @@
 Products.CMFCore Changelog
+==========================
 
-  Products.CMFCore 2.1.1 (2008/01/06)
+2.1.2 (2008-08-26)
+------------------
 
-    - exportimport.content: Add simple guard against import failures when
-      the ".objects" file contains empty lines.
-      (https://bugs.launchpad.net/zope-cmf/+bug/176328)
+- completed devolution from monolithic CMF package into its component
+  products that are distributed as eggs from PyPI.
 
 
-  Products.CMFCore 2.1.1-beta (2007/12/29)
+2.1.1 (2008-01-06)
+------------------
 
-    - Events: Fixed some handleContentishEvent issues.
-      Moved _clearLocalRolesAfterClone code to separate handler that is
-      triggered before indexing and also for folders. Made sure notifyModified
-      is not called if objects are just moved.
+- exportimport.content: Add simple guard against import failures when
+  the ".objects" file contains empty lines.
+  (https://bugs.launchpad.net/zope-cmf/+bug/176328)
 
-    - PortalObject: Added setSite to getSiteManager for old instances. This
-      fixes migrations from Plone 2.1 to 3.0.
 
-    - FSImage: Supply class-level defaults for 'alt', 'height', and 'width',
-      to avoid acquiring objects with the same names.
-      (http://www.zope.org/Collectors/CMF/507)
+2.1.1-beta (2007-12/29)
+----------------------
 
-    - Testing: Derive test layers from ZopeLite layer if available.
+- Testing: Derive test layers from ZopeLite layer if available.
 
-    - PortalObject: Fixed a bug in the site manager creation code, which would
-      assign the __parent__ pointer to the Aq-wrapper and not the actual
-      object.
+- Updated to the 0.3 release of five.localsitemanager.
 
+- Events: Fixed some handleContentishEvent issues.
+  Moved _clearLocalRolesAfterClone code to separate handler that is
+  triggered before indexing and also for folders. Made sure notifyModified
+  is not called if objects are just moved.
 
-  Products.CMFCore 2.1.0 (2007/08/08)
+- PortalObject: Added setSite to getSiteManager for old instances. This
+  fixes migrations from Plone 2.1 to 3.0.
 
-    First egg release.  For changes up through this release, please see
-    the overall "CMF changelog",
-    http://svn.zope.org/CMF/tags/2.1.0/CHANGES.txt?rev=78713&view=markup
+- FSImage: Supply class-level defaults for 'alt', 'height', and 'width',
+  to avoid acquiring objects with the same names.
+  (http://www.zope.org/Collectors/CMF/507)
+
+- Testing: Derive test layers from ZopeLite layer if available.
+
+- PortalObject: Fixed a bug in the site manager creation code, which would
+  assign the __parent__ pointer to the Aq-wrapper and not the actual
+  object.
+
+
+2.1.0 (2007-08-08)
+------------------
+
+- Fixed all componentregistry.xml files to use plain object paths and strip
+  and slashes. GenericSetup does only support registering objects which are
+  in the site root.
+
+- PortalFolder: Enabled 'Components' ZMI tab.
+  This GenericSetup tab allows to inspect and edit component registrations.
+
+- First egg release.  For changes up through this release, please see
+  the overall "CMF changelog",
+  http://svn.zope.org/CMF/tags/2.1.0/CHANGES.txt?rev=78713&view=markup
+
+
+2.1.0-beta2 (2007-07-12)
+------------------------
+
+- moved the Zope dependency to version 2.10.4
+
+- Remove antique usage of marker attributes in favor of interfaces,
+  leaving BBB behind for places potentially affecting third-party code.
+  (http://www.zope.org/Collectors/CMF/440)
+
+- Add POST-only protections to security critical methods.
+  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0240)
+
+- exportimport.skins: Added the ability to remove whole skin selections using a 
+  GS profile.
+  (http://www.zope.org/Collectors/CMF/479)
+
+- UndoTool: Fixed 'listUndoableTransactionsFor'.
+  The required 'object' argument is now respected. This doesn't change the
+  behavior as long as 'object' is the site root object.
+
+- TypesTool: Corrected method signature of all_meta_types to have
+  an interface keyword argument, as per the underlying OFS.ObjectManager
+  interface declaration.
+
+- SkinnableObjectManager: Changed the way skins are set up.
+  Acquisition wrapping no longer triggers 'setupCurrentSkin'. This is now
+  done on publishing traversal after the BeforeTraverseEvent triggers
+  'setSite'. This fix replaces a temporary hack introduced in 2.1.0-beta,
+  making sure ISkinsTool is looked up after setting the site.
+
+- CMFBTreeFolder: CMFBTreeFolders could not be used as the
+  toplevel /Members container.
+  (http://www.zope.org/Collectors/CMF/441)
+
+- TypesTool: Pass 'object' through to TypeInformation objects'
+  'listActions'.
+  (http://www.zope.org/Collectors/CMF/482)
+
+- Removed extraneous "Cache" tab from FS-based skin objects.
+  (http://www.zope.org/Collectors/CMF/343)
+
+- WorkflowTool: Using the '(Default)' keyword for a type's
+  workflow chain will now reset any custom workflow chains for the type.
+  (http://www.zope.org/Collectors/CMF/475)
+
+- SkinsTool: Use the property API to get the member specific skin,
+  because direct attribute access won't work with PAS based membership.
+  (http://dev.plone.org/plone/ticket/5904)
+
+- Allow customization from DirectoryViews to be redirected into
+  alternate folders, and use manually-built clones.
+  (http://www.zope.org/Collectors/CMF/382)
+
+
+2.1.0-beta (2007-03-09)
+-----------------------
+
+- moved the Zope dependency to verson 2.10.2
+
+- Tool lookup and registration is now done "the Zope 3 way" as utilities, see
+  http://svn.zope.org/CMF/branches/2.1/docs/ToolsAreUtilities.stx?view=auto
+
+- DirectoryView: Added 'registerDirectory' ZCML directive.
+  Using the old registerDirectory method in __init__.py is now deprecated.
+  See zcml.IRegisterDirectoryDirective for details.
+
+- DirectoryView: Added support for non-product packages.
+  This introduces new registry keys. Old registry keys stored in
+  persistent DirectoryView objects are updated on the fly.
+  (http://www.zope.org/Collectors/CMF/467)
+
+- setup handlers: Improved properties handler.
+  It now works with properties using a default_charset other than UTF-8.
+
+- MembershipTool: Fixed inconsistent behavior where member lookup
+  would take all user folders up to the Zope root into account whereas
+  member area creation would not.
+
+- MembershipTool: when using an object without a __nonzero__ but with a 
+  __len__ (ala CMFBTreeFolder) as a member folder, the createMemberArea 
+  method would believe there was no members folder if the folder was
+  empty, and so would fail (change "not membersfolder" to
+  "membersfolder is not None") .
+
+- DynamicType: Fixed behaviour regarding default view.
+  DynamicType was making it impossible to use a Zope3-style
+  default view for CMF content types.
+  (http://www.zope.org/Collectors/CMF/459)
+
+- utils: Marked 'minimalpath' and 'expandpath' as deprecated.
+
+- Merged patches from Martin Aspeli to enable generating events before
+  and after DCWorkflow transitions, and in the 'notify' methods of the
+  workflow tool (http://www.zope.org/Collectors/CMF/461).
+
+
+2.1.0-alpha2 (2006-11-23)
+-------------------------
+
+- moved the Zope dependency to version 2.10.1
+
+- Fixed test breakage induced by use of Z3 pagetemplates in Zope 2.10+.
+
+- browser views: Added some zope.formlib based forms.
+
+- testing: Added test layers for setting up ZCML.
+
+- WorkflowTool: Added the IConfigurableWorkflowTool interface.
+  This change includes the new 'getDefaultChain' and 'listChainOverrides'
+  methods and an improved 'setChainForPortalTypes' method. The import
+  handler now supports the 'remove' attribute for removing overrides.
+  (http://www.zope.org/Collectors/CMF/457)
+
+- CachingPolicyManager: Implemented the old OFS.Cache.CacheManager
+  API. Now objects other than CMF content or CMF templates can have their
+  caching headers set by the caching policy manager with the same
+  fine-grained control.
+  (http://www.zope.org/Collectors/CMF/408)
+
+- Added CMFCore.FSRestMethod:  ReST equivalent of FSSTXMethod.
+
+- FSSTXMethod:  Modernized, added tests, made customization
+  possible (now renders via ZPT by default, using 'main_template').
+
+- CachingPolicyManager: Prevent firing of caching policies
+  for templates (DTML or ZPT) that are rendered in-line (without a
+  separate request) while rendering the requested content item's view.
+  (http://www.zope.org/Collectors/CMF/456)
+
+
+2.1.0-alpha (2006-10-09)
+------------------------
+
+- skins: Changed encoding of translated portal_status_messages.
+  Now getBrowserCharset is used to play nice with Five forms. Customized
+  setRedirect and getMainGlobals scripts have to be updated.
+
+- Profiles: All profiles are now registered by ZCML.
+
+- ZClasses: Removed unmaintained support for ZClasses.
+  Marked the 'initializeBases*' methods as deprecated.
+
+- Content: Added IFactory utilities for all content classes.
+  They are now used by default instead of the old constructor methods.
+
+- Content: All content classes are now registered by ZCML.
+  ContentInit is still used to register oldstyle constructors.
+
+- setup handlers: Removed support for CMF 1.5 CMFSetup profiles.
+
+- FactoryTypeInformation: Added support for Zope3 style factories.
+  If the 'product' property of a type info instance is empty the 'factory'
+  property is interpreted as an IFactory name.
+
+- ActionInformation: don't use a fixed set of properties for
+  ActionInformation. (http://www.zope.org/Collectors/CMF/232/)
+
+- CatalogTool: Use current executable's proxy roles, if any,
+  in place of user's roles when computing 'allowedRolesAndUsers' for
+  a query. (http://www.zope.org/Collectors/CMF/380)
+
+- FSFile: Added registration for 'txt' extension.
+
+- CMFCatalogAware: Added 'handleObjectEvent' subscriber.
+  This replaces the deprecated 'manage_afterAdd', 'manage_afterClone' and
+  'manage_beforeDelete' hooks.
+
+
+Earlier releases
+----------------
+
+For a complete list of changes before version 2.1.0-alpha, see the HISTORY.txt
+file on the CMF-2.1 branch:
+http://svn.zope.org/CMF/branches/2.1/HISTORY.txt?view=auto
+

Modified: Products.CMFCore/branches/2.1/Products/CMFCore/README.txt
===================================================================
--- Products.CMFCore/branches/2.1/Products/CMFCore/README.txt	2008-08-26 11:24:37 UTC (rev 90301)
+++ Products.CMFCore/branches/2.1/Products/CMFCore/README.txt	2008-08-26 11:25:58 UTC (rev 90302)
@@ -1,4 +1,8 @@
-CMFCore
+==================
+ Products.CMFCore
+==================
 
-  This product declares the key framework services for the Zope
-  Content Management Framework (CMF).
+.. contents::
+
+This product declares the key framework services for the Zope
+Content Management Framework (CMF).

Modified: Products.CMFCore/branches/2.1/setup.py
===================================================================
--- Products.CMFCore/branches/2.1/setup.py	2008-08-26 11:24:37 UTC (rev 90301)
+++ Products.CMFCore/branches/2.1/setup.py	2008-08-26 11:25:58 UTC (rev 90302)
@@ -2,29 +2,25 @@
 from setuptools import setup
 from setuptools import find_packages
 
+NAME = 'CMFCore'
+
 here = os.path.abspath(os.path.dirname(__file__))
-package = os.path.join(here, 'Products', 'CMFCore')
+package = os.path.join(here, 'Products', NAME)
 
 def _package_doc(name):
     f = open(os.path.join(package, name))
     return f.read()
 
-NAME = 'CMFCore'
-
-VERSION = _package_doc('version.txt').strip()
-if VERSION.startswith(NAME):
-    VERSION = VERSION[len(NAME):]
-while VERSION and VERSION[0] in '-_.':
-    VERSION = VERSION[1:]
-
-_boundary = '\n' + ('-' * 60) + '\n'
-README = (open(os.path.join(here, 'README.txt')).read()
-        + _boundary + _package_doc('README.txt')
-        + _boundary + _package_doc('CHANGES.txt')
+_boundary = '\n' + ('-' * 60) + '\n\n'
+README = (_package_doc('README.txt')
+         + _boundary
+         + _package_doc('CHANGES.txt')
+         + _boundary
+         + "Download\n========"
          )
 
-setup(name='Products.CMFCore',
-      version=VERSION,
+setup(name='Products.%s' % NAME,
+      version=_package_doc('version.txt').strip(),
       description='Core components of Zope Content Management Framework',
       long_description=README,
       classifiers=[
@@ -39,16 +35,21 @@
         ],
       keywords='web application server zope zope2 cmf',
       author="Zope Corporation and contributors",
-      author_email="zope-cmf at lists.zope.org",
-      url="http://www.zope.org/Products/CMFCore",
+      author_email="zope-cmf at zope.org",
+      url="http://pypi.python.org/pypi/Products.CMFCore",
       license="ZPL 2.1 (http://www.zope.org/Resources/License/ZPL-2.1)",
       packages=find_packages(),
       include_package_data=True,
       namespace_packages=['Products'],
       zip_safe=False,
-      #install_requires=['Zope >= 2.10']
+      install_requires=[
+        #'Zope >= 2.10.4',
+        'setuptools',
+        'five.localsitemanager>=0.3',
+        'Products.GenericSetup==1.3.3',
+        ],
       entry_points="""
       [zope2.initialize]
-      Products.CMFCore = Products.CMFCore:initialize
-      """,
+      Products.%s = Products.%s:initialize
+      """ % (NAME, NAME),
       )



More information about the Checkins mailing list