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.

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&source=hp&biw=973&bih=528&q=pyramid+python&btnG=Google+Search
pyramid python - Google Search
http://pypi.python.org/pypi/pyramid/1.0a1
Python Package Index : pyramid 1.0a1
http://docs.pylonsproject.org/
The Pylons Project Documentation — The Pylons Project Documentation v0.0
http://docs.pylonsproject.org/projects/pyramid/dev/
The Pyramid Web Application Development Framework — The Pyramid Web Application Development Framework v1.0a9
http://docs.pylonsproject.org/projects/pyramid/dev/narr/install.html
Installing Pyramid — The Pyramid Web Application Development Framework v1.0a9
http://docs.pylonsproject.org/projects/pyramid/dev/tutorials/gae/index.html#appengine-tutorial
Running Pyramid on Google’s App Engine — The Pyramid Web Application Development Framework v1.0a9
https://bitbucket.org/account/signin/
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

http://localhost:5000/tester/index
http://localhost:5000/main/index

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

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

update routes






python setup.py develop

have done this essentially with the main page for contextiskey.com
any other modifications should be requested
[2008.03.15 10:40]
put "hello world" in the middle of the cloud

maybe use inkskape to clean it up a bit? (raster can look cool though)

file:///media/Charles/personal/projects/journal/browser/interface/slice.html

virtualenv --no-site-packages personnel-virtual

cd personnel-virtual

source bin/activate

easy_install pylons
easy_install formalchemy

http://localhost:5000/journal/media/code/python/pylons/form_alchemy.txt
: form_alchemy.txt
http://code.google.com/p/formalchemy/
formalchemy - Google Code
http://docs.formalchemy.org/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/pylons_sample.html
Pylons integration — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/tables.html
formalchemy.tables – Rendering collections — FormAlchemy v1.2 documentation
http://groups.google.com/group/formalchemy
FormAlchemy | Google Groups
http://www.sqlalchemy.org/docs/05/mappers.html
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"

