[z3-checkins] r34723 - in z3/deliverance/DeliveranceDemo/trunk: . DeliveranceDemo.egg-info ddemo ddemo/config ddemo/controllers ddemo/docs ddemo/i18n ddemo/lib ddemo/models ddemo/public ddemo/templates ddemo/tests ddemo/tests/functional

ianb at codespeak.net ianb at codespeak.net
Fri Nov 17 21:30:19 CET 2006


Author: ianb
Date: Fri Nov 17 21:30:05 2006
New Revision: 34723

Added:
   z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/   (props changed)
   z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paste_deploy_config.ini_tmpl
   z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paster_plugins.txt   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/README.txt   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/config/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/config/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/config/environment.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/config/middleware.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/config/routing.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/error.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/template.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/docs/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/docs/index.txt   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/i18n/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/i18n/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/app_globals.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/base.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/helpers.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/models/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/models/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/public/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/public/index.html   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/templates/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/templates/autohandler
   z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/functional/
   z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/functional/__init__.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/test_models.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/ddemo/websetup.py   (contents, props changed)
   z3/deliverance/DeliveranceDemo/trunk/development.ini
   z3/deliverance/DeliveranceDemo/trunk/setup.cfg
   z3/deliverance/DeliveranceDemo/trunk/setup.py   (contents, props changed)
Log:
New project layout

Added: z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paste_deploy_config.ini_tmpl
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paste_deploy_config.ini_tmpl	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,40 @@
+#
+# DeliveranceDemo - Pylons configuration
+#
+# The %(here)s variable will be replaced with the parent directory of this file
+#
+[DEFAULT]
+debug = true
+email_to = you at yourdomain.com
+smtp_server = localhost
+error_email_from = paste at localhost
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5000
+
+[app:main]
+use = egg:DeliveranceDemo
+cache_dir = %(here)s/data
+session_key = ddemo
+session_secret = ${app_instance_secret}
+app_instance_uuid = ${app_instance_uuid}
+
+# If you'd like to fine-tune the individual locations of the cache data dirs
+# for Myghty, the Cache data, or the Session saves, un-comment the desired
+# settings here:
+#myghty_data_dir = %(here)s/data/templates
+#cache_data_dir = %(here)s/data/cache
+#session_data_dir = %(here)s/data/sessions
+
+# Specify the database for SQLObject to use via pylons.database.PackageHub.
+# %(here) may include a ':' character on Windows environments; this can
+# invalidate the URI when specifying a SQLite db via path name. Refer to the
+# SQLObject documentation for a special syntax to preserve the URI.
+#sqlobject.dburi = sqlite:%(here)s/somedb.db
+
+# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
+# Debug mode will enable the interactive debugging tool, allowing ANYONE to
+# execute malicious code after an exception is raised.
+set debug = false

Added: z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paster_plugins.txt
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/DeliveranceDemo.egg-info/paster_plugins.txt	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,3 @@
+Pylons
+WebHelpers
+PasteScript

