[Checkins] SVN: megrok.trails/ Made a copy of the "megrok" Skeleton in order to start my

Brandon Rhodes brandon at rhodesmill.org
Mon Oct 8 23:46:44 EDT 2007


Log message for revision 80732:
  Made a copy of the "megrok" Skeleton in order to start my
  "megrok.trails" project, which as of this commit is an empty package
  that successfully builds out and runs its empty test suite.
  

Changed:
  A   megrok.trails/
  U   megrok.trails/trunk/README.txt
  U   megrok.trails/trunk/buildout.cfg
  U   megrok.trails/trunk/setup.py
  A   megrok.trails/trunk/src/megrok/trails/
  A   megrok.trails/trunk/src/megrok/trails/__init__.py

-=-
Copied: megrok.trails (from rev 80731, Skeletons/megrok)

Modified: megrok.trails/trunk/README.txt
===================================================================
--- Skeletons/megrok/trunk/README.txt	2007-10-09 03:24:55 UTC (rev 80731)
+++ megrok.trails/trunk/README.txt	2007-10-09 03:46:44 UTC (rev 80732)
@@ -1,4 +1,21 @@
-Once you have copied this template to your own ``megrok`` directory,
-replace the contents of this ``README.txt`` file with a description of
-your project.  Also, place your project name in ``setup.py`` and in
-``buildout.cfg`` wherever you see the phrase ``PROJECT_NAME``.
+
+===========
+Grok Trails
+===========
+
+Cave men often hunted by following animal trails through the woods.
+They could also follow trails to important natural resources;
+the very first human migrations may have been along the trails
+left by herds of migratory animals visiting natural salt deposits.
+
+The Trails package allows you to define the URLs your users travel
+in order to visit objects on your site, and also provides the means
+by which Grok can determine what the URL for a given object should be.
+Trails looks something like this when in use:
+
+class MyTrails(megrok.trails.TrailHead):
+    grok.context(MyApp)
+    trails = [
+        Trail('/person/:id', Person),
+        Trail('/account/:username', Account),
+        ]

Modified: megrok.trails/trunk/buildout.cfg
===================================================================
--- Skeletons/megrok/trunk/buildout.cfg	2007-10-09 03:24:55 UTC (rev 80731)
+++ megrok.trails/trunk/buildout.cfg	2007-10-09 03:46:44 UTC (rev 80732)
@@ -6,7 +6,7 @@
 
 [app]
 recipe = zc.zope3recipes>=0.5.3:application
-eggs = megrok.PROJECT_NAME
+eggs = megrok.trails
 site.zcml = <include package="megrok.genshi" />
             <include package="zope.app.twisted" />
 
@@ -43,5 +43,5 @@
 
 [test]
 recipe = zc.recipe.testrunner
-eggs = megrok.PROJECT_NAME
+eggs = megrok.trails
 defaults = ['--tests-pattern', '^f?tests$', '-v']

Modified: megrok.trails/trunk/setup.py
===================================================================
--- Skeletons/megrok/trunk/setup.py	2007-10-09 03:24:55 UTC (rev 80731)
+++ megrok.trails/trunk/setup.py	2007-10-09 03:46:44 UTC (rev 80732)
@@ -2,7 +2,7 @@
 
 version = '0.0'
 
-setup(name='megrok.PROJECT_NAME',
+setup(name='megrok.trails',
       version=version,
       description="",
       long_description="""\

Added: megrok.trails/trunk/src/megrok/trails/__init__.py
===================================================================
--- megrok.trails/trunk/src/megrok/trails/__init__.py	                        (rev 0)
+++ megrok.trails/trunk/src/megrok/trails/__init__.py	2007-10-09 03:46:44 UTC (rev 80732)
@@ -0,0 +1 @@
+# Trails!



More information about the Checkins mailing list