http://www.google.com/search?q=toscawidgets&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
toscawidgets - Google Search
http://us.pycon.org/2009/tutorials/schedule/2AM3/
ToscaWidgets: Test Driven Modular Ajax - PyCon 2009 - Chicago - A Conference for the Python Community
http://toscawidgets.org/
ToscaWidgets
http://toscawidgets.org/documentation/tw.forms/tutorials/index.html
Tutorials w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/ToscaWidgets/install/pylons_app.html
Pylons oscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/sample_form.html
Building a Form with tw.forms w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/pylons_one.html
Using tw.forms with Pylons. Part 1 w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/db_sqlalchemy.html
SQLAlchemy & Elixir w.forms v0.9.3dev-20090212 documentation
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook.html
ToscaWidgets Cookbook G2 v2.0b6 documentation
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/ReCaptcha.html
Adding Captcha to your Form G2 v2.0b6 documentation
http://recaptcha.net/
reCAPTCHA: Stop Spam, Read Books
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/OpenLayersMap.html
OpenLayers Map Widget G2 v2.0b6 documentation
http://toscawidgets.org/documentation
ToscaWidgets - Documentation
http://toscawidgets.org/documentation/tw.dynforms/
Welcome to tw.dynformsdocumentation! w.dynforms v0.9.0 documentation
http://toscawidgets.org/documentation/tw.dynforms/tutorial.html#introduction
Tutorial w.dynforms v0.9.0 documentation
http://code.google.com/p/sqlalchemy-migrate/
sqlalchemy-migrate - Google Code
http://trac.ollix.org/miruku/
miruku rac
http://www.google.com/search?q=miruku+vs+sqlalchemy-migrate&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
miruku vs sqlalchemy-migrate - Google Search
http://code.google.com/p/urssus/
urssus - Google Code
http://lateral.netmanagers.com.ar/
Lateral Opinion
http://offog.org/code/rawdog.html
rawdog
http://toscawidgets.org/documentation/WidgetBrowser/
WidgetBrowserdocumentation idgetBrowser v0.1 documentation
http://toscawidgets.org/documentation/WidgetBrowser/install.html
Installing the WidgetBrowser idgetBrowser v0.1 documentation
http://toscawidgets.org/documentation/WidgetBrowser/browser.html
Using the WidgetBrowser idgetBrowser v0.1 documentation
http://toscawidgets.org/documentation/ToscaWidgets/
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/ToscaWidgets/
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/modules/fields/index.html
tw.forms.fields w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/sample_form.html
Building a Form with tw.forms w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/db_sqlalchemy.html
SQLAlchemy & Elixir w.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/trac/tw.forms/wiki/FAQ#how-can-i-populate-a-singleselectfield-with-an-sqlalchemy-mapped-instance
FAQ oscaWidgets rac w.forms
http://toscawidgets.org/documentation/ToscaWidgets/
ToscaWidgets Documentation oscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/ToscaWidgets/install/wsgi_app.html
Raw WSGI oscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/ToscaWidgets/modules/api.html
tw.api oscaWidgets v0.9.5dev-20090212 documentation
http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=anZ&q=toscawidgets+date+field&btnG=Search
toscawidgets date field - Google Search
http://turbogears.org/2.0/docs/main/ToscaWidgets/forms.html
Using Tosc

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&q=pylons+form+generation&btnG=Search
pylons form generation - Google Search
http://spyced.blogspot.com/2008/04/m-half-baked-thoughts-on-python-web.html
Jonathan Ellis's Programming Blog - Spyced: My half-baked thoughts on Python web frameworks
http://techspot.zzzeek.org/?p=28
techspot.zzzeek.org Blog Archive Better Form Generation with Mako and Pylons
http://wiki.pylonshq.com/display/pylonscookbook/Form+generation+with+Mako
Form generation with Mako - Pylons Cookbook - PythonWeb
http://techspot.zzzeek.org/?p=28
techspot.zzzeek.org Blog Archive Better Form Generation with Mako and Pylons
http://www.daylife.com/
Daylife - A New Way to Explore the World
http://spyced.blogspot.com/2008/10/formalchemy-10.html
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
http://werkzeug.pocoo.org/
Welcome // Werkzeug


http://docs.formalchemy.org/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://code.google.com/p/formalchemy/
formalchemy - Google Code
http://www.sqlalchemy.org/docs/05/mappers.html#composite-column-types
Mapper Configuration — SQLAlchemy 0.5.3 Documentation
http://docs.formalchemy.org/current/pylons_sample.html#using-forms-in-controllers
Pylons integration — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/forms.html#configuring-and-rendering-forms
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://www.google.com/search?q=formalchemy+render+errors&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
formalchemy render errors - Google Search
http://docs.formalchemy.org/tables.html
formalchemy.tables – Rendering collections — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/forms.html#formalchemy.forms.FieldSet
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://groups.google.com/group/formalchemy/search?group=formalchemy&q=key+not+found&qt_g=Search+this+group
FormAlchemy | Google Groups
http://groups.google.com/group/formalchemy/browse_thread/thread/53876b8411833d1d/e3cbc2253df4a7cc?lnk=gst&q=key+not+found#e3cbc2253df4a7cc
Issue 30 in formalchemy: Key Error in AbstractField._validate [with patch] - FormAlchemy | Google Groups
http://groups.google.com/group/formalchemy/browse_thread/thread/14b17d64e41298bc/c300bb0a8895e99a?lnk=gst&q=key+not+found#c300bb0a8895e99a
Trouble with second association on a form - FormAlchemy | Google Groups


