Download - World Plone Day 2012 Taipei
![Page 1: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/1.jpg)
Python 與 Plone 研習
2012 Taipei
marr.tw @ gmail.com
![Page 2: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/2.jpg)
Plone = Python based CMS
CMS = Content in DatabaseAdded/Edited by User/Group
Managed via WorkflowSearchable with Index/Catalog
![Page 3: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/3.jpg)
Plone = Python based CMS
CMS = Content in DatabaseAdded/Edited by User/Group
Managed via WorkflowSearchable with Index/Catalog
![Page 4: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/4.jpg)
2 Admin Interfaces
ZMIhttp://localhost:8080/manage
Plone Setup
2 Browsers to See DisplayDisplay for Logged in User might be
different than Anonymous User
![Page 5: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/5.jpg)
Content ID = URL
http://localhost:8080/mysitehttp://mysite.com/my_folder/my_itemhttp://mysite.com/my_item/edithttp://mysite.com/managehttp://mysite.com/@@manage-viewlets
![Page 6: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/6.jpg)
Default Content Items
![Page 7: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/7.jpg)
Example Page Editing
![Page 8: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/8.jpg)
Example Page Viewing
![Page 9: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/9.jpg)
One Folder Different Display
![Page 10: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/10.jpg)
Example News Viewing
![Page 11: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/11.jpg)
Example News Viewing
![Page 12: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/12.jpg)
Python Building Blocks
Python Packages are distributed as Eggs
Python Package Indexhttp://pypi.python.org/
Example:easy_install docutils
pip docutils
![Page 13: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/13.jpg)
Extend Plone with Add-onsPlone Add-on (Product) =~ Python Package (Egg)
![Page 14: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/14.jpg)
Extend Plone with Add-onsPlone Add-on (Product) =~ Python Package (Egg)
![Page 15: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/15.jpg)
How Plone Add-ons Work
![Page 16: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/16.jpg)
Add-on Example: collective.geo
Edit buildout.cfg :
eggs = Plone Pillow lxml collective.geo.bundle
![Page 17: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/17.jpg)
Manage Contents – The Hard Way
bin/plonectl debug
bin/plonectl run my_script.py
![Page 18: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/18.jpg)
Undo Makes Life Easier
![Page 19: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/19.jpg)
Import/Export Saves Your Day
![Page 20: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/20.jpg)
Customization
![Page 21: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/21.jpg)
CSS, JavaScript, SkinViewlet, Portlet
Theme
• Debug Mode for Responsive Update• Default Theme = Sunburst• http://localhost:8080/@@manage-viewlets• ZMI portal_skin / ploneCustom• Firefox + Firebug
![Page 22: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/22.jpg)
Look Before You Code
模組軟體集散地http://plone.org/products
http://pypi.python.org/
![Page 23: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/23.jpg)
Example: Stop Road Killing
IncidentContentType
Title
Description
Poster Name
![Page 24: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/24.jpg)
Permissions and Roles
![Page 25: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/25.jpg)
Catalog: Index and Metadata
ZMI / portal_catalog
![Page 26: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/26.jpg)
Browser View
http://mysite.com/my_item/@@my_view
![Page 27: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/27.jpg)
Workflow
States 狀態Transitions 動作
![Page 28: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/28.jpg)
Content Rule
Triggering Event:• Object added to this container• Object modified• Object removed from this container• Workflow state changed
![Page 29: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/29.jpg)
Live Search
EEA Faceted Navigation提供搜尋結果即時過濾功能
http://plone.org/products/eea.facetednavigation
![Page 30: World Plone Day 2012 Taipei](https://reader035.vdocument.in/reader035/viewer/2022062417/54b6d2384a79594d158b45a4/html5/thumbnails/30.jpg)
Diazo
http://diazo.org/