[Checkins] SVN: grok/trunk/doc/groktut/ Add groktut directory
structure. This will contain a series of buildouts
Martijn Faassen
faassen at infrae.com
Fri Mar 16 16:16:53 EDT 2007
Log message for revision 73239:
Add groktut directory structure. This will contain a series of buildouts
for all tutorial sections.
Changed:
A grok/trunk/doc/groktut/
A grok/trunk/doc/groktut/an_empty_grok_project/
A grok/trunk/doc/groktut/an_empty_grok_project/buildout.cfg
A grok/trunk/doc/groktut/an_empty_grok_project/setup.py
A grok/trunk/doc/groktut/an_empty_grok_project/src/
A grok/trunk/doc/groktut/an_empty_grok_project/src/sample/
A grok/trunk/doc/groktut/an_empty_grok_project/src/sample/__init__.py
A grok/trunk/doc/groktut/an_empty_grok_project/src/sample/app.py
A grok/trunk/doc/groktut/an_empty_grok_project/src/sample/configure.zcml
A grok/trunk/doc/groktut/bootstrap.py
A grok/trunk/doc/groktut/buildout.cfg
A grok/trunk/doc/groktut/buildout_tut.cfg
A grok/trunk/doc/groktut/empty/
A grok/trunk/doc/groktut/empty/buildout.cfg
A grok/trunk/doc/groktut/empty/setup.py
A grok/trunk/doc/groktut/empty/src/
A grok/trunk/doc/groktut/empty/src/sample/
A grok/trunk/doc/groktut/empty/src/sample/__init__.py
A grok/trunk/doc/groktut/empty/src/sample/app.py
A grok/trunk/doc/groktut/empty/src/sample/configure.zcml
-=-
Property changes on: grok/trunk/doc/groktut
___________________________________________________________________
Name: svn:ignore
+ develop-eggs
eggs
bin
parts
.installed.cfg
Property changes on: grok/trunk/doc/groktut/an_empty_grok_project
___________________________________________________________________
Name: svn:ignore
+ parts
develop-eggs
.installed.cfg
bin
Added: grok/trunk/doc/groktut/an_empty_grok_project/buildout.cfg
===================================================================
--- grok/trunk/doc/groktut/an_empty_grok_project/buildout.cfg 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/an_empty_grok_project/buildout.cfg 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,3 @@
+[buildout]
+develop = .
+extends = ../buildout_tut.cfg
\ No newline at end of file
Added: grok/trunk/doc/groktut/an_empty_grok_project/setup.py
===================================================================
--- grok/trunk/doc/groktut/an_empty_grok_project/setup.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/an_empty_grok_project/setup.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,28 @@
+from setuptools import setup, find_packages
+
+version = 0.0
+
+setup(name='Sample',
+ version=version,
+ description="",
+ long_description="""\
+""",
+ # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+ classifiers=[],
+ keywords="",
+ author="",
+ author_email="",
+ url="",
+ license="",
+ package_dir={'': 'src'},
+ packages=find_packages('src'),
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=['setuptools',
+ 'grok',
+ # -*- Extra requirements: -*-
+ ],
+ entry_points="""
+ # -*- Entry points: -*-
+ """,
+ )
Property changes on: grok/trunk/doc/groktut/an_empty_grok_project/src
___________________________________________________________________
Name: svn:ignore
+ Sample.egg-info
Added: grok/trunk/doc/groktut/an_empty_grok_project/src/sample/__init__.py
===================================================================
--- grok/trunk/doc/groktut/an_empty_grok_project/src/sample/__init__.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/an_empty_grok_project/src/sample/__init__.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1 @@
+#
Added: grok/trunk/doc/groktut/an_empty_grok_project/src/sample/app.py
===================================================================
--- grok/trunk/doc/groktut/an_empty_grok_project/src/sample/app.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/an_empty_grok_project/src/sample/app.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,4 @@
+import grok
+
+class Sample(grok.Application, grok.Container):
+ pass
Added: grok/trunk/doc/groktut/an_empty_grok_project/src/sample/configure.zcml
===================================================================
--- grok/trunk/doc/groktut/an_empty_grok_project/src/sample/configure.zcml 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/an_empty_grok_project/src/sample/configure.zcml 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1 @@
+<grok package="." xmlns="http://namespaces.zope.org/grok" />
Added: grok/trunk/doc/groktut/bootstrap.py
===================================================================
--- grok/trunk/doc/groktut/bootstrap.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/bootstrap.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id: bootstrap.py 69908 2006-08-31 21:53:00Z jim $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+ cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+ os.P_WAIT, sys.executable, sys.executable,
+ '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)
Added: grok/trunk/doc/groktut/buildout.cfg
===================================================================
--- grok/trunk/doc/groktut/buildout.cfg 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/buildout.cfg 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,8 @@
+[buildout]
+parts = buildout-script
+bin-directory = .
+
+[buildout-script]
+recipe = zc.recipe.egg
+eggs = zc.buildout
+scripts = buildout=buildout
Added: grok/trunk/doc/groktut/buildout_tut.cfg
===================================================================
--- grok/trunk/doc/groktut/buildout_tut.cfg 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/buildout_tut.cfg 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,50 @@
+[buildout]
+parts = data instance test
+eggs-directory = ../eggs
+
+[zope3]
+# the path to an installed Zope 3 installation
+location = /home/faassen/buildout/z331
+
+[data]
+recipe = zc.recipe.filestorage
+
+[instance]
+recipe = zc.recipe.zope3instance
+database = data
+user = grok:grok
+eggs = setuptools
+ grok
+ sample
+
+zcml = zope.annotation
+ zope.copypastemove
+ zope.formlib
+ zope.i18n-meta
+ zope.i18n.locales
+ zope.publisher
+ zope.security-meta
+ zope.size
+ zope.traversing
+ zope.traversing.browser
+ zope.app
+ zope.app-meta
+ zope.app.securitypolicy
+ zope.app.securitypolicy-meta
+ zope.app.authentication
+ zope.app.catalog
+ zope.app.intid
+ zope.app.keyreference
+ zope.app.twisted
+ grok
+ grok-meta
+ sample
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = sample
+extra-paths = parts/zope3/src
+working-directory = parts/instance
+defaults = ['--tests-pattern', '^f?tests$',
+ '-v'
+ ]
Added: grok/trunk/doc/groktut/empty/buildout.cfg
===================================================================
--- grok/trunk/doc/groktut/empty/buildout.cfg 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/empty/buildout.cfg 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,3 @@
+[buildout]
+develop = .
+extends = ../buildout_tut.cfg
Added: grok/trunk/doc/groktut/empty/setup.py
===================================================================
--- grok/trunk/doc/groktut/empty/setup.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/empty/setup.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,28 @@
+from setuptools import setup, find_packages
+
+version = 0.0
+
+setup(name='Sample',
+ version=version,
+ description="",
+ long_description="""\
+""",
+ # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+ classifiers=[],
+ keywords="",
+ author="",
+ author_email="",
+ url="",
+ license="",
+ package_dir={'': 'src'},
+ packages=find_packages('src'),
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=['setuptools',
+ 'grok',
+ # -*- Extra requirements: -*-
+ ],
+ entry_points="""
+ # -*- Entry points: -*-
+ """,
+ )
Property changes on: grok/trunk/doc/groktut/empty/src
___________________________________________________________________
Name: svn:ignore
+ Sample.egg-info
Added: grok/trunk/doc/groktut/empty/src/sample/__init__.py
===================================================================
--- grok/trunk/doc/groktut/empty/src/sample/__init__.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/empty/src/sample/__init__.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1 @@
+#
Added: grok/trunk/doc/groktut/empty/src/sample/app.py
===================================================================
--- grok/trunk/doc/groktut/empty/src/sample/app.py 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/empty/src/sample/app.py 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1,4 @@
+import grok
+
+class Sample(grok.Application, grok.Container):
+ pass
Added: grok/trunk/doc/groktut/empty/src/sample/configure.zcml
===================================================================
--- grok/trunk/doc/groktut/empty/src/sample/configure.zcml 2007-03-16 20:16:28 UTC (rev 73238)
+++ grok/trunk/doc/groktut/empty/src/sample/configure.zcml 2007-03-16 20:16:52 UTC (rev 73239)
@@ -0,0 +1 @@
+<grok package="." xmlns="http://namespaces.zope.org/grok" />
More information about the Checkins
mailing list