[Checkins] SVN: Sandbox/ulif/grokadmin/trunk/ Provide basic
buildout infrastructure.
Uli Fouquet
uli at gnufix.de
Sun Oct 7 06:42:57 EDT 2007
Log message for revision 80689:
Provide basic buildout infrastructure.
Changed:
A Sandbox/ulif/grokadmin/trunk/LICENSE.txt
A Sandbox/ulif/grokadmin/trunk/README.txt
A Sandbox/ulif/grokadmin/trunk/buildout.cfg
A Sandbox/ulif/grokadmin/trunk/setup.py
A Sandbox/ulif/grokadmin/trunk/src/
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/README.txt
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/__init__.py
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/app.py
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/configure.zcml
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/ftesting.zcml
A Sandbox/ulif/grokadmin/trunk/src/grokadmin/testing.py
-=-
Added: Sandbox/ulif/grokadmin/trunk/LICENSE.txt
===================================================================
--- Sandbox/ulif/grokadmin/trunk/LICENSE.txt (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/LICENSE.txt 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,55 @@
+
+Zope Public License (ZPL) Version 2.1
+-------------------------------------
+
+A copyright notice accompanies this license document that
+identifies the copyright holders.
+
+This license has been certified as open source. It has also
+been designated as GPL compatible by the Free Software
+Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the
+following conditions are met:
+
+1. Redistributions in source code must retain the
+ accompanying copyright notice, this list of conditions,
+ and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to
+ endorse or promote products derived from this software
+ without prior written permission from the copyright
+ holders.
+
+4. The right to distribute this software or to use it for
+ any purpose does not give you the right to use
+ Servicemarks (sm) or Trademarks (tm) of the copyright
+ holders. Use of them is covered by separate agreement
+ with the copyright holders.
+
+5. If any files are modified, you must cause the modified
+ files to carry prominent notices stating that you changed
+ the files and the date of any change.
+
+Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
+ AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+ NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ NO EVENT SHALL THE COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
Added: Sandbox/ulif/grokadmin/trunk/README.txt
===================================================================
--- Sandbox/ulif/grokadmin/trunk/README.txt (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/README.txt 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,2 @@
+see src/grokadmin/README.txt
+
Added: Sandbox/ulif/grokadmin/trunk/buildout.cfg
===================================================================
--- Sandbox/ulif/grokadmin/trunk/buildout.cfg (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/buildout.cfg 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,56 @@
+[buildout]
+develop = .
+parts = app data zopectl test
+find-links = http://download.zope.org/distribution/
+newest = false
+
+[data]
+recipe = zc.recipe.filestorage
+
+[app]
+recipe = zc.zope3recipes>=0.5.3:application
+eggs = GrokAdmin
+site.zcml = <include package="grokadmin" />
+ <include package="zope.app.twisted" />
+
+ <unauthenticatedPrincipal id="zope.anybody"
+ title="Unauthenticated User" />
+ <unauthenticatedGroup id="zope.Anybody"
+ title="Unauthenticated Users" />
+ <authenticatedGroup id="zope.Authenticated"
+ title="Authenticated Users" />
+ <everybodyGroup id="zope.Everybody"
+ title="All Users" />
+ <principal id="zope.manager"
+ title="Manager"
+ login="grok"
+ password_manager="Plain Text"
+ password="grok"
+ />
+
+ <!-- Replace the following directive if you don't want
+ public access -->
+ <grant permission="zope.View"
+ principal="zope.Anybody" />
+ <grant permission="zope.app.dublincore.view"
+ principal="zope.Anybody" />
+
+ <role id="zope.Manager" title="Site Manager" />
+ <role id="zope.Member" title="Site Member" />
+ <grantAll role="zope.Manager" />
+ <grant role="zope.Manager"
+ principal="zope.manager" />
+
+[data]
+recipe = zc.recipe.filestorage
+
+# this section named so that the start/stop script is called bin/zopectl
+[zopectl]
+recipe = zc.zope3recipes:instance
+application = app
+zope.conf = ${data:zconfig}
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = grokadmin
+defaults = ['--tests-pattern', '^f?tests$', '-v']
Added: Sandbox/ulif/grokadmin/trunk/setup.py
===================================================================
--- Sandbox/ulif/grokadmin/trunk/setup.py (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/setup.py 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,42 @@
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name='grokadmin',
+ version='0.1.0',
+ description="GrokAdmin: The Grok administration and development UI",
+ long_description=(
+ read('README.txt')
+ ),
+ # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+ classifiers=[
+ 'Development Status :: 1 - Beta',
+ '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 :: Grok'],
+ keywords="zope3 grok grokadmin",
+ author="Uli Fouquet and lots of contributors from grok community",
+ author_email="grok-dev at zope.org",
+ url="http://svn.zope.org/Sandbox/ulif/grokadmin",
+ license="ZPL 2.1",
+ package_dir={'': 'src'},
+ packages=find_packages('src'),
+ include_package_data=True,
+ zip_safe=False,
+ namespace_packages = ['grokadmin'],
+ install_requires=['setuptools',
+ 'grok',
+ 'zope.component',
+ 'zope.interface',
+ ],
+ entry_points="""
+ # Add entry points here
+ """,
+ )
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/README.txt
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/README.txt (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/README.txt 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,7 @@
+==================================================
+GrokAdmin: the Grok Administrator and Developer UI
+==================================================
+
+GrokAdmin is a grok application, which provides tools to administer
+Grok applications and to improve development of it.
+
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/__init__.py
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/__init__.py (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/__init__.py 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1 @@
+# this directory is a package
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/app.py
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/app.py (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/app.py 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2007 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.
+#
+##############################################################################
+"""The Grok Administration and Development UI"""
+
+import grok
+
+class GrokAdmin(grok.Application, grok.Container):
+ """The Grok Administrators and Developers UI.
+ """
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/configure.zcml
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/configure.zcml (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/configure.zcml 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,5 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+ xmlns:grok="http://namespaces.zope.org/grok">
+ <include package="grok" />
+ <grok:grok package="." />
+</configure>
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/ftesting.zcml
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/ftesting.zcml (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/ftesting.zcml 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,34 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ i18n_domain="grokadmin"
+ package="grokadmin"
+ >
+
+ <include package="grok" />
+
+ <!-- Typical functional testing security setup -->
+ <securityPolicy
+ component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy"
+ />
+
+ <unauthenticatedPrincipal
+ id="zope.anybody"
+ title="Unauthenticated User"
+ />
+ <grant
+ permission="zope.View"
+ principal="zope.anybody"
+ />
+
+ <principal
+ id="zope.mgr"
+ title="Manager"
+ login="mgr"
+ password="mgrpw"
+ />
+
+ <role id="zope.Manager" title="Site Manager" />
+ <grantAll role="zope.Manager" />
+ <grant role="zope.Manager" principal="zope.mgr" />
+
+</configure>
Added: Sandbox/ulif/grokadmin/trunk/src/grokadmin/testing.py
===================================================================
--- Sandbox/ulif/grokadmin/trunk/src/grokadmin/testing.py (rev 0)
+++ Sandbox/ulif/grokadmin/trunk/src/grokadmin/testing.py 2007-10-07 10:42:56 UTC (rev 80689)
@@ -0,0 +1,7 @@
+import os.path
+import grokadmin
+from zope.app.testing.functional import ZCMLLayer
+
+ftesting_zcml = os.path.join(
+ os.path.dirname(grokadmin.__file__), 'ftesting.zcml')
+FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer')
More information about the Checkins
mailing list