Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install genshi-view

How to install genshi_view

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install genshi-view
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.2 Available View build log
Windows (64-bit)
0.3.2 Available View build log
Mac OS X (10.5+)
0.3.2 Available View build log
Linux (32-bit)
0.3.2 Available View build log
Linux (64-bit)
0.3.2 Available View build log
Lastest release
version 0.3.2 on Jan 5th, 2011

from start to editing code

  1. Install virtualenv [Optional but highly recommended]:

    System Message: WARNING/2 (<string>, line 8)

    Literal block expected; none found.

easy_install virtualenv
  1. Make a virtualenv:

    System Message: WARNING/2 (<string>, line 12)

    Literal block expected; none found.

virtualenv myproject
  1. Install genshi_view:

    System Message: WARNING/2 (<string>, line 16)

    Literal block expected; none found.

cd myproject . bin/activate mkdir src cd src hg clone http://k0s.org/hg/genshi_view # or easy_install genshi_view cd genshi_view python setup.py develop cd ..

3. Instantitate a template. genshi_view is a pastescript template that will get you a hello world application OOTB:

paster create -t genshi_view your_project_name

Answer the questions it asks you regarding the template variables.

  1. Serve your application to see that it works:

    System Message: WARNING/2 (<string>, line 34)

    Literal block expected; none found.

cd your_project_name paster serve your_project_name.ini

Navigate to the URL that paster displays

5. You're done! Helloworld works. Now you just have to edit the source code:

  • templates are in your_project_name/templates; there is one by default
  • static resources are in your_project_name/static
  • the request dispatcher is at your_project_name/dispatcher
  • the request handlers are at your_project_name/handlers; if you add more, don't forget to add them to dipatcher.py's imports and to self.handlers in Dispatcher's __init__ function

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:6

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.