15

Integrating SQL Data Into your Plone Site

Embed Size (px)

Citation preview

Page 1: Integrating SQL Data Into your Plone Site
Page 2: Integrating SQL Data Into your Plone Site

Integrating SQL Data into your Plone site

Page 3: Integrating SQL Data Into your Plone Site

So here's the thing...

Page 4: Integrating SQL Data Into your Plone Site

SQLAlchemy

Page 5: Integrating SQL Data Into your Plone Site

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

Page 6: Integrating SQL Data Into your Plone Site

traject· Pattern· Model

· Factory

Page 7: Integrating SQL Data Into your Plone Site

Patternpattern = u'teams/:team_id/athlete/:user_id'

'teams/12/athlete/47''teams/walla-walla-wallabees/athlete/bfergler'

Page 8: Integrating SQL Data Into your Plone Site

ModelAthlete(12, 47)Athlete(team='walla-walla-wallabees', athlete='bfergler')

* Marker interface: IAthlete

Page 9: Integrating SQL Data Into your Plone Site

Factory* Creates object on the fly

Page 10: Integrating SQL Data Into your Plone Site

Object + Marker Interface + ZCA =

Page 11: Integrating SQL Data Into your Plone Site

Evil

Page 12: Integrating SQL Data Into your Plone Site

· Views· Content Listing

· Local Role Adapters

Page 13: Integrating SQL Data Into your Plone Site

https://github.com/esteele/example.trajectory

Page 14: Integrating SQL Data Into your Plone Site
Page 15: Integrating SQL Data Into your Plone Site