[Checkins] SVN: Sandbox/baijum/bluebream/trunk/ Minimal code for 0.1 release

Baiju M baiju.m.mail at gmail.com
Sat Jan 2 04:37:55 EST 2010


Log message for revision 107533:
  Minimal code for 0.1 release 
  

Changed:
  _U  Sandbox/baijum/bluebream/trunk/
  A   Sandbox/baijum/bluebream/trunk/README.txt
  A   Sandbox/baijum/bluebream/trunk/bootstrap.py
  A   Sandbox/baijum/bluebream/trunk/buildout.cfg
  A   Sandbox/baijum/bluebream/trunk/setup.py
  A   Sandbox/baijum/bluebream/trunk/src/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/__init__.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/bootstrap.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/buildout.cfg_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/debug.ini_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/deploy.ini_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/etc/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/etc/site.zcml_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/setup.py_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/__init__.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/__init__.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/application.zcml_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/securitypolicy.zcml_tmpl
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/startup.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/templates/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/templates/zope_conf.in
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/var/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/var/blob/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/var/blob/tmp/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/var/filestorage/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/var/log/
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/versions.cfg
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/script.py
  A   Sandbox/baijum/bluebream/trunk/src/bluebream/template.py

-=-

Property changes on: Sandbox/baijum/bluebream/trunk
___________________________________________________________________
Added: svn:ignore
   + develop-eggs
eggs
bin
parts
.installed.cfg


Added: Sandbox/baijum/bluebream/trunk/README.txt
===================================================================
--- Sandbox/baijum/bluebream/trunk/README.txt	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/README.txt	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,4 @@
+BlueBream
+=========
+
+Script to setup a Zope project directory.

Added: Sandbox/baijum/bluebream/trunk/bootstrap.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/bootstrap.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/bootstrap.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,121 @@
+##############################################################################
+#
+# 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 105417 2009-11-01 15:15:20Z tarek $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+from optparse import OptionParser
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+# parsing arguments
+parser = OptionParser()
+parser.add_option("-v", "--version", dest="version",
+                          help="use a specific zc.buildout version")
+parser.add_option("-d", "--distribute",
+                   action="store_true", dest="distribute", default=False,
+                   help="Use Disribute rather than Setuptools.")
+
+parser.add_option("-c", None, action="store", dest="config_file",
+                   help=("Specify the path to the buildout configuration "
+                         "file to be used."))
+
+options, args = parser.parse_args()
+
+# if -c was provided, we push it back into args for buildout' main function
+if options.config_file is not None:
+    args += ['-c', options.config_file]
+
+if options.version is not None:
+    VERSION = '==%s' % options.version
+else:
+    VERSION = ''
+
+USE_DISTRIBUTE = options.distribute
+args = args + ['bootstrap']
+
+to_reload = False
+try:
+    import pkg_resources
+    if not hasattr(pkg_resources, '_distribute'):
+        to_reload = True
+        raise ImportError
+except ImportError:
+    ez = {}
+    if USE_DISTRIBUTE:
+        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
+                         ).read() in ez
+        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
+    else:
+        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                             ).read() in ez
+        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    if to_reload:
+        reload(pkg_resources)
+    else:
+        import pkg_resources
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+
+if USE_DISTRIBUTE:
+    requirement = 'distribute'
+else:
+    requirement = 'setuptools'
+
+if is_jython:
+    import subprocess
+
+    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+           quote(tmpeggs), 'zc.buildout' + VERSION],
+           env=dict(os.environ,
+               PYTHONPATH=
+               ws.find(pkg_resources.Requirement.parse(requirement)).location
+               ),
+           ).wait() == 0
+
+else:
+    assert os.spawnle(
+        os.P_WAIT, sys.executable, quote (sys.executable),
+        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+        dict(os.environ,
+            PYTHONPATH=
+            ws.find(pkg_resources.Requirement.parse(requirement)).location
+            ),
+        ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)

Added: Sandbox/baijum/bluebream/trunk/buildout.cfg
===================================================================
--- Sandbox/baijum/bluebream/trunk/buildout.cfg	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/buildout.cfg	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,13 @@
+[buildout]
+develop = .
+parts = bluebream
+        test
+
+[bluebream]
+recipe = zc.recipe.egg
+eggs = bluebream
+       PasteScript
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = bluebream