Added: z3/deliverance/DeliveranceDemo/trunk/README.txt
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/README.txt	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,19 @@
+This file is for you to describe the DeliveranceDemo application. Typically
+you would include information such as the information below:
+
+Installation and Setup
+======================
+
+Install ``DeliveranceDemo`` using easy_install::
+
+    easy_install DeliveranceDemo
+
+Make a config file as follows::
+
+    paster make-config DeliveranceDemo config.ini
+    
+Tweak the config file as appropriate and then setup the application::
+
+    paster setup-app config.ini
+    
+Then you are ready to go.

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/__init__.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/__init__.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,8 @@
+"""
+ddemo
+
+This file loads the finished app from ddemo.config.middleware.
+
+"""
+
+from ddemo.config.middleware import make_app

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/config/__init__.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/config/__init__.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1 @@
+#

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/config/environment.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/config/environment.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,29 @@
+import os
+
+import pylons.config
+import webhelpers
+
+from ddemo.config.routing import make_map
+
+def load_environment(global_conf={}, app_conf={}):
+    map = make_map(global_conf, app_conf)
+    # Setup our paths
+    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+    paths = {'root_path': root_path,
+             'controllers': os.path.join(root_path, 'controllers'),
+             'templates': [os.path.join(root_path, path) for path in \
+                           ('components', 'templates')],
+             'static_files': os.path.join(root_path, 'public')
+             }
+    
+    # The following options are passed directly into Myghty, so all configuration options
+    # available to the Myghty handler are available for your use here
+    myghty = {}
+    myghty['log_errors'] = True
+    myghty['escapes'] = dict(l=webhelpers.auto_link, s=webhelpers.simple_format)
+    
+    # Add your own Myghty config options here, note that all config options will override
+    # any Pylons config options
+    
+    # Return our loaded config object
+    return pylons.config.Config(myghty, map, paths)

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/config/middleware.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/config/middleware.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,59 @@
+from paste import httpexceptions
+from paste.cascade import Cascade
+from paste.urlparser import StaticURLParser
+from paste.registry import RegistryManager
+from paste.deploy.config import ConfigMiddleware
+from paste.deploy.converters import asbool
+
+from pylons.error import error_template
+from pylons.middleware import ErrorHandler, ErrorDocuments, StaticJavascripts, error_mapper
+import pylons.wsgiapp
+
+from ddemo.config.environment import load_environment
+import ddemo.lib.helpers
+import ddemo.lib.app_globals as app_globals
+
+def make_app(global_conf, full_stack=True, **app_conf):
+    """Create a WSGI application and return it
+    
+    global_conf is a dict representing the Paste configuration options, the
+    paste.deploy.converters should be used when parsing Paste config options
+    to ensure they're treated properly.
+    
+    """
+    # Load our Pylons configuration defaults
+    config = load_environment(global_conf, app_conf)
+    config.init_app(global_conf, app_conf, package='ddemo')
+        
+    # Load our default Pylons WSGI app and make g available
+    app = pylons.wsgiapp.PylonsApp(config, helpers=ddemo.lib.helpers,
+                                   g=app_globals.Globals)
+    g = app.globals
+    app = ConfigMiddleware(app, {'app_conf':app_conf,
+        'global_conf':global_conf})
+    
+    # YOUR MIDDLEWARE
+    # Put your own middleware here, so that any problems are caught by the error
+    # handling middleware underneath
+    
+    # If errror handling and exception catching will be handled by middleware
+    # for multiple apps, you will want to set full_stack = False in your config
+    # file so that it can catch the problems.
+    if asbool(full_stack):
+        # Change HTTPExceptions to HTTP responses
+        app = httpexceptions.make_middleware(app, global_conf)
+    
+        # Error Handling
+        app = ErrorHandler(app, global_conf, error_template=error_template, **config.errorware)
+    
+        # Display error documents for 401, 403, 404 status codes (if debug is disabled also
+        # intercepts 500)
+        app = ErrorDocuments(app, global_conf, mapper=error_mapper, **app_conf)
+    
+    # Establish the Registry for this application
+    app = RegistryManager(app)
+    
+    static_app = StaticURLParser(config.paths['static_files'])
+    javascripts_app = StaticJavascripts()
+    app = Cascade([static_app, javascripts_app, app])
+    return app

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/config/routing.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/config/routing.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,23 @@
+"""
+Setup your Routes options here
+"""
+import sys, os
+from routes import Mapper
+
+def make_map(global_conf={}, app_conf={}):
+    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+    map = Mapper(directory=os.path.join(root_path, 'controllers'))
+    
+    # This route handles displaying the error page and graphics used in the 404/500
+    # error pages. It should likely stay at the top to ensure that the error page is
+    # displayed properly.
+    map.connect('error/:action/:id', controller='error')
+    
+    # Define your routes. The more specific and detailed routes should be defined first,
+    # so they may take precedent over the more generic routes. For more information, refer
+    # to the routes manual @ http://routes.groovie.org/docs/
+    map.connect(':controller/:action/:id')
+    map.connect('*url', controller='template', action='view')
+
+    return map

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/__init__.py
==============================================================================

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/error.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/error.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,33 @@
+import os.path
+from paste import fileapp
+from pylons.middleware import media_path, error_document_template
+from pylons.util import get_prefix
+from ddemo.lib.base import *
+
+class ErrorController(BaseController):
+    """
+    Class to generate error documents as and when they are required. This behaviour of this
+    class can be altered by changing the parameters to the ErrorDocuments middleware in 
+    your config/middleware.py file.
+    """
+
+    def document(self):
+        """
+        Change this method to change how error documents are displayed
+        """
+        page = error_document_template % {
+            'prefix': get_prefix(request.environ),
+            'code': request.params.get('code', ''),
+            'message': request.params.get('message', ''),
+        }
+        return Response(page)
+
+    def img(self, id):
+        return self._serve_file(os.path.join(media_path, 'img', id))
+        
+    def style(self, id):
+        return self._serve_file(os.path.join(media_path, 'style', id))
+
+    def _serve_file(self, path):
+        fapp = fileapp.FileApp(path)
+        return fapp(request.environ, self.start_response)

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/template.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/controllers/template.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,28 @@
+from ddemo.lib.base import *
+
+class TemplateController(BaseController):
+    def view(self, url):
+        """
+        This is the last place which is tried during a request to try to find a 
+        file to serve. It could be used for example to display a template::
+        
+            def view(self, url):
+                return render_response(url)
+        
+        Or, if you're using Myghty and would like to catch the component not
+        found error which will occur when the template doesn't exist; you
+        can use the following version which will provide a 404 if the template
+        doesn't exist::
+        
+            import myghty.exception
+            
+            def view(self, url):
+                try:
+                    return render_response('/'+url)
+                except myghty.exception.ComponentNotFound:
+                    return Response(code=404)
+        
+        The default is just to abort the request with a 404 File not found
+        status message.
+        """
+        abort(404)

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/docs/index.txt
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/docs/index.txt	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,11 @@
+ddemo
++++++
+
+This is the main index page of your documentation. It should be written in reStructuredText format.
+
+You can generate your documentation in HTML format by running this command::
+
+    setup.py pudge
+    
+For this to work you will need to download and install ``buildutils`` and ``pudge``.
+

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/i18n/__init__.py
==============================================================================

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/__init__.py
==============================================================================

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/app_globals.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/app_globals.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,33 @@
+class Globals(object):
+
+    def __init__(self, global_conf, app_conf, **extra):
+        """
+        You can put any objects which need to be initialised only once
+        here as class attributes and they will be available as globals
+        everywhere in your application and will be intialised only once,
+        not on every request.
+        
+        ``global_conf``
+            The same as variable used throughout ``config/middleware.py``
+            namely, the variables from the ``[DEFAULT]`` section of the
+            configuration file.
+            
+        ``app_conf``
+            The same as the ``kw`` dictionary used throughout 
+            ``config/middleware.py`` namely, the variables the section 
+            in the config file for your application.
+            
+        ``extra``
+            The configuration returned from ``load_config`` in 
+            ``config/middleware.py`` which may be of use in the setup of 
+            your global variables.
+            
+        """
+        pass
+        
+    def __del__(self):
+        """
+        Put any cleanup code to be run when the application finally exits 
+        here.
+        """
+        pass

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/base.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/base.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,14 @@
+from pylons import Response, c, g, cache, request, session
+from pylons.controllers import WSGIController
+from pylons.decorators import jsonify, validate
+from pylons.templating import render, render_response
+from pylons.helpers import abort, redirect_to, etag_cache, _
+import ddemo.models as model
+import ddemo.lib.helpers as h
+
+class BaseController(WSGIController):
+    def __call__(self, environ, start_response):
+        # Insert any code to be run per request here. The Routes match
+        # is under environ['pylons.routes_dict'] should you want to check
+        # the action or route vars here
+        return WSGIController.__call__(self, environ, start_response)

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/helpers.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/lib/helpers.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,7 @@
+"""
+Helper functions
+
+All names available in this module will be available under the Pylons h object.
+"""
+from webhelpers import *
+from pylons.helpers import _, log, set_lang, get_lang

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/models/__init__.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/models/__init__.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,11 @@
+## NOTE
+##   If you plan on using SQLObject, the following should be un-commented and provides
+##   a starting point for setting up your schema
+
+#from sqlobject import *
+#from pylons.database import PackageHub
+#hub = PackageHub("ddemo")
+#__connection__ = hub
+
+# You should then import your SQLObject classes
+# from myclass import MyDataClass

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/public/index.html
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/public/index.html	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+   "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>Pylons Default Page</title>
+  <style>
+    body { background-color: #fff; color: #333; }
+
+    body, p {
+      font-family: verdana, arial, helvetica, sans-serif;
+      font-size:   12px;
+      line-height: 18px;
+    }
+    pre {
+      background-color: #eee;
+      padding: 10px;
+      font-size: 11px;
+      line-height: 13px;
+    }
+
+    a { color: #000; }
+    a:visited { color: #666; }
+    a:hover { color: #fff; background-color:#000; }
+  </style>
+</head>
+<body>
+
+<h1>Welcome to your Pylons Web Application</h1>
+
+<h2>Weren't expecting to see this page?</h2>
+
+<p>The ddemo/public/ directory is searched for static files
+ <i>before</i> your controllers are run. Remove this file (ddemo/public/index.html) and edit
+  the routes in <tt>ddemo/config/routing.py</tt> like so:
+  <pre> map.connect('', controller='hello', action='index')</pre>
+</p>
+
+<h2>Getting Started</h2>
+<p>You're now ready to start creating your own web application. Here's what a basic controller looks
+like to print out 'Hello World' and respond to http://127.0.0.1:5000/hello:
+<pre>
+# ddemo/controllers/hello.py
+# Note that the line above is the file you should create and put the following into...
+
+from ddemo.lib.base import *
+
+class HelloController(BaseController):
+    def index(self):
+        return Response('Hello World')
+        
+</pre>
+</p>
+
+<h3>Using a template</h3>
+<p>If you want to call a template and do something a little more complex, here's an example printing out some
+request information from a Myghty template.
+<pre>
+# ddemo/templates/serverinfo.myt
+
+&lt;p>Hi, here's the server environment: &lt;br />
+&lt;% str(request.environ) %>&lt;/p>
+
+&lt;p>
+here's the URL you called: &lt;% h.url_for() %>
+&lt;/p>
+
+&lt;p>
+and here's the name you set: &lt;% c.name %>
+&lt;/p>
+
+</pre>
+
+Then add this to your hello controller class:
+<pre>
+    def serverinfo(self):
+        c.name = 'The Black Knight'
+        return render_response('/serverinfo.myt')
+</pre>
+
+You can now view the page at: <tt>http://127.0.0.1:5000/hello/serverinfo</tt>
+</p>
+</body>
+</html>

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/templates/autohandler
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/templates/autohandler	Fri Nov 17 21:30:05 2006
@@ -0,0 +1 @@
+% m.call_next()
\ No newline at end of file

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/__init__.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/__init__.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,28 @@
+import os, sys
+from unittest import TestCase
+
+here_dir = os.path.dirname(__file__)
+conf_dir = os.path.dirname(os.path.dirname(here_dir))
+
+sys.path.insert(0, conf_dir)
+
+import pkg_resources
+
+pkg_resources.working_set.add_entry(conf_dir)
+
+pkg_resources.require('Paste')
+pkg_resources.require('PasteScript')
+
+from paste.deploy import loadapp
+import paste.fixture
+
+from ddemo.config.routing import *
+from routes import request_config, url_for
+
+class TestController(TestCase):
+    def __init__(self, *args):
+        wsgiapp = loadapp('config:development.ini', relative_to=conf_dir)
+        self.app = paste.fixture.TestApp(wsgiapp)
+        TestCase.__init__(self, *args)
+
+__all__ = ['url_for', 'TestController']

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/functional/__init__.py
==============================================================================

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/tests/test_models.py
==============================================================================

Added: z3/deliverance/DeliveranceDemo/trunk/ddemo/websetup.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/websetup.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,5 @@
+def setup_config(command, filename, section, vars):
+    """
+    Place any commands to setup ddemo here.
+    """
+    pass
\ No newline at end of file

Added: z3/deliverance/DeliveranceDemo/trunk/development.ini
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/development.ini	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,39 @@
+#
+# DeliveranceDemo - Pylons development environment configuration
+#
+# The %(here)s variable will be replaced with the parent directory of this file
+#
+[DEFAULT]
+debug = true
+email_to = you at yourdomain.com
+smtp_server = localhost
+error_email_from = paste at localhost
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5000
+
+[app:main]
+use = egg:DeliveranceDemo
+cache_dir = %(here)s/data
+session_key = ddemo
+session_secret = somesecret
+
+# If you'd like to fine-tune the individual locations of the cache data dirs
+# for Myghty, the Cache data, or the Session saves, un-comment the desired
+# settings here:
+#myghty_data_dir = %(here)s/data/templates
+#cache_data_dir = %(here)s/data/cache
+#session_data_dir = %(here)s/data/sessions
+
+# Specify the database for SQLObject to use via pylons.database.PackageHub.
+# %(here) may include a ':' character on Windows environments; this can
+# invalidate the URI when specifying a SQLite db via path name. Refer to the
+# SQLObject documentation for a special syntax to preserve the URI.
+#sqlobject.dburi = sqlite:%(here)s/somedb.db
+
+# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
+# Debug mode will enable the interactive debugging tool, allowing ANYONE to
+# execute malicious code after an exception is raised.
+#set debug = false

Added: z3/deliverance/DeliveranceDemo/trunk/setup.cfg
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/setup.cfg	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,34 @@
+[egg_info]
+tag_build = dev
+tag_svn_revision = true
+
+[easy_install]
+find_links = http://www.pylonshq.com/download/
+
+[pudge]
+theme = pythonpaste.org
+
+# Add extra doc files here with spaces between them
+docs = ddemo/docs/index.txt 
+
+# Doc Settings
+doc_base = ddemo/docs/
+dest = ddemo/docs/html
+
+# Add extra modules here separated with commas
+modules = ddemo
+title = Ddemo
+organization = Pylons
+
+# Optionally add extra links
+#organization_url = http://pylons.groovie.org/
+#trac_url=http://pylons.groovie.org/
+settings = no_about=true
+
+# Optionally add extra settings 
+#           link1=/community/ Community
+#           link2=/download/ Download
+ 
+[publish]
+doc-dir=ddemo/docs/html
+make-dirs=1

Added: z3/deliverance/DeliveranceDemo/trunk/setup.py
==============================================================================
--- (empty file)
+++ z3/deliverance/DeliveranceDemo/trunk/setup.py	Fri Nov 17 21:30:05 2006
@@ -0,0 +1,21 @@
+from setuptools import setup, find_packages
+
+setup(
+    name='DeliveranceDemo',
+    version="",
+    #description="",
+    #author="",
+    #author_email="",
+    #url="",
+    install_requires=["Pylons>=0.9.3"],
+    packages=find_packages(),
+    include_package_data=True,
+    test_suite = 'nose.collector',
+    package_data={'ddemo': ['i18n/*/LC_MESSAGES/*.mo']},
+    entry_points="""
+    [paste.app_factory]
+    main=ddemo:make_app
+    [paste.app_install]
+    main=paste.script.appinstall:Installer
+    """,
+)
\ No newline at end of file


More information about the z3-checkins mailing list