From ba9b0e647bff1bf0c437ab204ddf11783ed698f8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 1 May 2009 10:26:57 +0000 Subject: Merge "c-free" branch to trunk. --- docs/tutorials/lxmlgraph/step01/myapp/__init__.py | 1 - docs/tutorials/lxmlgraph/step01/myapp/configure.zcml | 12 ------------ docs/tutorials/lxmlgraph/step01/myapp/models.py | 18 ------------------ docs/tutorials/lxmlgraph/step01/myapp/views.py | 7 ------- docs/tutorials/lxmlgraph/step01/run.py | 8 -------- 5 files changed, 46 deletions(-) delete mode 100644 docs/tutorials/lxmlgraph/step01/myapp/__init__.py delete mode 100644 docs/tutorials/lxmlgraph/step01/myapp/configure.zcml delete mode 100644 docs/tutorials/lxmlgraph/step01/myapp/models.py delete mode 100644 docs/tutorials/lxmlgraph/step01/myapp/views.py delete mode 100644 docs/tutorials/lxmlgraph/step01/run.py (limited to 'docs/tutorials/lxmlgraph/step01') diff --git a/docs/tutorials/lxmlgraph/step01/myapp/__init__.py b/docs/tutorials/lxmlgraph/step01/myapp/__init__.py deleted file mode 100644 index 792d60054..000000000 --- a/docs/tutorials/lxmlgraph/step01/myapp/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# diff --git a/docs/tutorials/lxmlgraph/step01/myapp/configure.zcml b/docs/tutorials/lxmlgraph/step01/myapp/configure.zcml deleted file mode 100644 index e06023c24..000000000 --- a/docs/tutorials/lxmlgraph/step01/myapp/configure.zcml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/docs/tutorials/lxmlgraph/step01/myapp/models.py b/docs/tutorials/lxmlgraph/step01/myapp/models.py deleted file mode 100644 index 85d603d80..000000000 --- a/docs/tutorials/lxmlgraph/step01/myapp/models.py +++ /dev/null @@ -1,18 +0,0 @@ -from zope.interface import implements -from zope.interface import Attribute -from zope.interface import Interface - -class IMyModel(Interface): - __name__ = Attribute('Name of the model instance') - -class MyModel(dict): - implements(IMyModel) - def __init__(self, name): - self.__name__ = name - -root = MyModel('site') -root['a'] = MyModel('a') -root['b'] = MyModel('b') - -def get_root(environ): - return root diff --git a/docs/tutorials/lxmlgraph/step01/myapp/views.py b/docs/tutorials/lxmlgraph/step01/myapp/views.py deleted file mode 100644 index 13de3ae31..000000000 --- a/docs/tutorials/lxmlgraph/step01/myapp/views.py +++ /dev/null @@ -1,7 +0,0 @@ -from webob import Response - -def my_hello_view(context, request): - response = Response('Hello from %s @ %s' % ( - context.__name__, - request.environ['PATH_INFO'])) - return response diff --git a/docs/tutorials/lxmlgraph/step01/run.py b/docs/tutorials/lxmlgraph/step01/run.py deleted file mode 100644 index 1eac209dc..000000000 --- a/docs/tutorials/lxmlgraph/step01/run.py +++ /dev/null @@ -1,8 +0,0 @@ -from paste import httpserver - -from repoze.bfg import make_app -from myapp.models import get_root -import myapp - -app = make_app(get_root, myapp) -httpserver.serve(app, host='0.0.0.0', port='5432') -- cgit v1.2.3