http://wiki.pylonshq.com/display/pylonscookbook/Forms
http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&q=pylons+form+generation&btnG=Search
pylons form generation - Google Search
http://spyced.blogspot.com/2008/04/m-half-baked-thoughts-on-python-web.html
Jonathan Ellis's Programming Blog - Spyced: My half-baked thoughts on Python web frameworks
http://techspot.zzzeek.org/?p=28
techspot.zzzeek.org » Blog Archive » Better Form Generation with Mako and Pylons
http://wiki.pylonshq.com/display/pylonscookbook/Form+generation+with+Mako
Form generation with Mako - Pylons Cookbook - PythonWeb
http://techspot.zzzeek.org/?p=28
techspot.zzzeek.org » Blog Archive » Better Form Generation with Mako and Pylons
http://www.daylife.com/
Daylife - A New Way to Explore the World
http://spyced.blogspot.com/2008/10/formalchemy-10.html
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
http://werkzeug.pocoo.org/
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

http://pylonshq.com/articles
PylonsHQ - Blog
http://pylonsbook.com/alpha1/view_templates
View templates Chapter (Pylons Book)
http://code.google.com/p/formalchemy/
formalchemy - Google Code
http://wiki.pylonshq.com/display/pylonscookbook/Forms
Forms - Pylons Cookbook - PythonWeb
http://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs
Django | Working with forms | Django Documentation
http://maxischenko.in.ua/blog/entries/130/using-djangonewforms-with-pylons/
Max Ischenko’ blog » Blog Archive » Using django.newforms with Pylons
http://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs
Django | Working with forms | Django Documentation
http://code.google.com/p/dbsprockets/
dbsprockets - Google Code
http://code.google.com/p/dbsprockets/source/checkout
Source Checkout - dbsprockets - Google Code
http://www.google.com/search?q=toscawidgets&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
toscawidgets - Google Search
http://us.pycon.org/2009/tutorials/schedule/2AM3/
ToscaWidgets: Test Driven Modular Ajax - PyCon 2009 - Chicago - A Conference for the Python Community
http://toscawidgets.org/
ToscaWidgets
http://toscawidgets.org/documentation/ToscaWidgets/install/pylons_app.html
Pylons — ToscaWidgets v0.9.5dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/sample_form.html
Building a Form with tw.forms — tw.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/index.html
Tutorials — tw.forms v0.9.3dev-20090212 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/db_sqlalchemy.html
SQLAlchemy & Elixir — tw.forms v0.9.3dev-20090212 documentation
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook.html
ToscaWidgets Cookbook — TG2 v2.0b5 documentation
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/ReCaptcha.html#why-is-tw-recaptcha-good
Adding Captcha to your Form — TG2 v2.0b5 documentation
http://recaptcha.net/
reCAPTCHA: Stop Spam, Read Books
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/OpenLayersMap.html
OpenLayers Map Widget — TG2 v2.0b5 documentation
http://toscawidgets.org/documentation/tw.forms/tutorials/pylons_one.html#introduction
Using tw.forms with Pylons. Part 1 — tw.forms v0.9.3dev-20090212 documentation


hg clone http://toscawidgets.org/hg/tw.forms/

#2009.02.20 13:29:59 admin@one:/c/downloads/python
hg clone http://toscawidgets.org/hg/ToscaWidgets/

downloading and trying out:
sudo easy_install -zmaxd . ToscaWidgets
sudo easy_install -zmaxd . tw.forms

