[Checkins] SVN: Sandbox/darrylcousins/tfws.website/ Trying to tidy up my mess

Darryl Cousins darryl at darrylcousins.net.nz
Sat Feb 9 23:40:32 EST 2008


Log message for revision 83728:
  Trying to tidy up my mess

Changed:
  D   Sandbox/darrylcousins/tfws.website/CHANGES.txt
  D   Sandbox/darrylcousins/tfws.website/INSTALL.txt
  D   Sandbox/darrylcousins/tfws.website/README.txt
  D   Sandbox/darrylcousins/tfws.website/setup.py
  D   Sandbox/darrylcousins/tfws.website/tfws/
  A   Sandbox/darrylcousins/tfws.website/tfws.website/CHANGES.txt
  A   Sandbox/darrylcousins/tfws.website/tfws.website/INSTALL.txt
  A   Sandbox/darrylcousins/tfws.website/tfws.website/README.txt
  A   Sandbox/darrylcousins/tfws.website/tfws.website/bootstrap.py
  A   Sandbox/darrylcousins/tfws.website/tfws.website/buildout.cfg
  A   Sandbox/darrylcousins/tfws.website/tfws.website/setup.py
  A   Sandbox/darrylcousins/tfws.website/tfws.website/tfws/

-=-
Deleted: Sandbox/darrylcousins/tfws.website/CHANGES.txt
===================================================================
--- Sandbox/darrylcousins/tfws.website/CHANGES.txt	2008-02-10 04:37:36 UTC (rev 83727)
+++ Sandbox/darrylcousins/tfws.website/CHANGES.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -1,16 +0,0 @@
-============
-tfws.website
-============
-
-July 29 2007
-------------
-
-* Login and logout working with z3c.authentication.cookie lifetime cookie.
-* Added first simple viewlet for members
-* Added account and account edit view for members
-
-August 15 2007
---------------
-
-* Implemented a selenium server with paste deploy and began suite of tests.
-  

Deleted: Sandbox/darrylcousins/tfws.website/INSTALL.txt
===================================================================
--- Sandbox/darrylcousins/tfws.website/INSTALL.txt	2008-02-10 04:37:36 UTC (rev 83727)
+++ Sandbox/darrylcousins/tfws.website/INSTALL.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -1,71 +0,0 @@
-============
-tfws.website
-============
-
-tfws.website is installed via buildout <http://cheeseshop.python.org/pypi/zc.buildout>.
-
-You may have setuptools already installed for your system Python. In
-that case, you may need to upgrade it first because buildout requires
-a very recent version::
-
-    $ sudo easy_install -U setuptools
-
-If this command fails because easy_install is not available, there is
-a good chance you do not have setuptools available for your system
-Python. If so, there is no problem because setuptools will be
-installed locally by buildout.
-
-Bootstrapping
--------------
-
-Bootstrap the buildout environment::
-
-    $ python bootstrap/bootstrap.py
-
-If you do not have a ~/.buildout/default.cfg I suggest creating it and adding
-the following::
-
-    [buildout]
-    eggs-directory=/path/to/buildout/eggs
-    develop-eggs-directory=/path/to/buildout/develop-eggs
-
-This file is read when buildout is run and will re-use the eggs already
-installed.
-
-and run the buildout command::
-
-    $ bin/buildout [-N]
-    [lots of stuff will be downloaded and installed locally here]
-
-Testing
--------
-
-Test the installation::
-
-   $ bin/test [website]
-
-Because we have additional packages installed as develop eggs
-(z3c.authentication and z3c.resource) the option ``website`` causes only tests
-in the tfws.website package to be run.
-
-Running the selenium tests
---------------------------
-
-Start the selenium application::
-
-    $ bin/paster serve selenium.ini
-
-If you now connect to port 8034 and run the suite of selenium tests. Note that
-the test suite creates and installs a test site to run the tests on (as do the
-functional tests).
-
-Running the website
--------------------
-
-Start the application::
-
-    $ bin/paster serve deploy.ini
-
-If you now connect to port 8080 and log in with username 'tfws',
-password 'tfws'. From there you can add a website.
-

Deleted: Sandbox/darrylcousins/tfws.website/README.txt
===================================================================
--- Sandbox/darrylcousins/tfws.website/README.txt	2008-02-10 04:37:36 UTC (rev 83727)
+++ Sandbox/darrylcousins/tfws.website/README.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -1,15 +0,0 @@
-============
-tfws.website
-============
-
-This website application borrows heavily from z3c.website and other z3c
-packages. It is however in essence a `Grok`_ application and uses most or all
-of the `Mars`_ packages for component definitions and registration.
-
-Although the intention is to use it also in production the focus of development
-is to produce a demo application for the `Mars`_ packages. It is the second demo
-application, the first being `mars.formdemo`_.
-
-.. _`Grok`: http://grok.zope.org/
-.. _`Mars`: http://www.tfws.org.nz/mars
-.. _`mars.formdemo`: http://svn.zope.org/Sandbox/darrylcousins/mars.formdemo

