[Erp5-report] r30946 - in /erp5/trunk/utils/erp5.recipe.zope2instance: ./ src/ src/erp5/ sr...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 30 22:17:58 CET 2009
Author: kazuhiko
Date: Mon Nov 30 22:17:57 2009
New Revision: 30946
URL: http://svn.erp5.org?rev=30946&view=rev
Log:
- Initial version that creates Constraint, Document, PropertySheet and tests
directories.
Added:
erp5/trunk/utils/erp5.recipe.zope2instance/
erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt (with props)
erp5/trunk/utils/erp5.recipe.zope2instance/README.txt (with props)
erp5/trunk/utils/erp5.recipe.zope2instance/setup.py
erp5/trunk/utils/erp5.recipe.zope2instance/src/
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/__init__.py
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/__init__.py
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/
erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/__init__.py
Added: erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,9 @@
+Changelog
+=========
+
+0.1 (2009-11-25)
+----------------
+
+- Initial version that creates Constraint, Document, PropertySheet and tests
+ directories.
+ [kazuhiko]
Propchange: erp5/trunk/utils/erp5.recipe.zope2instance/CHANGES.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: erp5/trunk/utils/erp5.recipe.zope2instance/README.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/README.txt?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/README.txt (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/README.txt [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,21 @@
+Introduction
+============
+
+This recipe is a patched version of plone.recipe.zope2instance that
+creates more directories required by ERP5.
+
+Example
+=======
+
+You can use it with a part like this::
+
+ [erp5_instance]
+ recipe = erp5.recipe.zope2instance
+ zope2-location = ${zope2:location}
+ user = zope:zope
+ http-address = 18080
+
+Options
+=======
+
+See plone.recipe.zope2instance's document for options.
Propchange: erp5/trunk/utils/erp5.recipe.zope2instance/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: erp5/trunk/utils/erp5.recipe.zope2instance/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/setup.py?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/setup.py (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/setup.py [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,39 @@
+from setuptools import setup, find_packages
+
+name = "erp5.recipe.zope2instance"
+version = '1.0'
+
+def read(name):
+ return open(name).read()
+
+long_description=(
+ read('README.txt')
+ + '\n' +
+ read('CHANGES.txt')
+ )
+
+setup(
+ name = name,
+ version = version,
+ author = "Kazuhiko Shiozaki",
+ author_email = "kazuhiko at nexedi.com",
+ description = "ZC Buildout recipe for installing a Zope 2 instance for ERP5",
+ long_description=long_description,
+ license = "ZPL 2.1",
+ keywords = "zope2 buildout",
+ url='http://www.erp5.org/DownloadBuildout',
+ classifiers=[
+ "License :: OSI Approved :: Zope Public License",
+ "Framework :: Buildout",
+ "Framework :: Zope2",
+ ],
+ packages = find_packages('src'),
+ include_package_data = True,
+ package_dir = {'':'src'},
+ namespace_packages = ['erp5', 'erp5.recipe'],
+ install_requires = [
+ 'plone.recipe.zope2instance==3.6',
+ ],
+ zip_safe=False,
+ entry_points = {'zc.buildout': ['default = %s:Recipe' % name]},
+ )
Added: erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/__init__.py?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/__init__.py [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Added: erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/__init__.py?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/__init__.py [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Added: erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/__init__.py?rev=30946&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.zope2instance/src/erp5/recipe/zope2instance/__init__.py [utf8] Mon Nov 30 22:17:57 2009
@@ -1,0 +1,30 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SARL 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.
+#
+##############################################################################
+import os
+import plone.recipe.zope2instance
+
+class Recipe(plone.recipe.zope2instance.Recipe):
+ def install(self):
+ # Override plone.recipe.zope2instance so as to create several
+ # directories used by ERP5.
+ ret = plone.recipe.zope2instance.Recipe.install(self)
+ options = self.options
+ location = options['location']
+
+ for directory in ('Constraint', 'Document', 'PropertySheet', 'tests'):
+ path = os.path.join(location, directory)
+ if not os.path.exists(path):
+ os.mkdir(path)
+
+ return ret
More information about the Erp5-report
mailing list