Commits

Anonymous committed 16c7188

Snapshot of webfaction docs and cgi script

Comments (0)

Files changed (5)

docs/webfaction.txt

+==================================
+ Installing Slipper on Webfaction
+==================================
+
+
+This HOWTO assumes that you are logged into your `Webfaction
+<http://webfaction.com>`__ account.
+
+
+Install virtualenv
+------------------
+
+`virtualenv <http://pypi.python.org/pypi/virtualenv/>`__ is a wonderful tool
+for isolating Python instances and dependencies.
+
+Install it for Python 2.5::
+    
+    $ easy_install-2.5 -d $HOME/lib/python2.5 -s $HOME/bin virtualenv
+
+
+Create an environment for slipper
+---------------------------------
+
+Creating a new environment is easy::
+    
+    $ virtualenv slipper.env
+
+
+Install slipper
+---------------
+
+Install or upgrade it directly from the repository::
+    
+    $ slipper.env/bin/easy_install -U \
+      http://getschevo.org/hg/slipper-open/archive/tip.tar.gz
+
+.. note::
+
+    Any commands run within the environment's `bin` directory run within the
+    virtual environment.
+
+
+Set up objects in Webfaction control panel
+------------------------------------------
+
+Create a new webapp to host your slipper configuration files.
+
+
+
+[repos]
+
     zip_safe=False,
     install_requires=[
         'docutils >= 0.4',
-        # -*- Extra requirements: -*-
     ],
     entry_points="""
     # -*- Entry points: -*-
+    [console_scripts]
+    slipper_cgi = slipper.script:cgi
     """,
     )

slipper/script.py

+from ConfigParser import ConfigParser
+import sys
+
+
+USAGE = """\
+Please visit http://getschevo.org/slipper/usage.html
+for usage information.
+"""
+
+
+def cgi():
+    # Get the name of the configuration file (first and only argument to the
+    # script).
+    config_name = sys.argv[1]
+    # Read the configuration.
+