http://docs.formalchemy.org/forms.html
http://www.google.com/search?q=formalchemy,+no+session+found&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
http://www.google.com/search?q=formalchemy+form.mako&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
http://www.google.com/search?q=formalchemy+admin+many+to+many&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
http://www.google.com/search?client=firefox-a&rls=org.mozilla:en-US:official&channel=s&hl=en&q=formalchemy+pylons&btnG=Google+Search
http://spyced.blogspot.com/2008/12/formalchemy-11-admin-app-composite-key.html
http://spyced.blogspot.com/2008/10/formalchemy-10.html
http://spyced.blogspot.com/
http://groups.google.com/group/formalchemy/search?group=formalchemy&q=session&qt_g=Search+this+group
http://groups.google.com/group/formalchemy/browse_thread/thread/766c2ca8251116aa/c4fd961fe6646476?lnk=gst&q=session#c4fd961fe6646476
http://groups.google.com/group/formalchemy/browse_thread/thread/3a0668d09e1fbafd/0113f30d898c6b76?lnk=gst&q=session#0113f30d898c6b76
http://docs.formalchemy.org/ext/pylons.html
http://docs.formalchemy.org/current/pylons_sample.html
http://docs.formalchemy.org/current/forms.html
http://docs.formalchemy.org/current/ext/pylons.html
http://code.google.com/p/formalchemy/wiki/QuickTutorial02
http://code.google.com/p/formalchemy/wiki/InstallingFormAlchemy
http://code.google.com/p/formalchemy/wiki/Faq
http://code.google.com/p/formalchemy/w/list
http://code.google.com/p/formalchemy/source/checkout
http://code.google.com/p/formalchemy/

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=formalchemy+pylons&btnG=Google+Search
formalchemy pylons - Google Search
http://docs.formalchemy.org/ext/pylons.html
formalchemy.ext.pylons – Pylons extensions — FormAlchemy v1.1 documentation
http://spyced.blogspot.com/2008/10/formalchemy-10.html
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
http://spyced.blogspot.com/2008/12/formalchemy-11-admin-app-composite-key.html
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.1: admin app, composite key support
http://wiki.pylonshq.com/display/pylonscookbook/Forms
Forms - Pylons Cookbook - PythonWeb
http://docs.formalchemy.org/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.1 documentation
http://docs.formalchemy.org/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.1 documentation
http://spyced.blogspot.com/
Jonathan Ellis's Programming Blog - Spyced
http://www.google.com/search?q=formalchemy%2C+no+session+found&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
formalchemy, no session found - Google Search
http://www.google.com/search?q=formalchemy+admin+many+to+many&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
formalchemy admin many to many - Google Search
http://code.google.com/p/formalchemy/w/list
formalchemy - Google Code
http://code.google.com/p/formalchemy/wiki/QuickTutorial02
QuickTutorial02 - formalchemy - A quick tutorial - Google Code
http://code.google.com/p/formalchemy/wiki/Faq
Faq - formalchemy - Faq - Google Code
http://code.google.com/p/formalchemy/source/checkout
formalchemy - Google Code
http://groups.google.com/group/formalchemy/search?group=formalchemy&q=session&qt_g=Search+this+group
FormAlchemy | Google Groups
http://groups.google.com/group/formalchemy/browse_thread/thread/766c2ca8251116aa/c4fd961fe6646476?lnk=gst&q=session#c4fd961fe6646476
Is it possible to use FormAlchemy without binding a session? - FormAlchemy | Google Groups
http://groups.google.com/group/formalchemy/browse_thread/thread/3a0668d09e1fbafd/0113f30d898c6b76?lnk=gst&q=session#0113f30d898c6b76
Many to many validation - FormAlchemy | Google Groups
http://code.google.com/p/formalchemy/
formalchemy - Google Code
http://docs.formalchemy.org/current/pylons_sample.html
Pylons integration — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/ext/pylons.html
formalchemy.ext.pylons – Pylons extensions — FormAlchemy v1.2 documentation
http://docs.formalchemy.org/current/forms.html
formalchemy.forms – Form generation — FormAlchemy v1.2 documentation
http://code.google.com/p/formalchemy/wiki/InstallingFormAlchemy
InstallingFormAlchemy - formalchemy - Installing FormAlchemy - Google Code
http://www.google.com/search?q=formalchemy+form.mako&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
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"

http://www.google.com/search?hl=en&q=pylons+authkit&btnG=Google+Search&aq=2&oq=pylons+auth
pylons authkit - Google Search
http://wiki.pylonshq.com/display/authkitcookbook/AuthKit+with+Pylons
AuthKit with Pylons - AuthKit Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pysbook/Authentication+and+Authorization
Authentication and Authorization (Page Not Found) - Pylons Book - PythonWeb
http://pylonsbook.com/alpha1/authentication_and_authorization
Authentication and authorization Chapter (Pylons Book)
http://pylonsbook.com/
The Pylons Book
http://pylonsbook.com/alpha1/toc
Toc Chapter (Pylons Book)


