Upload
eric-steele
View
15
Download
0
Embed Size (px)
Citation preview
Integrating SQL Data into your Plone site
So here's the thing...
SQLAlchemy
A mapping is made from URL patterns to controllers (or views) that are called to generate the rendered web page. The URL pattern is also used to pull parameter information from the URLs which can then be passed on."^"In traversal, there is no explicit mapping of URLs to controllers or views. Instead a model structure is traversed step by step, guided by the URL."
traject· Martijn Fassen
· "A URL dispatch to object system that combines aspects of routing and traversal."
collective.trajectory· Izhar Firdaus
traject· Pattern· Model
· Factory
Patternpattern = u'teams/:team_id/athlete/:user_id'
'teams/12/athlete/47''teams/walla-walla-wallabees/athlete/bfergler'
ModelAthlete(12, 47)Athlete(team='walla-walla-wallabees', athlete='bfergler')
* Marker interface: IAthlete
Factory* Creates object on the fly
Object + Marker Interface + ZCA =
Evil
· Views· Content Listing
· Local Role Adapters
https://github.com/esteele/example.trajectory