integrating sql data into your plone site
TRANSCRIPT
![Page 1: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/1.jpg)
![Page 2: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/2.jpg)
Integrating SQL Data into your Plone site
![Page 3: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/3.jpg)
So here's the thing...
![Page 4: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/4.jpg)
SQLAlchemy
![Page 5: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/5.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/6.jpg)
traject· Pattern· Model
· Factory
![Page 7: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/7.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/8.jpg)
ModelAthlete(12, 47)Athlete(team='walla-walla-wallabees', athlete='bfergler')
* Marker interface: IAthlete
![Page 9: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/9.jpg)
Factory* Creates object on the fly
![Page 10: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/10.jpg)
Object + Marker Interface + ZCA =
![Page 11: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/11.jpg)
Evil
![Page 12: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/12.jpg)
· Views· Content Listing
· Local Role Adapters
![Page 13: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/13.jpg)
https://github.com/esteele/example.trajectory
![Page 14: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/14.jpg)
![Page 15: Integrating SQL Data Into your Plone Site](https://reader031.vdocument.in/reader031/viewer/2022021506/5876e0ac1a28ab046d8b4a49/html5/thumbnails/15.jpg)