also downloaded to (see also) /charles/downloads/reference/mako-documentation.html

http://www.google.com/search?hl=en&q=mako&btnG=Google+Search&aq=f&oq=
mako - Google Search
http://www.makotemplates.org/
welcome to Mako!
http://www.makotemplates.org/docs/syntax.html#syntax_tags_inherit
Mako Documentation - Syntax
http://www.makotemplates.org/docs/inheritance.html
Mako Documentation - Inheritance
http://www.makotemplates.org/docs/namespaces.html#namespaces_body
Mako Documentation - Namespaces


http://www.google.com/search?hl=en&q=pylons+template+cache&btnG=Google+Search&aq=f&oq=
pylons template cache - Google Search
http://wiki.pylonshq.com/display/pylonsdocs/Caching+in+Templates+and+Controllers
Caching in Templates and Controllers - Pylons Official Docs - PythonWeb
http://www.makotemplates.org/docs/caching.html
Mako Documentation - Caching

http://www.google.com/search?q=pylons+upload&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
pylons upload - Google Search
http://wiki.pylonshq.com/display/pylonscookbook/Hacking+Pylons+for+handling+large+file+upload
Hacking Pylons for handling large file upload - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/A+Better+Way+To+Limit+File+Upload+Size
A Better Way To Limit File Upload Size - Pylons Cookbook - PythonWeb
https://launchpad.net/pylons-fileuploadprogress
File Upload Progress Indicator for Pylons in Launchpad
http://wiki.pylonshq.com/display/pylonsdocs/Home
Home - Pylons Official Docs - PythonWeb
http://wiki.pylonshq.com/dosearchsite.action
Site Search - PythonWeb
http://wiki.pylonshq.com/display/toscawidgets/Using+twForms+with+Pylons.+Part+1
Using twForms with Pylons. Part 1 - ToscaWidgets - PythonWeb
http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling
Form Handling - Pylons Official Docs - PythonWeb
http://toscawidgets.org/
ToscaWidgets



http://www.google.com/search?hl=en&q=pylons+render+output+from+multiple+controllers+on+one+page&btnG=Google+Search&aq=f&oq=
pylons render output from multiple controllers on one page - Google Search
http://techspot.zzzeek.org/?p=29
techspot.zzzeek.org Blog Archive Ajax the Mako Way
http://pylonsbook.com/alpha1/view_templates
View templates Chapter (Pylons Book)
http://pylonsbook.com/alpha1/simplesite_tutorial
Simplesite tutorial Chapter (Pylons Book)


http://www.google.com/search?hl=en&q=mako+template+global+include&btnG=Search
mako template global include - Google Search
http://adam.gomaa.us/blog/mako-problems/
Mako Problems
http://pylonsbook.com/alpha1/view_templates
View templates Chapter (Pylons Book)
http://www.makotemplates.org/docs/runtime.html
Mako Documentation - The Mako Runtime Environment


currently reading pylons_book here
may want to point pylons-book.txt here

http://www.mail-archive.com/pylons-discuss@googlegroups.com/msg08827.html
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 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 *

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 *



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.

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.

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


http://www.google.com/search?hl=en&q=pylons+display+message+if+exists&btnG=Search
pylons display message if exists - Google Search
http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Authorization
Authentication and Authorization - Pylons Cookbook - PythonWeb
http://pylonsbook.com/alpha1/simplesite_tutorial
Simplesite tutorial Chapter (Pylons Book)
http://pylonshq.com/project/pylonshq/ticket/405
#405 ([Patch] Split up @validate) – Pylons – Trac
http://pylonsbook.com/alpha1/toc
Toc Chapter (Pylons Book)
http://pylonsbook.com/alpha1/javascript_and_ajax
Javascript and ajax Chapter (Pylons Book)
http://pylonsbook.com/alpha1/getting_started
Getting started Chapter (Pylons Book)
http://pylonsbook.com/alpha1/urls_routing_and_dispatch
Urls routing and dispatch Chapter (Pylons Book)


http://www.google.com/search?hl=en&q=paster+server+apache&btnG=Search
paster server apache - Google Search
http://pythonpaste.org/script/
Paste Script — Paste Script v1.6.3 documentation
http://pylonsbook.com/alpha1/deployment
Deployment Chapter (Pylons Book)


http://www.google.com/search?hl=en&q=Instance+is+not+persisted+sqlalchemy&btnG=Search
Instance is not persisted sqlalchemy - Google Search
http://www.sqlalchemy.org/docs/04/sqlalchemy_orm_session.html
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
http://www.google.com/search?q=sqlite+show+tables&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:official&client=firefox-a
sqlite show tables - Google Search
http://www.sqlite.org/sqlite.html
sqlite3: A command-line access program for SQLite databases


http://www.google.com/search?hl=en&q=Instance+is+not+persisted+sqlalchemy&btnG=Search
Instance is not persisted sqlalchemy - Google Search
http://www.sqlalchemy.org/docs/04/sqlalchemy_orm_session.html
SQLAlchemy 0.4 Documentation - module sqlalchemy.orm.session
http://www.google.com/search?q=sqlite+show+tables&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:official&client=firefox-a
sqlite show tables - Google Search
http://www.sqlite.org/sqlite.html
sqlite3: A command-line access program for SQLite databases

paster serve --stop-daemon

http://pylonsbook.com/alpha1/deployment
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

http://pylonshq.com/search_docs.html#mako
Pylons Python Web Framework
http://pylonshq.com/docs/module-index.html
Pylons Python Web Framework - Docs
http://wiki.pylonshq.com/display/pylonsdocs/Home
Home - Pylons Official Docs - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Mako+for+people+in+a+hurry
Mako for people in a hurry - Pylons Cookbook - PythonWeb
http://www.makotemplates.org/docs/
Mako Templates for Python
http://www.makotemplates.org/
welcome to Mako!
http://www.makotemplates.org/docs/syntax.html#syntax_tags_include
Mako Documentation - Syntax
http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling
Form Handling - Pylons Official Docs - PythonWeb
http://pylonshq.com/WebHelpers/module-index.html
WebHelpers -- Module Reference
http://formencode.org/module-index.html
FormEncode -- Module Reference
http://www.mnot.net/javascript/hinclude/
Introducing HInclude


http://www.google.com/search?hl=en&q=pylons+sqlalchemy&btnG=Google+Search
pylons sqlalchemy - Google Search
http://wiki.pylonshq.com/display/pylonsdocs/Home
Home - Pylons Official Docs - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Home
Home - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Making+a+Pylons+Blog
Making a Pylons Blog - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Accessing+your+model+outside+of+Pylons
Accessing your model outside of Pylons - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonsdocs/Using+SQLAlchemy+with+Pylons
Using SQLAlchemy with Pylons - Pylons Official Docs - PythonWeb
http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779
What's new in Pylons 0.9.7? - Pylons Cookbook - PythonWeb

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=69I&q=paster+restcontroller&btnG=Search
paster restcontroller - Google Search
http://goldenspud.com/rotr/index.php/2007/01/03/pylons-controller-template-for-rest/
ROTR » Blog Archive » Pylons controller template for REST
http://en.wikipedia.org/wiki/RESTafarian
Representational State Transfer - Wikipedia, the free encyclopedia
http://wiki.pylonshq.com/display/pylonscookbook/How+map.resource+enables+controllers+as+services
How map.resource enables controllers as services - Pylons Cookbook - PythonWeb
http://bel-epa.com/pylonsdocs/modules/commands.html
pylons.commands – Command line functions — Pylons v0.9.7 documentation

