Pylons is becoming Pyramid which is based on repoze.bfg framework. Good to know if one of the larger frameworks are needed in the future.
pyramid python - Google Search
Python Package Index : pyramid 1.0a1
The Pylons Project Documentation — The Pylons Project Documentation v0.0
The Pyramid Web Application Development Framework — The Pyramid Web Application Development Framework v1.0a9
Installing Pyramid — The Pyramid Web Application Development Framework v1.0a9
Running Pyramid on Google’s App Engine — The Pyramid Web Application Development Framework v1.0a9
Log in to your Bitbucket Account
see also python/templates.txt
if using the site templates frequently
(and once they stabalize)
would be nice to have a paster
paster serve --reload development.ini
view in firefox:
| http://localhost:5000/
if no controller has been created, will get a 404
remove public index.html (otherwise it will be default)
cd (package)/public
#rm index.html bg.png pylons-logo.gif
hg rm personnel/public/bg.png
hg rm personnel/public/pylons-logo.gif
hg rm personnel/public/index.html
#make images and css directories in public:
cp -R /c/external/sites/charlesbrandt.com/templates/pylons/public/css public/
#import other default template files:
cp -R /c/external/sites/charlesbrandt.com/templates/pylons/templates/* templates/
cp -R /c/external/sites/charlesbrandt.com/templates/pylons/controllers/* controllers/
#be sure to choose if you want the sqlalchemy version (model-sa) or non-sa:
cp /c/external/sites/charlesbrandt.com/templates/pylons/model/* model/
update the imports in the controllers you plan to use
update lib/helpers.py to import webhelpers
cp /c/external/sites/charlesbrandt.com/templates/pylons/lib/* lib/
sudo easy_install virtualenv
: reference
Mako Documentation
Mako Documentation
: mako.txt
make sure model files have been created
cp ../personnel-try1/personnel/model/__init__.py personnel/model/
paster setup-app development.ini
#make sure development.ini is using an open port:
vi development.ini
virtualenv --no-site-packages personnel-virtual
cd personnel-virtual
source bin/activate
easy_install pylons
easy_install formalchemy
: form_alchemy.txt
formalchemy - Google Code
formalchemy.forms â Form generation â FormAlchemy v1.2 documentation
Pylons integration â FormAlchemy v1.2 documentation
formalchemy.forms â Form generation â FormAlchemy v1.2 documentation
formalchemy.tables â Rendering collections â FormAlchemy v1.2 documentation
FormAlchemy | Google Groups
Mapper Configuration â SQLAlchemy 0.5.3 Documentation
paster create -t pylons_fa
cd personnel
hg init
cp ../.hgignore .
hg add
hg ci -m "new repo for new project"
toscawidgets - Google Search
ToscaWidgets: Test Driven Modular Ajax - PyCon 2009 - Chicago - A Conference for the Python Community
ToscaWidgets
Tutorials w.forms v0.9.3dev-20090212 documentation
Pylons oscaWidgets v0.9.5dev-20090212 documentation
Building a Form with tw.forms w.forms v0.9.3dev-20090212 documentation
Using tw.forms with Pylons. Part 1 w.forms v0.9.3dev-20090212 documentation
SQLAlchemy & Elixir w.forms v0.9.3dev-20090212 documentation
ToscaWidgets Cookbook G2 v2.0b6 documentation
Adding Captcha to your Form G2 v2.0b6 documentation
reCAPTCHA: Stop Spam, Read Books
OpenLayers Map Widget G2 v2.0b6 documentation
ToscaWidgets - Documentation
Welcome to tw.dynformsdocumentation! w.dynforms v0.9.0 documentation
Tutorial w.dynforms v0.9.0 documentation
sqlalchemy-migrate - Google Code
miruku rac
miruku vs sqlalchemy-migrate - Google Search
urssus - Google Code
Lateral Opinion
rawdog
WidgetBrowserdocumentation idgetBrowser v0.1 documentation
Installing the WidgetBrowser idgetBrowser v0.1 documentation
Using the WidgetBrowser idgetBrowser v0.1 documentation
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
tw.forms.fields w.forms v0.9.3dev-20090212 documentation
Building a Form with tw.forms w.forms v0.9.3dev-20090212 documentation
SQLAlchemy & Elixir w.forms v0.9.3dev-20090212 documentation
FAQ oscaWidgets rac w.forms
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
Raw WSGI oscaWidgets v0.9.5dev-20090212 documentation
tw.api oscaWidgets v0.9.5dev-20090212 documentation
toscawidgets date field - Google Search
Using Tosc
django tosca widgets - Google Search
On form libraries
techspot.zzzeek.org Blog Archive Better Form Generation with Mako and Pylons
ruby forms - Google Search
Web Forms and Ruby on Rails
GUI widget - Wikipedia, the free encyclopedia
Widget toolkit - Wikipedia, the free encyclopedia
django tosca widgets - Google Search
On form libraries
pylons form generation - Google Search
Jonathan Ellis's Programming Blog - Spyced: My half-baked thoughts on Python web frameworks
techspot.zzzeek.org Blog Archive Better Form Generation with Mako and Pylons
Form generation with Mako - Pylons Cookbook - PythonWeb
techspot.zzzeek.org Blog Archive Better Form Generation with Mako and Pylons
Daylife - A New Way to Explore the World
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
Welcome // Werkzeug
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.2 documentation
formalchemy - Google Code
Mapper Configuration âÃÂàSQLAlchemy 0.5.3 Documentation
Pylons integration âÃÂàFormAlchemy v1.2 documentation
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.2 documentation
formalchemy render errors - Google Search
formalchemy.tables âÃÂàRendering collections âÃÂàFormAlchemy v1.2 documentation
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.2 documentation
FormAlchemy | Google Groups
Issue 30 in formalchemy: Key Error in AbstractField._validate [with patch] - FormAlchemy | Google Groups
Trouble with second association on a form - FormAlchemy | Google Groups
pylons form generation - Google Search
Jonathan Ellis's Programming Blog - Spyced: My half-baked thoughts on Python web frameworks
techspot.zzzeek.org » Blog Archive » Better Form Generation with Mako and Pylons
Form generation with Mako - Pylons Cookbook - PythonWeb
techspot.zzzeek.org » Blog Archive » Better Form Generation with Mako and Pylons
Daylife - A New Way to Explore the World
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
Welcome // Werkzeug
spent a while today looking into tosca widgets,
dbmechanics and db sprockets doesn't quite seem to be in the same place that form alchemy is
PylonsHQ - Blog
View templates Chapter (Pylons Book)
formalchemy - Google Code
Forms - Pylons Cookbook - PythonWeb
Django | Working with forms | Django Documentation
Max Ischenko’ blog » Blog Archive » Using django.newforms with Pylons
Django | Working with forms | Django Documentation
dbsprockets - Google Code
Source Checkout - dbsprockets - Google Code
toscawidgets - Google Search
ToscaWidgets: Test Driven Modular Ajax - PyCon 2009 - Chicago - A Conference for the Python Community
ToscaWidgets
Pylons — ToscaWidgets v0.9.5dev-20090212 documentation
Building a Form with tw.forms — tw.forms v0.9.3dev-20090212 documentation
Tutorials — tw.forms v0.9.3dev-20090212 documentation
SQLAlchemy & Elixir — tw.forms v0.9.3dev-20090212 documentation
ToscaWidgets Cookbook — TG2 v2.0b5 documentation
Adding Captcha to your Form — TG2 v2.0b5 documentation
reCAPTCHA: Stop Spam, Read Books
OpenLayers Map Widget — TG2 v2.0b5 documentation
Using tw.forms with Pylons. Part 1 — tw.forms v0.9.3dev-20090212 documentation
downloading and trying out:
sudo easy_install -zmaxd . ToscaWidgets
sudo easy_install -zmaxd . tw.forms
formalchemy pylons - Google Search
formalchemy.ext.pylons âÃÂàPylons extensions âÃÂàFormAlchemy v1.1 documentation
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.1: admin app, composite key support
Forms - Pylons Cookbook - PythonWeb
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.1 documentation
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.1 documentation
Jonathan Ellis's Programming Blog - Spyced
formalchemy, no session found - Google Search
formalchemy admin many to many - Google Search
formalchemy - Google Code
QuickTutorial02 - formalchemy - A quick tutorial - Google Code
Faq - formalchemy - Faq - Google Code
formalchemy - Google Code
FormAlchemy | Google Groups
Is it possible to use FormAlchemy without binding a session? - FormAlchemy | Google Groups
Many to many validation - FormAlchemy | Google Groups
formalchemy - Google Code
Pylons integration âÃÂàFormAlchemy v1.2 documentation
formalchemy.ext.pylons âÃÂàPylons extensions âÃÂàFormAlchemy v1.2 documentation
formalchemy.forms âÃÂàForm generation âÃÂàFormAlchemy v1.2 documentation
InstallingFormAlchemy - formalchemy - Installing FormAlchemy - Google Code
formalchemy form.mako - Google Search
paster setup-app development.ini
- The MetaData object Pylons uses is defined in model/meta.py so is accessed here as meta.metadata whereas in the previous chapter it was defined in the same file so the examples just used metadata.
- Pylons generated the init_model() function when the project was created. It gets called after the engine has been created each time your application starts from config/environment.py to connect the model to the database.
Caution!
Pylons generates a project to use SQLAlchemy 0.4 but many users will want to use the newer SQLAlchemy 0.5 described in Chapter 7. They are very similar but the transactional=True argument to orm.sessionmaker() in init_model() is deprecated. Instead you should specify autocommit=False. This has exaclty the same behaviour but will not generate a deprecation warning.
change: model/meta.py
# SQLAlchemy session manager. Updated by model.init_model()
Session = scoped_session(sessionmaker(autoflush=True, autocommit=False))
#then offline in /c/downloads/python
sudo easy_install -f . SQLAlchemy
cd /c/downloads/python/pylons-eggs
sudo easy_install -zmaxd .
easy_install -zmaxd . "SQLAlchemy >= 0.5, <=0.5.99"
mako javascript - Google Search
Re: Javascript in Pylons for ToscaWidgets with Mako
techspot.zzzeek.org Blog Archive Ajax the Mako Way
could use a little cleanup, but is available somewhat manually at this point via:
: reference
: alpha1
: HTML
pylons authentication book - Google Search
Authentication and Authorization - Pylons Cookbook - PythonWeb
Authentication and authorization Chapter (Pylons Book)
pylons authkit - Google Search
AuthKit with Pylons - AuthKit Cookbook - PythonWeb
Authentication and Authorization (Page Not Found) - Pylons Book - PythonWeb
Authentication and authorization Chapter (Pylons Book)
The Pylons Book
Toc Chapter (Pylons Book)
also downloaded to (see also) /charles/downloads/reference/mako-documentation.html
mako - Google Search
welcome to Mako!
Mako Documentation - Syntax
Mako Documentation - Inheritance
Mako Documentation - Namespaces
pylons template cache - Google Search
Caching in Templates and Controllers - Pylons Official Docs - PythonWeb
Mako Documentation - Caching
pylons upload - Google Search
Hacking Pylons for handling large file upload - Pylons Cookbook - PythonWeb
A Better Way To Limit File Upload Size - Pylons Cookbook - PythonWeb
File Upload Progress Indicator for Pylons in Launchpad
Home - Pylons Official Docs - PythonWeb
Site Search - PythonWeb
Using twForms with Pylons. Part 1 - ToscaWidgets - PythonWeb
Form Handling - Pylons Official Docs - PythonWeb
ToscaWidgets
pylons render output from multiple controllers on one page - Google Search
techspot.zzzeek.org Blog Archive Ajax the Mako Way
View templates Chapter (Pylons Book)
Simplesite tutorial Chapter (Pylons Book)
mako template global include - Google Search
Mako Problems
View templates Chapter (Pylons Book)
Mako Documentation - The Mako Runtime Environment
currently reading pylons_book here
may want to point pylons-book.txt here
unicode url - Google Search
Schneier on Security: Unicode URL Hack
pylons - Google Search
The Pylons Book
Installation Chapter (Pylons Book)
pylons set content-type - Google Search
Content-type for Pylons Static Content Python Guy
Re: Setting the content type in Pylons 0.9.6
Re: how to rename a pylons app?
Jonathan Vanasco
Wed, 24 Sep 2008 08:20:09 -0700
I've had to do this before...
you'll want to rename the appropriate files / directories , and then
replace all the module name instances in your project
ie: if your project is named ASDFGHJK , then you'll need to rename:
/ASDFGHJK
/ASDFGHJK/asdfhjk
/ASDFGHJK/asdfhjk.egg-info
then do a s/ASDFGHJK/? on the files
- there are lots of
- import ASDFGHJK
from ASDFGHJK import
if you're using a mac, TextWrangler has a great find/replace function
that works on directories
if you're using subversion for version control, i generaly like to do
it like this:
1- rename files
2- commit
3- find/replace text
4- commit
if you're using git or mercurial, i think you can do the commits in
one step. svn needs them in two though.
see also dreamhost pylons-deploy.txt
forms are closely related to models
you'll need a way to persist the data.
if it's not tied to a specific directory of content, then it should probably be stored in a database of sorts to allow data lookup.
with pylons that probably means using sqlalchemy
if you didn't enable it in your project to begin with, you'll need to do so now following:
| http://wiki.pylonshq.com/display/pylonsdocs/Using+SQLAlchemy+with+Pylons
set up meta.py
set up model
init_model in __init
configure database string in config (development.ini)
sqlalchemy.url = sqlite:///%(here)s/jb-dev.sqlite
environment.py
websetup.py
don't forget!
paster setup-app development.ini
forms are closely related to models
you'll need a way to persist the data.
if it's not tied to a specific directory of content, then it should probably be stored in a database of sorts to allow data lookup.
with pylons that probably means using sqlalchemy
if you didn't enable it in your project to begin with, you'll need to do so now following:
| http://wiki.pylonshq.com/display/pylonsdocs/Using+SQLAlchemy+with+Pylons
set up meta.py
set up model
init_model in __init
configure database string in config (development.ini)
sqlalchemy.url = sqlite:///%(here)s/jb-dev.sqlite
environment.py
websetup.py
don't forget!
paster setup-app development.ini
to start working with forms, you will new to methods to a class... one to show the form, one to handle the form.
you will also need to import the validate code. (formencode)
layouts and other form validation can be stored with other model code (I'm torn if that is more UI or model validation... pylons seems to go with model validation).
Pylons comes with an easy to use validate decorator, imported by default in your lib/base.py. Using it in your controller is pretty straight-forward:
#this gets the validate decorator.
from pylons.decorators import *
to start working with forms, you will new to add methods to a class... one to show the form, one to handle the form.
you will also need to import the validate code. (formencode)
layouts and other form validation can be stored with other model code (I'm torn if that is more UI or model validation... pylons seems to go with model validation).
Pylons comes with an easy to use validate decorator, imported by default in your lib/base.py. Using it in your controller is pretty straight-forward:
#this gets the validate decorator.
from pylons.decorators import *
once you have a basic pylons instance created, there are a few things that need to be configured for most sites to get started.
This seems beyond the scope of a basic installation document, but nonetheless should be documented.
from root of project:
paster controller name-of-new-controller
start with a main controller:
for simple sites this may be enough. (i.e. sites with only one level deep)
for these sites it seems like over kill to make a separate controller for each page if there is really only an index page for each one.
some might argue to just stick with a templating system for a simple site, but just incase needs grow in the future, it is nice to have a framework in place. Pylons doesn't add a lot of bloat to even a simple site... so why not. Also keeps things consistent across projects.
make images and css directories in public:
remove public index.html (otherwise it will be default)
add standard templates
update routes
paster controller name-of-new-controller
start with a main controller:
for simple sites this may be enough. (i.e. sites with only one level deep)
for these sites it seems like over kill to make a separate controller for each page if there is really only an index page for each one.
It may be adequate to stick with a template system (i.e. manual static, sphynx, webby) for a simple site. On the other hand, if you're comfortable with python and needs grow in the future, it is nice to have a framework in place. Pylons doesn't add a lot of bloat to even a simple site. A framework keeps things consistent across projects.
pylons display message if exists - Google Search
Authentication and Authorization - Pylons Cookbook - PythonWeb
Simplesite tutorial Chapter (Pylons Book)
#405 ([Patch] Split up @validate) – Pylons – Trac
Toc Chapter (Pylons Book)
Javascript and ajax Chapter (Pylons Book)
Getting started Chapter (Pylons Book)
Urls routing and dispatch Chapter (Pylons Book)
paster server apache - Google Search
Paste Script â Paste Script v1.6.3 documentation
Deployment Chapter (Pylons Book)
Using SQLAlchemy with Pylons - Pylons Official Docs - PythonWeb
elixir sqlalchemy - Google Search
Documentation – Elixir – Trac
TutorialDivingIn – Elixir – Trac
SQLAlchemy 0.4 Documentation - Object Relational Tutorial
Instance is not persisted sqlalchemy - Google Search
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
sqlite show tables - Google Search
sqlite3: A command-line access program for SQLite databases
Instance is not persisted sqlalchemy - Google Search
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
sqlite show tables - Google Search
sqlite3: A command-line access program for SQLite databases
paster serve --stop-daemon
paster make-config "SimpleSite==0.3.0" production.ini
paster make-config "ffm" production.ini
this picks up where installation leaves off
overlap is in starting server:
paster serve --reload development.ini
figure out how to run server as a daemon
pass --deamon to paster serve:
paster serve --daemon --reload development.ini
paster serve --daemon --reload production.ini
Pylons Python Web Framework
Pylons Python Web Framework - Docs
Home - Pylons Official Docs - PythonWeb
Mako for people in a hurry - Pylons Cookbook - PythonWeb
Mako Templates for Python
welcome to Mako!
Mako Documentation - Syntax
Form Handling - Pylons Official Docs - PythonWeb
WebHelpers -- Module Reference
FormEncode -- Module Reference
Introducing HInclude
pylons sqlalchemy - Google Search
Home - Pylons Official Docs - PythonWeb
Home - Pylons Cookbook - PythonWeb
Making a Pylons Blog - Pylons Cookbook - PythonWeb
Accessing your model outside of Pylons - Pylons Cookbook - PythonWeb
Using SQLAlchemy with Pylons - Pylons Official Docs - PythonWeb
What's new in Pylons 0.9.7? - Pylons Cookbook - PythonWeb
pylons db migrate - Google Search
pylons: Important Shock
#408 (Simple migrations support) Pylons Trac
JJinuxLand: Python: Database Migrations
paster restcontroller - Google Search
ROTR » Blog Archive » Pylons controller template for REST
Representational State Transfer - Wikipedia, the free encyclopedia
How map.resource enables controllers as services - Pylons Cookbook - PythonWeb
pylons.commands â Command line functions â Pylons v0.9.7 documentation
Using SQLAlchemy with Pylons - Pylons Official Docs - PythonWeb
elixir sqlalchemy - Google Search
Documentation Elixir Trac
TutorialDivingIn Elixir Trac
SQLAlchemy 0.4 Documentation - Object Relational Tutorial
Python Library Reference
Zero to 60 with Pylons⦠in just minutes (Part 1) - Code. Design. Explore. | Blog and words of John Brennan
pylons change name controller file - Google Search
Alternative controller searching method - Pylons Cookbook - PythonWeb
Documentation
Routes Manual
Integrating Routes
Controllers â Pylons v0.9.7 documentation
Getting Started â Pylons v0.9.7 documentation
Pylons
DTrace
Introduction to RDF
RDFa
Tesla
Example-driven ZODB
KnowledgeTap
turbogears based blog - Google Search
Blog, CMS, and Wiki software - Pylons Projects - PythonWeb
Site Search - PythonWeb
Making a Pylons Blog - Pylons Cookbook - PythonWeb
Concepts of Pylons - Pylons Cookbook - PythonWeb
Blogging with Django/Turbogears? ë dreamcatching
Frog - Python web logging software
About ë dreamcatching
looking in to a CRUD like scaffolding generation script for pylons.
didn't see much out there.
maybe it's best just to create manually, so you don't have to weed out unnecessary code.
pylons admin generator - Google Search
pails-admin - Google Code
pails-admin - Google Code
crud and dbsprockets problem on tg2 - TurboGears Trunk | Grupos de Google
Paste Script â Paste Script v1.6.3 documentation
News: Paste Script â Paste Script v1.6.3 documentation
URL Parsing With WSGI And Paste â Paste v1.7.1 documentation
Misapplying book terms, Pylons, and the 'end-user'
Django | Weblog | Quote of the day
just installed pylons on ubuntu
Pylons Python Web Framework
Home - Pylons Official Docs - PythonWeb
Getting Started - Pylons Official Docs - PythonWeb
Pylons Default Page