Deleted: Sandbox/darrylcousins/tfws.website/setup.py
===================================================================
--- Sandbox/darrylcousins/tfws.website/setup.py	2008-02-10 04:37:36 UTC (rev 83727)
+++ Sandbox/darrylcousins/tfws.website/setup.py	2008-02-10 04:40:31 UTC (rev 83728)
@@ -1,69 +0,0 @@
-import os
-from setuptools import setup, find_packages
-
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-setup(name='tfws.website',
-      version='0.1',
-      author='Darryl Cousins',
-      author_email='darryl.cousins at tfws.org.nz',
-      url='http://www.tfws.org.nz/mars',
-      description="""\
-This package uses ``martian`` and ``grok`` to build a simple web
-application on the ``zope3`` framework.""",
-      long_description=(
-        read('tfws/website/README.txt') +
-        read('CHANGES.txt')
-        ),
-      classifiers = ['Development Status :: 1 - Planning',
-                    'Intended Audience :: Developers',
-                    'License :: Other/Proprietary License',
-                    'Programming Language :: Python',
-                    'Operating System :: OS Independent',
-                    'Topic :: Software Development :: Build Tools',
-                    'Framework :: Zope3',
-                    ],
-      packages=find_packages(),
-      namespace_packages=['tfws'],
-      include_package_data=True,
-      zip_safe=True,
-      install_requires=['setuptools',
-                        'lxml',
-                        'grok',
-                        'zope.app.file',
-                        'z3c.etestbrowser',
-                        'z3c.breadcrumb',
-                        'z3c.configurator',
-                        'z3c.form',
-                        'z3c.formjs',
-                        'z3c.formui',
-                        'z3c.layer',
-                        'z3c.pagelet',
-                        'z3c.schema',
-                        'z3c.template',
-                        'z3c.testing',
-                        'z3c.viewlet',
-                        'z3c.zrtresource',
-                        'z3c.formdemo',
-                        'zc.resourcelibrary',
-                        'zc.table',
-                        'jquery.javascript',
-                        'jquery.layer',
-                        # Add extra requirements here
-                        'mars.adapter',
-                        'mars.contentprovider',
-                        'mars.form',
-                        'mars.layer',
-                        'mars.macro',
-                        'mars.resource',
-                        'mars.template',
-                        'mars.view',
-                        'mars.viewlet',
-
-                        ],
-      entry_points="""
-      [paste.app_factory]
-      main = tfws.website.application:application_factory
-      """,
-      )

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/CHANGES.txt (from rev 83724, Sandbox/darrylcousins/tfws.website/CHANGES.txt)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/CHANGES.txt	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/CHANGES.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,16 @@
+============
+tfws.website
+============
+
+July 29 2007
+------------
+
+* Login and logout working with z3c.authentication.cookie lifetime cookie.
+* Added first simple viewlet for members
+* Added account and account edit view for members
+
+August 15 2007
+--------------
+
+* Implemented a selenium server with paste deploy and began suite of tests.
+  

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/INSTALL.txt (from rev 83724, Sandbox/darrylcousins/tfws.website/INSTALL.txt)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/INSTALL.txt	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/INSTALL.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,71 @@
+============
+tfws.website
+============
+
+tfws.website is installed via buildout <http://cheeseshop.python.org/pypi/zc.buildout>.
+
+You may have setuptools already installed for your system Python. In
+that case, you may need to upgrade it first because buildout requires
+a very recent version::
+
+    $ sudo easy_install -U setuptools
+
+If this command fails because easy_install is not available, there is
+a good chance you do not have setuptools available for your system
+Python. If so, there is no problem because setuptools will be
+installed locally by buildout.
+
+Bootstrapping
+-------------
+
+Bootstrap the buildout environment::
+
+    $ python bootstrap/bootstrap.py
+
+If you do not have a ~/.buildout/default.cfg I suggest creating it and adding
+the following::
+
+    [buildout]
+    eggs-directory=/path/to/buildout/eggs
+    develop-eggs-directory=/path/to/buildout/develop-eggs
+
+This file is read when buildout is run and will re-use the eggs already
+installed.
+
+and run the buildout command::
+
+    $ bin/buildout [-N]
+    [lots of stuff will be downloaded and installed locally here]
+
+Testing
+-------
+
+Test the installation::
+
+   $ bin/test [website]
+
+Because we have additional packages installed as develop eggs
+(z3c.authentication and z3c.resource) the option ``website`` causes only tests
+in the tfws.website package to be run.
+
+Running the selenium tests
+--------------------------
+
+Start the selenium application::
+
+    $ bin/paster serve selenium.ini
+
+If you now connect to port 8034 and run the suite of selenium tests. Note that
+the test suite creates and installs a test site to run the tests on (as do the
+functional tests).
+
+Running the website
+-------------------
+
+Start the application::
+
+    $ bin/paster serve deploy.ini
+
+If you now connect to port 8080 and log in with username 'tfws',
+password 'tfws'. From there you can add a website.
+

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/README.txt (from rev 83724, Sandbox/darrylcousins/tfws.website/README.txt)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/README.txt	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/README.txt	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,15 @@
+============
+tfws.website
+============
+
+This website application borrows heavily from z3c.website and other z3c
+packages. It is however in essence a `Grok`_ application and uses most or all
+of the `Mars`_ packages for component definitions and registration.
+
+Although the intention is to use it also in production the focus of development
+is to produce a demo application for the `Mars`_ packages. It is the second demo
+application, the first being `mars.formdemo`_.
+
+.. _`Grok`: http://grok.zope.org/
+.. _`Mars`: http://www.tfws.org.nz/mars
+.. _`mars.formdemo`: http://svn.zope.org/Sandbox/darrylcousins/mars.formdemo

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/bootstrap.py (from rev 83724, Sandbox/darrylcousins/tfws.website/bootstrap.py)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/bootstrap.py	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/bootstrap.py	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,55 @@
+##############################################################################
+#
+# 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$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+try:
+    import pkg_resources
+except ImportError:
+    ez = {}
+    exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                         ).read() in ez
+    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/buildout.cfg (from rev 83724, Sandbox/darrylcousins/tfws.website/mars.adapter/buildout.cfg)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/buildout.cfg	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/buildout.cfg	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,13 @@
+[buildout]
+develop = .
+parts = test
+extends = http://download.zope.org/zope3.4/versions-3.4.0c1.cfg
+versions = versions
+
+[versions]
+grok = 0.12dev
+martian = 0.9.3
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = mars.adapter [test]

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/setup.py (from rev 83726, Sandbox/darrylcousins/tfws.website/setup.py)
===================================================================
--- Sandbox/darrylcousins/tfws.website/tfws.website/setup.py	                        (rev 0)
+++ Sandbox/darrylcousins/tfws.website/tfws.website/setup.py	2008-02-10 04:40:31 UTC (rev 83728)
@@ -0,0 +1,69 @@
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name='tfws.website',
+      version='0.1',
+      author='Darryl Cousins',
+      author_email='darryl.cousins at tfws.org.nz',
+      url='http://www.tfws.org.nz/mars',
+      description="""\
+This package uses ``martian`` and ``grok`` to build a simple web
+application on the ``zope3`` framework.""",
+      long_description=(
+        read('tfws/website/README.txt') +
+        read('CHANGES.txt')
+        ),
+      classifiers = ['Development Status :: 1 - Planning',
+                    'Intended Audience :: Developers',
+                    'License :: Other/Proprietary License',
+                    'Programming Language :: Python',
+                    'Operating System :: OS Independent',
+                    'Topic :: Software Development :: Build Tools',
+                    'Framework :: Zope3',
+                    ],
+      packages=find_packages(),
+      namespace_packages=['tfws'],
+      include_package_data=True,
+      zip_safe=True,
+      install_requires=['setuptools',
+                        'lxml',
+                        'grok',
+                        'zope.app.file',
+                        'z3c.etestbrowser',
+                        'z3c.breadcrumb',
+                        'z3c.configurator',
+                        'z3c.form',
+                        'z3c.formjs',
+                        'z3c.formui',
+                        'z3c.layer',
+                        'z3c.pagelet',
+                        'z3c.schema',
+                        'z3c.template',
+                        'z3c.testing',
+                        'z3c.viewlet',
+                        'z3c.zrtresource',
+                        'z3c.formdemo',
+                        'zc.resourcelibrary',
+                        'zc.table',
+                        'jquery.javascript',
+                        'jquery.layer',
+                        # Add extra requirements here
+                        'mars.adapter',
+                        'mars.contentprovider',
+                        'mars.form',
+                        'mars.layer',
+                        'mars.macro',
+                        'mars.resource',
+                        'mars.template',
+                        'mars.view',
+                        'mars.viewlet',
+
+                        ],
+      entry_points="""
+      [paste.app_factory]
+      main = tfws.website.application:application_factory
+      """,
+      )

Copied: Sandbox/darrylcousins/tfws.website/tfws.website/tfws (from rev 83725, Sandbox/darrylcousins/tfws.website/tfws)



More information about the Checkins mailing list