Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    khufu_opinion 0.2.2

    Download button

    No screenshots available
    Downloads: 161  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rocky Burt | More programs
    Other/Proprietary Li... / FREE
    February 21st, 2011, 16:31 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    khufu_opinion description

    Set of paster templates for rapid Pyramid development

    The khufu_opinion project provides a set of paster templates for rapid Pyramid development. It makes several framework choices for the developer which are:

     * Pyramid for the underlying web framework
     o traversal based url routing
     * Jinja2 for the page template language (similar to Django templates)
     * SQLAlchemy for ORM-based relational database persistence

    Setting up a New Project

    Install khufu_opinion into a Python environment (ie virtualenv) with a working Paster. Once this has been done, you can create a new khufu_opinion project by simply running (where Something is the name of your new egg):

    paster create -t khufu_opinion Something

    Once the template egg has been created you should set it up in develop mode to start working on your project.

    cd Something
    python setup.py develop


    Using the New Project

    Command Runner

    By default a new script named something will be created in the bin directory of your python envionment. This script is a command runner that provides the following:

    Commands:
     runserver Run a reloadable development web server.


    Paster

    A development.ini file will be created inside the Something directory. This can be used with the standard paster commands:

    # use builtin paster http server
    paster serve development.ini

    # use the pyramid pshell command
    paster --plugin=pyramid pshell development.ini pyramid-Something


    Deployment with Apache+mod_wsgi

    There is a preconfigured Something.wsgi file generated which is necessary for plugging your app into a mod_wsgi environment.

    A simple apache virtualhost entry will look like this:

    < VirtualHost *:80 >
     ServerName www.something.com

     WSGIScriptAlias / /path/to/Something.wsgi
    < /VirtualHost >


    Developing With the New Project

    Base Framework

    khufu_opinion is based on the Pyramid web application framework. As such, the Pyramid api will always be the go-to api for working with the web application. Please see the Pyramid docs for further details.

    Templating

    Any file ending with the .jinja2 extension located inside the Something/something/templates directory will be rendered using the Jinja2 templating system. This template language is based on the Django templating language.

    khufu_opinion produces two template files by default, one containing the overall layout called, layout.jinja2 and one for the default main page called, main.jinja2.

    Data Access

    All data access is handled by the SQLAlchemy ORM framework which wraps relational databases. Out of the box, any new project created by khufu_opinion will have a SQLAlchemy database session factory setup.

    khufu_opinion puts the orm model classes inside the models.py Python file. The active database session can always be retrieved as the db attribute on the request object.

    Transaction Support

    Transactions are used to ensure all or nothing is performed. With the very useful repoze.tm2 and transaction packages this can be accomplished easily in Pyramid applications.

    khufu_opinion ensures all requests join a new transaction so that if any error/exception occurs, the transaction is automatically rolled back. Any db sessions created via the provided session factory automatically join this transaction and will be rolled back in the event an error occurs.

    Traversal

    The Pyramid web application framework provides a convenient mechanism to traverse an object graph and map that graph to url's. khufu_opinion stores it's traversal mechanism inside of the traversal.py file.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Renamed from RapidGiza to khufu_opinion

      


    TAGS:

    paster templates | Pyramid development | Pyramid | paster | templates

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM