Slide 1

Slide 1 text

Accelerated Pylons Dev with BlastOff Chris Miles Melbourne Python User Group Oct 2009 Image by lecates @ flickr / CC BY-NC 2.0 Wednesday, 14 October 2009

Slide 2

Slide 2 text

What is BlastOff? A Pylons application boilerplate as a PasteScript template Similar to the Pylons default application template but pre- configured with more functionality Wednesday, 14 October 2009

Slide 3

Slide 3 text

Pylons Template SQLAlchemy 0.5 ORM support mako template support Routes dispatching Sessions Caching Custom error handling Static file serving Wednesday, 14 October 2009

Slide 4

Slide 4 text

BlastOff Template Pylons template, including mako & SQLAlchemy Authentication using repoze.who ToscaWidgets middleware User registration form using ToscaWidgets (tw.forms) Email confirmation for new user accounts (optional) Wednesday, 14 October 2009

Slide 5

Slide 5 text

BlastOff Template TurboMail 3.0 for email support WebFlash for “flash” messages Default user creation (optional) Database schema version control using SchemaBot (optional) Wednesday, 14 October 2009

Slide 6

Slide 6 text

BlastOff Template Database administration interface using RUM (optional) (not yet released) Model unit tests Functional tests Wednesday, 14 October 2009

Slide 7

Slide 7 text

Installation easy_install BlastOff Verify: $ paster create --list-templates Available templates: blastoff: A Pylons template pylons: Pylons application pylons_minimal: Pylons minimal […] Wednesday, 14 October 2009

Slide 8

Slide 8 text

Usage $ paster create -t blastoff BOTest Selected and implied templates: BlastOff#blastoff A Pylons template providing a working site skeleton configured with SQLAlchemy, mako, repoze.who, ToscaWidgets and SchemaBot. Variables: egg: BOTest package: botest project: BOTest Enter sqlalchemy_url (The SQLAlchemy URL of the database) ['sqlite:///%(here)s/ development.db']: Enter use_schemabot (Enable database schema version control using SchemaBot) [True]: Enter email_confirmation (True/False: New users must click activation link from confirmation email) [True]: Enter rum_admin (True/False: Add database admin interface (using RUM) at /admin) [True]: Enter default_user (Default username to create, password will match username (leave blank for no default user)) ['']: admin Creating template blastoff Creating directory ./BOTest […] Wednesday, 14 October 2009

Slide 9

Slide 9 text

Demo Wednesday, 14 October 2009

Slide 10

Slide 10 text

Other Pylons Templates Shabti PylonsTemplates See Pylons wiki: http://wiki.pylonshq.com/display/ pylonsprojects/Pylons+Project+Templates Wednesday, 14 October 2009

Slide 11

Slide 11 text

BlastOff Links Download: http://pypi.python.org/pypi/BlastOff Source / wiki / issues: http://bitbucket.org/chrismiles/blastoff/ Wednesday, 14 October 2009