Developing RESTful Web Applications with TurboGears The API docs describe each of the supported controller functions in brief, so use
that if you already understand REST and need a quick way to start using it, this ...
TurboGearsTurboGears 2 is built on top of the experience of several next generation web
frameworks including TurboGears 1 (of course), Django, and Rails. All of these ... Documentation - Features - Who's Using It? - The Cogbin
A Brief Introduction to Kid Templates — TurboGears 1.0 Kid is a template languages that provides inline code capability within a markup
... This example (straight from Kid's documentation) shows what Kid is like:.
Generating RSS and Atom Feeds — TurboGears 2.0 documentationGenerating RSS and Atom Feeds ¶. The webhelpers. feedgenerator module
provides an API for programmatically generating syndication feeds from a Pylons
...
The TurboGears 2 Wiki Tutorial — TurboGears 2.0 documentationThis tutorial will show you how to create a simple wiki with TurboGears 2. ..... This
calls the transaction manager which helps us to support cross database ..... try to
edit a new page with a different name it will fail, which we'll fix in a later section.
TurboGears Installation on Ubuntu Linux — TurboGears 1.0 We provide binary eggs for Linux for all C-extensions used, but when a new
version of a C-extension is released, having the compiler chain installed ensures
...
Writing Controller Methods — TurboGears 2.1 documentationURLs not explicitly mapped to other methods of the controller will generally be
directed to the method named default(). With the above example, requesting any
...
tgext.geo TileCache Tutorial — TurboGears 2.0 documentationTileCache is a python WSGI (Web Services Gateway Interface) App that ...
template code for index method to create an OpenLayers Map that will render the
tiles.
In this tutorial we will create a TG2 app and use tgext.geo extension to mount the
... the TileCache definition above can be rendered in an OpenLayers Map as a ...
Making HTTPS Redirects Work With a Reverse Proxy — TurboGears The Problem¶. One common setup is to have a reverse proxy (like Pound,
Lighttpd, or Apache) sit in front of CherryPy and handle requests. If you want to
handle ...
Using Cookies in TurboGears — TurboGears 1.0 documentationSetting a Cookie ; Reading a Cookie ; Deleting a Cookie ; Accessing Cookies in ...
TurboGears uses the CherryPy method of setting and reading cookies , which is ...
JQuery FlexiGrid Widget — TurboGears 2.0 documentationThese are referenced distinctly on the form page by the id. This is also the
element id of the flexigrid table and all jQuery operations reference the grid using
this.
TileCache is a python WSGI (Web Services Gateway Interface) App that
implements the WMS-C (Web Map Service - Cached) spec for generation and
serving of ...
If you want to handle both http and https protocols, you set up your reverse proxy
to deal with the secure communications, and then pass types of both types of ...
TurboGears Administration System — TurboGears 2.1 documentationThe TurboGears Admin is a powerful system to create automated CRUD for your
... to create a new AdminController for each database you wish to express.
TurboGears 1.0 FAQ — TurboGears 1.0 documentationHow does TurboGears compare to Ruby on Rails/ Django / Pylons /etc. .... You can
use the recipe explained in this mailing list post: ... need to carry out step 3. from
above, so that the library modules and scripts from the environment are used.
One common setup is to have a reverse proxy (like Pound, Lighttpd, ... Now, we
create a special CherryPy filter to search for the “X-Forwarded- Ssl ” header.
Pound is a fairly easy to configure reverse proxy that we can use as an example .
In the Pound configuration, we add a custom header called 'X-Forwarded- Ssl '.
It is assumed that a fresh virtualenv has been created and TG2 installed ... For
example, the following lines should be added in order to have a Mapnik Tiles ...
Sample Application Using Genshi And Elixir — TurboGears 1.1 Here is what examples of usage you can find here. Input forms; Table reports ;
Clickable , dynamically-generated table cells - both <th/> and <td/>; Standard ...
Dynamically Modifying a Form's Widgets With Ajax — TurboGears Dynamically Modifying a Form's Widgets With Ajax ¶. Sometimes there is the need
to dynamically modify one widget in a form based upon what the user has ...
Virtual Host — TurboGears 1.0 documentationAs known as “Virtual Host ”, it is possible to achieve this with TurboGears. As far
as TurboGears based on cherrypy , what you need is to use a cherrypy filter ...
The Web Framework that scales with you. — TurboGears2 Website All of these frameworks had limitations that frustrated us, and TG2 was built as an
answer to that ... TurboGears 2 works on Python 2.6, 2.7, 3.2, 3.3 and 3.4.
A complete web framework integrating several Python projects: SQLObject,
Cherrypy, Kid, and Mochikit. Code, documentation, examples, extensions, and ...
A sample tilecache .cfg file can be downloaded from ... data with Mapnik [osm]
type=Mapnik mapfile =/home/user/osm-mapnik/osm.xml spherical_mercator=true
...
Simple Widget Form Tutorial — TurboGears 2.1 documentationThis tutorial introduces you to the widget form system by building a simple
application ... Widgets make form creation really easy, because they address all
the ...
TurboGears 2 Configuration — TurboGears 2.1 documentationAll of this is similar to Pylons and to TurboGears 1, but slightly different from both.
... receive any error reports #email_to = you@yourdomain.com smtp_server =
localhost error_email_from = paste@localhost .... Authentication Character Set¶.
File Upload Tutorial — TurboGears 1.0 documentationHere is what this tutorial is all about: file uploads . After completing the above
tutorial , I thought, 'gee, it'd be cool if I could upload files to the wiki'. And the way ...
The Problem¶. One common setup is to have a reverse proxy (like Pound ,
Lighttpd, or Apache) sit in front of CherryPy and handle requests. If you want to
handle ...
Developing RESTful Web Applications with TurboGears¶. If you are developing
an application where you want to expose your database using a stateless API, ...
The Problem¶. One common setup is to have a reverse proxy (like Pound,
Lighttpd , or Apache) sit in front of CherryPy and handle requests. If you want to
handle ...
TileCache is a python WSGI (Web Services Gateway Interface) App that
implements the WMS - C (Web Map Service - Cached) spec for generation and
serving of ...
Running TurboGears 2.1 behind Apache with Mod Proxy Running TurboGears 2.1 behind Apache with Mod Proxy ¶. By running your
TurboGears 2.1 application behind Apache you can take advantage of Apache's
...
Load Balancing TG with NGINX — TurboGears 2.0 documentationHere is a sample configuration that not only proxies to your TurboGears
application, but serves static content with Nginx and load balances between two
...
You will notice that the quickstart created a directory without spaces for ..... This
calls the transaction manager which helps us to support cross database ...
Pound is a fairly easy to configure reverse proxy that we can use as an example.
In the Pound configuration, we add a custom header called 'X-Forwarded- Ssl '.
All of these frameworks had limitations that frustrated us, and TG2 was built ... (
tg2env)$ cd example/ (tg2env)$ python setup.py develop (tg2env)$ gearbox
serve.
JQuery Flot Widget — TurboGears 2.1 documentationThe FlotWidget class of tw. jquery makes it easy to use the powerful Flot library ...
Note that to simplify the internal logic in Flot both the x and y values must be ...
This is a follow up to the existing 20 minute wiki tutorial . .... byFilename(
upload_file.filename) turbogears. flash ( "File already uploaded : %s is already at
%s" ...
File Upload Progress Bar — TurboGears 1.0 documentationThis document describes how to add a File Upload Progress Bar to a project
using a CherryPy filter and some Javascript. The goal is that when a user submits
a ...
pylons .configuration – Configuration object and defaults setup from pylons import config template_paths = config[' pylons .paths'][' templates '] ...
Several options are expected to be set for a Pylons web application. They will be
...
Adding OpenID Support — TurboGears 2.0 documentationOpenID is a mechanism whereby you may delegate authentication of the user's
.... identity if available""" key = identity. get ('repoze.who.plugins. openid .userid') if ...
The default templates used by TurboGears specify utf-8 as a charset. ... Therefore
we used the AddDefaultCharset utf - 8 directive above to override the Apache ...
Apache Web Server — TurboGears 2.1 documentationApache is part of the Standard Deployment Pattern for TurboGears 2.1. ...
Similarly, Apache will tend to be used to provide the SSL encryption layer for ...
Apache you can take advantage of Apache's HTTPS abilities or have it serve
your static files, but keep your Paste server independent of the Apache server.
Running TurboGears Behind Apache as a Reverse Proxy On the other hand, the CherryPy server is written in Python and therefore cannot
... Here is how to configure Apache 2 as a reverse proxy for your TurboGears ...
Intro to TurboGears for CakePHP developers — TurboGears 2.0 This document serves as an intro to TurboGears for those migrating from
CakePHP (and possibly other PHP frameworks). We will assume some familiarity
with ...
Load Balancing TG with NGINX . Using Nginx as a Reverse Proxy; References.
Nginx is a fast and light HTTP server, reverse proxy, load balancer (and more).
Intro to TurboGears for CakePHP developers — TurboGears 2.1 Of course, the largest difference between CakePHP and TurboGears is the core
language. ... ORM: Active Record Pattern, SQLAlchemy (Data Mapper Pattern).
AutoGenerating Model Code with SQLAutocode — TurboGears 2.1 SQLAlchemy is an extremely powerful tool, but unless you already know how to
create table and model code, getting started can be a bit daunting. Luckily ...
Widget Form Validation with Schemas — TurboGears 1.0 Simple Validation Schemas; Compound Validators; Chained Validators; Using ...
In the simple form widget tutorial you saw how to create a simple form with ...
Adding OpenID Support — TurboGears 2.1 documentationThis allows users to use a single- sign -on service, such as their web-mail provider
to ... users might be wary of tarnishing their main email address's “good name ”, ...
SQLObject vs SQLAlchemy — TurboGears 1.0 documentationSQLObject vs SQLAlchemy ¶. Contents. SQLObject vs SQLAlchemy . Introduction;
What is an ORM? Feature Comparison; Stability; Project Status; Documentation ...
Pagination Quickstart For Turbogears2 — TurboGears 2.0 With a model and some data set up, add webhelpers.paginate to your controller,
and ... Create a file pagination . css in your public/css/ directory with the following ...
Writing Controller Methods — TurboGears 2.0 documentationThe next thing to notice is that we are importing expose from tg. ...
internationalization, use the HTTP redirect function, validate inputs/outputs, or
use the models .
The FlotWidget class of tw. jquery makes it easy to use the powerful Flot .... You
can try this in a small example project “ flotsample ” to draw some example data.
The AjaxForm widget supports the following parameters: ... The submit action of
this form triggers ... target This is the id of the element where the output of the.
Nginx is a fast and light HTTP server, reverse proxy, load balancer (and more). ...
It's pretty simple to get TurboGears set up behind a Nginx server so that it ...
OpenID is a mechanism whereby you may delegate authentication of the user's
.... We need to alter our who.ini to make use of the various OpenID components.
TileCache is a python WSGI (Web Services Gateway Interface) App that
implements the WMS-C (Web ... Start the server and point your browser to the
above url.
With a model and some data set up, add webhelpers. paginate to your controller,
and ... Create a file pagination . css in your public/ css / directory with the following ...
Load Balancing TG with NGINX — TurboGears 2.1 documentationLoad Balancing TG with NGINX ¶. Contents. Load Balancing TG with NGINX .
Using Nginx as a Reverse Proxy; References. Nginx is a fast and light HTTP
server, ...
Generating RSS and Atom Feeds — TurboGears 2.1 documentationThe feed generator is intended for use in controllers, and generates an output
stream. Currently the following feeds can be created by using the appropriate ...
tg- admin command line tool reference — TurboGears 1.0 The tg- admin command line tool provides commands for working with
TurboGears .... Running tg- admin sql is equivalent to sqlobject - admin , but the tg-
admin sql ...
tgext. geo : Geographic Extensions for TurboGears — TurboGears 2.1 Several server side GIS tools already exist in the python world and tgext.geo ...
FeatureServer is a GIS server that supports publishing of GIS data from multiple
datasources including GeoAlchemy. ... MapFish is a pylons based GIS server.
FormEncode @ validate , and TurboGears Validation — TurboGears Validating arguments (without form widgets)¶. When not using forms, the ... See
the FormEncode documentation for how this is done. You can also compose ...
Reflecting your database tables; Reflecting the Database Declaratively ... [
options, ] Generates Python source code for a given database schema . ....
Declarative generation will actually give you an interactive prompt if you set the -
n option.
The tiles accessible through the TileCache definition above can be rendered in
an OpenLayers Map as a WMS layer. Modify the index template to add the ...
The AjaxForm widget supports the following parameters: ... from formencode
import validators from tw.forms.fields import TextField, TextArea, CheckBox from ...
This allows users to use a single-sign-on service, such as their web-mail provider
to authenticate at your site. ... Auto- registration on OpenID Authentication¶.
Using JavaScript and CSS with Widgets — TurboGears 1.0 This document describes how to use JavaScript and CSS with TurboGears
widgets . If you haven't done so already, you might want to read the simple form ...
Quickstarting A TurboGears 2.1 Project — TurboGears 2.0 The quickstart template has a few built in dependencies, and as you add new
python libraries to your application's stack, you'll want to add them here too.
Simple Widget Form Tutorial — TurboGears 2.0 documentationThis tutorial introduces you to the widget form system by building a simple
application ... The comments form itself requires both a name, an email address
and a ...