http://www.google.com/search?hl=en&q=turbogears+based+blog&btnG=Search
turbogears based blog - Google Search
http://wiki.pylonshq.com/display/pylonsprojects/Blog,+CMS,+and+Wiki+software
Blog, CMS, and Wiki software - Pylons Projects - PythonWeb
http://wiki.pylonshq.com/dosearchsite.action?startIndex=10
Site Search - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Making+a+Pylons+Blog
Making a Pylons Blog - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonscookbook/Concepts+of+Pylons
Concepts of Pylons - Pylons Cookbook - PythonWeb
http://awkly.org/2006/05/19/blogging-with-djangoturbogears/
Blogging with Django/Turbogears? « dreamcatching
http://snakelets.sourceforge.net/frog/
Frog - Python web logging software
http://awkly.org/about/
About « dreamcatching

pylons informational links
http://www.google.com/search?hl=en&q=pylons+based+blog&start=20&sa=N
pylons based blog - Google Search
http://blog.micampe.it/articles/2006/11/26/a-tale-of-pylons-python-and-fastcgi-on-dreamhost
A tale of Pylons, Python and FastCGI on Dreamhost
http://blog.micampe.it/
Michele Campeotto
http://diffle-history.blogspot.com/2007/12/pylons-and-django.html
Diary of a Failed Startup: Pylons and Django
http://my.opera.com/WebApplications/blog/index.dml/tag/Pylons
Pylons - Web Applications Blog
http://truefalsemaybe.com/2008/06/authorization-in-pylons-with-repozewho-part-1-htaccess/
Authorization in Pylons with Repoze.who (Part 1 - HTAccess)
http://mgratzer.topmind.at/2007/07/04/pylons-framework-as-ruby-on-rails-opponend/
mgratzer’s Blog » Blog Archive » Pylons Framework as Ruby on Rails opponend
http://www.rexx.com/~dkuhlman/pylons_quick_site.html#creating-an-application
Pylons Quick Site Development
http://www.pylonscasts.com/
Welcome :: Pylons Screencasts
http://swik.net/pylons
pylons - SWiK
http://www.devchix.com/2007/08/16/restful-thoughts-on-a-web-20-python-project/
» RESTful Thoughts on a Web 2.0 Python Project - DevChix - Blog Archive
http://wiki.pylonshq.com/display/pylonscookbook/A+Pylons+Controller+with+Trac+as+WSGI+Callable
A Pylons Controller with Trac as WSGI Callable - Pylons Cookbook - PythonWeb
http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling
Form Handling - Pylons Official Docs - PythonWeb


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.

http://www.google.com/search?hl=en&q=pylons+admin+generator&btnG=Search
pylons admin generator - Google Search
http://code.google.com/p/pails-admin/
pails-admin - Google Code
http://code.google.com/p/pails-admin/downloads/list
pails-admin - Google Code
http://groups.google.co.ve/group/turbogears-trunk/browse_thread/thread/3f20282596ed9788
crud and dbsprockets problem on tg2 - TurboGears Trunk | Grupos de Google
http://pythonpaste.org/script/
Paste Script — Paste Script v1.6.3 documentation
http://pythonpaste.org/script/news.html
News: Paste Script — Paste Script v1.6.3 documentation
http://pythonpaste.org/url-parsing-with-wsgi.html
URL Parsing With WSGI And Paste — Paste v1.7.1 documentation
http://groovie.org/2007/12/18/misapplying-book-terms-pylons-and-the-end-user
Misapplying book terms, Pylons, and the 'end-user'
http://www.djangoproject.com/weblog/2007/jan/10/wired/
Django | Weblog | Quote of the day

just installed pylons on ubuntu

http://pylonshq.com/
Pylons Python Web Framework
http://wiki.pylonshq.com/display/pylonsdocs/Home
Home - Pylons Official Docs - PythonWeb
http://wiki.pylonshq.com/display/pylonsdocs/Getting+Started
Getting Started - Pylons Official Docs - PythonWeb
file:///media/Charles/personal/projects/journal/browser/interface/slice.html
file:///media/Charles/personal/projects/journal/browser/interface/slice.html
http://127.0.0.1:5000/
Pylons Default Page