[Checkins] SVN: traject/trunk/ Release preparations.
Martijn Faassen
faassen at startifact.com
Mon Nov 16 06:44:53 EST 2009
Log message for revision 105698:
Release preparations.
Changed:
A traject/trunk/CHANGES.txt
U traject/trunk/setup.py
U traject/trunk/src/traject/traject.txt
-=-
Added: traject/trunk/CHANGES.txt
===================================================================
--- traject/trunk/CHANGES.txt (rev 0)
+++ traject/trunk/CHANGES.txt 2009-11-16 11:44:53 UTC (rev 105698)
@@ -0,0 +1,8 @@
+CHANGES
+*******
+
+0.9 (unreleased)
+================
+
+* Initial public release.
+
Modified: traject/trunk/setup.py
===================================================================
--- traject/trunk/setup.py 2009-11-16 11:38:34 UTC (rev 105697)
+++ traject/trunk/setup.py 2009-11-16 11:44:53 UTC (rev 105698)
@@ -1,20 +1,26 @@
import os
from setuptools import setup, find_packages
-version = '0.1dev'
-
def read(*filenames):
return open(os.path.join(os.path.dirname(__file__), *filenames)).read()
+long_description = (
+ read('src', 'traject', 'traject.txt')
+ + '\n' +
+ read('CHANGES.txt')
+ + '\n' +
+ 'Download\n'
+ '********\n'
+ )
+
setup(name='traject',
- version=version,
+ version='0.9dev',
description="A URL dispatch to object system that combines aspects of routing and traversal.",
- # long_description=read('README.txt'),
+ long_description=long_description,
# Use classifiers that are already listed at:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
- classifiers=['Development Status :: 5 - Production/Stable',
+ classifiers=['Development Status :: 4 - Beta',
'Environment :: Web Environment',
- 'Framework :: Zope3',
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Operating System :: OS Independent',
Modified: traject/trunk/src/traject/traject.txt
===================================================================
--- traject/trunk/src/traject/traject.txt 2009-11-16 11:38:34 UTC (rev 105697)
+++ traject/trunk/src/traject/traject.txt 2009-11-16 11:44:53 UTC (rev 105698)
@@ -1,8 +1,8 @@
Traject
-=======
+*******
Introduction
-------------
+============
In web application construction there are two main ways to publish
objects to the web: routing and traversal. Both are a form of URL
@@ -110,7 +110,7 @@
some difficulty.
URL patterns
-------------
+============
Let's consider an URL pattern string that is a series of steps
separated by slashes::
@@ -143,7 +143,7 @@
ParseError: URL pattern contains multiple variables with name: a
Registering patterns
---------------------
+====================
In Traject, the resolution of a URL path results in a model. This
model can then in turn have views registered for it that allow this
@@ -207,7 +207,7 @@
>>> patterns.register(Root, pattern_str, factory)
Resolving a path
-----------------
+================
We are ready to resolve paths. A path is part of a URL such as
``foo/bar/baz``. It looks very much like a pattern, but all the
@@ -257,7 +257,7 @@
<Employee 1 2>
Locations
----------
+=========
Traject supports the notion of locations. After we find a model, the
model receive two special attributes::
@@ -299,7 +299,7 @@
until the root.
Consuming a path
-----------------
+================
In a mixed traject/traversal environment, for instance where view
lookup is done by traversal, it can be useful to be able to resolve a
@@ -360,7 +360,7 @@
True
Giving a model its location
----------------------------
+===========================
Models are automatically given their location after traversal. There
is however another case where giving an object a location can be
@@ -428,7 +428,7 @@
True
A global patterns registry
---------------------------
+==========================
Since the patterns registry is clever enough to distinguish between
roots, in many scenarios only a single, global ``Patterns`` registry
More information about the checkins
mailing list