Added: Sandbox/baijum/bluebream/trunk/setup.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/setup.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/setup.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,19 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="bluebream",
+    version="0.1dev",
+    author="Baiju M",
+    author_email="baiju.m.mail at gmail.com",
+    url="https://launchpad.net/grokproject",
+    download_url="http://pypi.python.org/pypi/grokproject",
+    description="Script to setup a Zope project directory.",
+    license="Simplified BSD License",
+    packages=find_packages("src"),
+    package_dir={"": "src"},
+    zip_safe=False,
+    install_requires=["PasteScript>=1.7.3"],
+    entry_points={
+    "console_scripts": ["bluebream = bluebream.script:main"],
+    "paste.paster_create_template": ["bluebream = bluebream.template:BlueBream"]},
+    )

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/__init__.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/__init__.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/__init__.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1 @@
+# Python Package

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/bootstrap.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/bootstrap.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/bootstrap.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,121 @@
+##############################################################################
+#
+# 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 105417 2009-11-01 15:15:20Z tarek $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+from optparse import OptionParser
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+# parsing arguments
+parser = OptionParser()
+parser.add_option("-v", "--version", dest="version",
+                          help="use a specific zc.buildout version")
+parser.add_option("-d", "--distribute",
+                   action="store_true", dest="distribute", default=False,
+                   help="Use Disribute rather than Setuptools.")
+
+parser.add_option("-c", None, action="store", dest="config_file",
+                   help=("Specify the path to the buildout configuration "
+                         "file to be used."))
+
+options, args = parser.parse_args()
+
+# if -c was provided, we push it back into args for buildout' main function
+if options.config_file is not None:
+    args += ['-c', options.config_file]
+
+if options.version is not None:
+    VERSION = '==%s' % options.version
+else:
+    VERSION = ''
+
+USE_DISTRIBUTE = options.distribute
+args = args + ['bootstrap']
+
+to_reload = False
+try:
+    import pkg_resources
+    if not hasattr(pkg_resources, '_distribute'):
+        to_reload = True
+        raise ImportError
+except ImportError:
+    ez = {}
+    if USE_DISTRIBUTE:
+        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
+                         ).read() in ez
+        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
+    else:
+        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                             ).read() in ez
+        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    if to_reload:
+        reload(pkg_resources)
+    else:
+        import pkg_resources
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+
+if USE_DISTRIBUTE:
+    requirement = 'distribute'
+else:
+    requirement = 'setuptools'
+
+if is_jython:
+    import subprocess
+
+    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+           quote(tmpeggs), 'zc.buildout' + VERSION],
+           env=dict(os.environ,
+               PYTHONPATH=
+               ws.find(pkg_resources.Requirement.parse(requirement)).location
+               ),
+           ).wait() == 0
+
+else:
+    assert os.spawnle(
+        os.P_WAIT, sys.executable, quote (sys.executable),
+        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+        dict(os.environ,
+            PYTHONPATH=
+            ws.find(pkg_resources.Requirement.parse(requirement)).location
+            ),
+        ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/buildout.cfg_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/buildout.cfg_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/buildout.cfg_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,30 @@
+[config]
+site_zcml = $${buildout:directory}/etc/site.zcml
+blob = $${buildout:directory}/var/blob
+filestorage = $${buildout:directory}/var/filestorage
+log = $${buildout:directory}/var/log
+
+[buildout]
+develop = .
+extends = versions.cfg
+parts = app
+        zope_conf
+        test 
+
+[app]
+recipe = zc.recipe.egg
+eggs = ${project}
+       z3c.evalexception>=2.0
+       Paste
+       PasteScript
+       PasteDeploy
+interpreter = python
+
+[zope_conf]
+recipe = collective.recipe.template
+input = templates/zope_conf.in
+output = etc/zope.conf
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = ${project}

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/debug.ini_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/debug.ini_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/debug.ini_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,61 @@
+[loggers]
+keys = root, wsgi
+
+[handlers]
+keys = console, accesslog
+
+[formatters]
+keys = generic, accesslog
+
+[formatter_generic]
+format = %(asctime)s %(levelname)s [%(name)s] %(message)s
+
+[formatter_accesslog]
+format = %(message)s
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[handler_accesslog]
+class = FileHandler
+args = (os.path.join('var', 'log', 'access.log'),
+        'a')
+level = INFO
+formatter = accesslog
+
+[logger_root]
+level = INFO
+handlers = console
+
+[logger_wsgi]
+level = INFO
+handlers = accesslog
+qualname = wsgi
+propagate = 0
+
+[filter:translogger]
+use = egg:Paste#translogger
+setup_console_handler = False
+logger_name = wsgi
+
+[filter-app:main]
+# Change the last part from 'ajax' to 'pdb' for a post-mortem debugger
+# on the console:
+use = egg:z3c.evalexception#ajax
+next = zope
+
+[app:zope]
+use = egg:${project}
+filter-with = translogger
+
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1
+port = 8080
+
+[DEFAULT]
+# set the name of the zope.conf file
+zope_conf = %(here)s/etc/zope.conf

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/deploy.ini_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/deploy.ini_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/deploy.ini_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,11 @@
+[app:main]
+use = egg:${project}
+
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1
+port = 8080
+
+[DEFAULT]
+# set the name of the zope.conf file
+zope_conf = %(here)s/etc/zope.conf

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/etc/site.zcml_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/etc/site.zcml_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/etc/site.zcml_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,28 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope">
+
+  <include package="zope.component" file="meta.zcml" />
+  <include package="zope.security" file="meta.zcml" />
+  <include package="zope.publisher" file="meta.zcml" />
+  <include package="zope.browserresource" file="meta.zcml" />
+  <include package="zope.browsermenu" file="meta.zcml" />
+  <include package="zope.browserpage" file="meta.zcml" />
+  <include package="zope.securitypolicy" file="meta.zcml" />
+  <include package="zope.principalregistry" file="meta.zcml" />
+  <include package="zope.app.publication" file="meta.zcml" />
+
+  <include package="zope.component" />
+  <include package="zope.traversing" />
+  <include package="zope.site" />
+  <include package="zope.annotation" />
+  <include package="zope.container" />
+  <include package="zope.componentvocabulary" />
+  <include package="zope.app.appsetup" />
+  <include package="zope.app.security" />
+  <include package="zope.app.publication" />
+  <include package="zope.principalregistry" />
+
+  <include package="${namespace_package}.main" file="securitypolicy.zcml" />
+  <include package="${namespace_package}.main" file="application.zcml" />
+
+</configure>

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/setup.py_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/setup.py_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/setup.py_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,57 @@
+from setuptools import setup, find_packages
+
+
+setup(name=${repr(project)},
+      version='${repr(version)|0.1}',
+      description='${description|nothing}',
+      long_description="""\
+${long_description|nothing}""",
+      # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+      classifiers=[], 
+      keywords=${repr(keywords)|empty},
+      author=${repr(author)|empty},
+      author_email=${repr(author_email)|empty},
+      url=${repr(url)|empty},
+      license=${repr(license_name)|empty},
+      package_dir={'': 'src'},
+      packages=find_packages('src'),
+      namespace_packages=[${repr(namespace_package)},],
+      include_package_data=True,
+      zip_safe=${repr(bool(zip_safe))|False},
+      install_requires=['setuptools',
+                        'zope.app.twisted',
+                        'zope.securitypolicy',
+                        'zope.component',
+                        'zope.annotation',
+                        'zope.app.dependable',
+                        'zope.app.appsetup',
+                        'zope.app.content',
+                        'zope.publisher',
+                        'zope.app.broken',
+                        'zope.app.component',
+                        'zope.app.generations',
+                        'zope.app.error',
+                        'zope.app.interface',
+                        'zope.app.publisher',
+                        'zope.app.security',
+                        'zope.app.form',
+                        'zope.app.i18n',
+                        'zope.app.locales',
+                        'zope.app.zopeappgenerations',
+                        'zope.app.principalannotation',
+                        'zope.app.basicskin',
+                        'zope.app.rotterdam',
+                        'zope.app.folder',
+                        'zope.app.wsgi',
+                        'zope.formlib',
+                        'zope.i18n',
+                        'zope.app.pagetemplate',
+                        'zope.app.schema',
+                        'zope.app.container',
+                        'zope.app.debug',
+                        ],
+      entry_points = """
+      [paste.app_factory]
+      main = ${namespace_package}.main.startup:application_factory
+      """,
+      )

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/__init__.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/__init__.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/__init__.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1 @@
+__import__('pkg_resources').declare_namespace(__name__)

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/__init__.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/__init__.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/__init__.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1 @@
+# Python Package

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/application.zcml_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/application.zcml_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/application.zcml_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,7 @@
+<configure
+   i18n_domain="${namespace_package}.main"
+   xmlns="http://namespaces.zope.org/zope">
+
+  <include package="${namespace_package}.main" />
+
+</configure>

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/configure.zcml_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,12 @@
+<configure
+   i18n_domain="${namespace_package}.main"
+   xmlns="http://namespaces.zope.org/browser">
+
+  <page
+     for="*"
+     name="hello"
+     permission="zope.Public"
+     class=".views.HelloView"
+     />
+
+</configure>

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/securitypolicy.zcml_tmpl
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/securitypolicy.zcml_tmpl	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/securitypolicy.zcml_tmpl	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,27 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    i18n_domain="zope"
+    >
+
+  <!-- This file contains sample security policy definition -->
+
+  <include package="zope.securitypolicy" />
+
+  <securityPolicy
+      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy"
+      />
+
+  <role
+      id="zope.Anonymous"
+      title="Everybody"
+      description="All users have this role implicitly"
+      />
+  <role id="zope.Manager" title="Site Manager" />
+  <role id="zope.Member" title="Site Member" />
+
+  <!-- Replace the following directive if you don't want public access -->
+  <grant permission="zope.View" role="zope.Anonymous" />
+
+  <grantAll role="zope.Manager" />
+
+</configure>

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/startup.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/startup.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/startup.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,5 @@
+import zope.app.wsgi
+
+def application_factory(global_conf):
+    zope_conf = global_conf['zope_conf']
+    return zope.app.wsgi.getWSGIApplication(zope_conf)

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/main/views.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,6 @@
+from zope.publisher.browser import BrowserView
+
+class HelloView(BrowserView):
+
+    def __call__(self):
+          return "Hello"

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/templates/zope_conf.in
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/templates/zope_conf.in	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/templates/zope_conf.in	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,46 @@
+# Identify the component configuration used to define the site:
+site-definition ${config:site_zcml}
+
+<zodb>
+  # Wrap standard FileStorage with BlobStorage proxy to get ZODB blobs
+  # support.
+  # This won't be needed with ZODB 3.9, as its FileStorage supports
+  # blobs by itself. If you use ZODB 3.9, remove the proxy and specify
+  # the blob-dir parameter right in in filestorage, just after path.
+  <blobstorage>
+    blob-dir ${config:blob}
+    <filestorage>
+      path ${config:filestorage}/Data.fs
+    </filestorage>
+  </blobstorage>
+
+# Uncomment this if you want to connect to a ZEO server instead:
+#  <zeoclient>
+#    server localhost:8100
+#    storage 1
+#    # ZEO client cache, in bytes
+#    cache-size 20MB
+#    # Uncomment to have a persistent disk cache
+#    #client zeo1
+#  </zeoclient>
+</zodb>
+
+<eventlog>
+  # This sets up logging to both a file and to standard output (STDOUT).
+  # The "path" setting can be a relative or absolute filesystem path or
+  # the tokens STDOUT or STDERR.
+
+  <logfile>
+    path ${config:log}/z3.log
+    formatter zope.exceptions.log.Formatter
+  </logfile>
+
+  <logfile>
+    path STDOUT
+    formatter zope.exceptions.log.Formatter
+  </logfile>
+</eventlog>
+
+# Comment this line to disable developer mode.  This should be done in
+# production
+devmode on

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/versions.cfg
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/versions.cfg	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/project_template/versions.cfg	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,200 @@
+[buildout]
+versions = versions
+
+[versions]
+zc.recipe.egg = 1.2.2
+collective.recipe.template = 1.4
+zc.recipe.testrunner = 1.2.0
+zope.testing = 3.8.6
+zope.interface = 3.5.3
+zope.exceptions = 3.5.2
+z3c.evalexception = 2.0
+Paste = 1.7.2
+setuptools = 0.6c11
+PasteScript = 1.7.3
+PasteDeploy = 1.3.3
+zope.security = 3.7.2
+zope.app.debug = 3.4.1
+zope.app.container = 3.8.1
+zope.app.schema = 3.5.0
+zope.app.pagetemplate = 3.10.0
+zope.i18n = 3.7.2
+zope.formlib = 3.10.0
+zope.app.wsgi = 3.6.0
+zope.app.folder = 3.5.1
+zope.app.rotterdam = 3.5.0
+zope.app.basicskin = 3.5.0
+zope.app.principalannotation = 3.7.0
+zope.app.zopeappgenerations = 3.5.0
+zope.app.locales = 3.6.0
+zope.app.i18n = 3.6.2
+zope.app.form = 3.12.1
+zope.app.security = 3.7.4
+zope.app.publisher = 3.10.0
+zope.app.interface = 3.5.0
+zope.app.error = 3.5.2
+zope.app.generations = 3.5.0
+zope.app.component = 3.8.3
+zope.app.broken = 3.5.0
+zope.publisher = 3.12.0
+zope.app.content = 3.4.0
+zope.app.dependable = 3.5.1
+zope.annotation = 3.5.0
+zope.component = 3.8.0
+zope.securitypolicy = 3.6.1
+zope.app.twisted = 3.5.0
+zope.schema = 3.6.0
+zope.proxy = 3.5.0
+zope.location = 3.9.0
+zope.interface = 3.5.3
+zope.i18nmessageid = 3.5.0
+zope.exceptions = 3.5.2
+zope.configuration = 3.7.0
+zope.app.publication = 3.10.0
+zope.app.appsetup = 3.13.0
+zope.traversing = 3.12.0
+zope.size = 3.4.1
+zope.lifecycleevent = 3.6.0
+zope.event = 3.4.1
+zope.dublincore = 3.6.0
+zope.copypastemove = 3.6.0
+zope.container = 3.11.0
+zope.browser = 1.2
+zope.tales = 3.4.0
+zope.pagetemplate = 3.5.0
+zope.browserpage = 3.11.0
+pytz = 2009r
+zope.processlifetime = 1.0
+ZConfig = 2.7.1
+ZODB3 = 3.9.4
+zope.app.authentication = 3.6.1
+zope.datetime = 3.4.0
+zope.site = 3.9.0
+zope.principalannotation = 3.6.0
+transaction = 1.0.0
+zope.browsermenu = 3.9.0
+zope.principalregistry = 3.7.0
+zope.authentication = 3.7.0
+zope.app.localpermission = 3.7.0
+zope.componentvocabulary = 1.0
+zope.ptresource = 3.9.0
+zope.browserresource = 3.10.2
+zodbcode = 3.4.0
+zope.error = 3.7.0
+zope.app.renderer = 3.5.1
+zope.filerepresentation = 3.6.0
+zope.deprecation = 3.4.0
+zope.deferredimport = 3.5.0
+zope.cachedescriptors = 3.5.0
+zope.broken = 3.5.0
+zope.contenttype = 3.5.0
+zope.app.server = 3.5.0
+zope.app.applicationcontrol = 3.5.2
+zdaemon = 2.0.4
+zope.testing = 3.8.6
+zope.session = 3.9.2
+zope.copy = 3.5.0
+zope.dottedname = 3.4.6
+zope.tal = 3.5.2
+RestrictedPython = 3.5.1
+zope.hookable = 3.4.1
+zc.lockfile = 1.0.0
+zope.password = 3.5.1
+zope.structuredtext = 3.4.0
+roman = 1.4.0
+docutils = 0.6
+zope.server = 3.6.1
+zope.minmax = 1.1.2
+zope.testing = 3.8.6
+zope.interface = 3.5.3
+zope.exceptions = 3.5.2
+setuptools = 0.6c11
+zope.app.debug = 3.4.1
+zope.app.container = 3.8.1
+zope.app.schema = 3.5.0
+zope.app.pagetemplate = 3.10.0
+zope.i18n = 3.7.2
+zope.formlib = 3.10.0
+zope.app.wsgi = 3.6.0
+zope.app.folder = 3.5.1
+zope.app.rotterdam = 3.5.0
+zope.app.basicskin = 3.5.0
+zope.app.principalannotation = 3.7.0
+zope.app.zopeappgenerations = 3.5.0
+zope.app.locales = 3.6.0
+zope.app.i18n = 3.6.2
+zope.app.form = 3.12.1
+zope.app.security = 3.7.4
+zope.app.publisher = 3.10.0
+zope.app.interface = 3.5.0
+zope.app.error = 3.5.2
+zope.app.generations = 3.5.0
+zope.app.component = 3.8.3
+zope.app.broken = 3.5.0
+zope.publisher = 3.12.0
+zope.app.content = 3.4.0
+zope.app.dependable = 3.5.1
+zope.annotation = 3.5.0
+zope.component = 3.8.0
+zope.securitypolicy = 3.6.1
+zope.app.twisted = 3.5.0
+zope.app.publication = 3.10.0
+zope.app.appsetup = 3.13.0
+zope.traversing = 3.12.0
+zope.size = 3.4.1
+zope.security = 3.7.2
+zope.schema = 3.6.0
+zope.location = 3.9.0
+zope.lifecycleevent = 3.6.0
+zope.i18nmessageid = 3.5.0
+zope.event = 3.4.1
+zope.dublincore = 3.6.0
+zope.copypastemove = 3.6.0
+zope.container = 3.11.0
+zope.browser = 1.2
+zope.tales = 3.4.0
+zope.pagetemplate = 3.5.0
+zope.configuration = 3.7.0
+zope.browserpage = 3.11.0
+pytz = 2009r
+zope.processlifetime = 1.0
+ZConfig = 2.7.1
+ZODB3 = 3.9.4
+zope.app.authentication = 3.6.1
+zope.datetime = 3.4.0
+zope.site = 3.9.0
+zope.proxy = 3.5.0
+zope.principalannotation = 3.6.0
+transaction = 1.0.0
+zope.browsermenu = 3.9.0
+zope.principalregistry = 3.7.0
+zope.authentication = 3.7.0
+zope.app.localpermission = 3.7.0
+zope.componentvocabulary = 1.0
+zope.ptresource = 3.9.0
+zope.browserresource = 3.10.2
+zodbcode = 3.4.0
+zope.error = 3.7.0
+zope.app.renderer = 3.5.1
+zope.filerepresentation = 3.6.0
+zope.deprecation = 3.4.0
+zope.deferredimport = 3.5.0
+zope.cachedescriptors = 3.5.0
+zope.broken = 3.5.0
+zope.contenttype = 3.5.0
+zope.app.server = 3.5.0
+zope.app.applicationcontrol = 3.5.2
+zdaemon = 2.0.4
+zope.session = 3.9.2
+zope.copy = 3.5.0
+zope.dottedname = 3.4.6
+zope.tal = 3.5.2
+RestrictedPython = 3.5.1
+zope.hookable = 3.4.1
+zc.lockfile = 1.0.0
+zope.password = 3.5.1
+zope.structuredtext = 3.4.0
+roman = 1.4.0
+docutils = 0.6
+zope.server = 3.6.1
+zope.minmax = 1.1.2

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/script.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/script.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/script.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,2 @@
+def main():
+    pass

Added: Sandbox/baijum/bluebream/trunk/src/bluebream/template.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/template.py	                        (rev 0)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/template.py	2010-01-02 09:37:54 UTC (rev 107533)
@@ -0,0 +1,9 @@
+from paste.script import templates
+from paste.script.templates import var
+
+class BlueBream(templates.Template):
+
+    _template_dir = 'project_template'
+    summary = "A Zope project"
+    vars = [var('namespace_package', '')]
+



More information about the checkins mailing list