Dexterity in 15 minutes or less

  • 1,604 views
Uploaded on

PloneSA monthly meeting dexterity content type introduction.

PloneSA monthly meeting dexterity content type introduction.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,604
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
11
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Dexterity in 15 minutes or less
    • My setup:
    • 2. - Ubuntu Natty
    • 3. - python 2.7 (with paster and zopeskel)
    • 4. - All buildout essentials already installed
  • 5. Resources
    • http://plone.org/products/dexterity
    • 6. http://plone.org/products/dexterity/documentation
    • 7. http://plone.org/products/dexterity/documentation/how-to/install
    • 8. http://plone.org/products/dexterity/documentation/manual/developer-manual/referencemanual-all-pages
    • 9. http://plone.org/products/dexterity/documentation/manual/five.grok
    • 10. http://plone.org/products/dexterity/documentation/manual/behaviors
    • 11. http://plone.org/products/dexterity/documentation/manual/schema-driven-forms
    • 12. http://maurits.vanrees.org/weblog/archive/2009/10/david-glick-building-content-types-with-dexterity/view?set_language=nl
    • 13. http://pypi.python.org/pypi/zopeskel.dexterity
    • 14. git@github.com:rijkstofberg/plonesa.dextut.git
    • 15. https://github.com/jbeyers/example.geo.git
  • 16. Philosophy
    • Philosophy
    • 17. - Reuse over reinvention
    • 18. - Small over big
    • 19. - Natural interaction over excessive generality
    • 20. - Real code over generated code
    • 21. - Zope 3 over Zope 2
    • 22. - Zope concepts over new paradigms
    • 23. - Automated testing over wishful thinking
  • 24. Basics
    • Version 1.0.1
    • 25. released on Jul 02, 2011
    • 26. Plone 4 & Plone 3
    • 27. Builds on grok (Convention over configuration)
    • 28. Makes use of ZCA + z3cforms
    • 29. Schema, Views, Templates, FTI
    • 30. Behaviours
    • 31. concept:
    • 32. Enabled per content type
    • 33. Uses adapters
    • 34. Adds functionality and fields to a type
    • 35. Aspect oriented programming
  • 36. Building...
    • mkdir ~/instances/dexterity
    • 37. cd ~/instances/dexterity
    • 38. virtualenv --no-site-packages .
    • 39. paster create -t plone4_buildout
    • 40. gvim buildout.cfg and add:
    • 41. [buildout]
    • 42. extends =
    • 43. http://good-py.appspot.com/release/dexterity/1.0?plone=4.0.7
    • 44. [instance]
    • 45. eggs =
    • 46. Plone
    • 47. PIL
    • 48. plone.app.dexterity
  • 49. Building
    • Note: you can also enable the omelette bits in the buildout. I did.
    • 50. ./bin/python bootstrap
    • 51. ./bin/buildout -Dvt 240
    • 52. ./bin/instance fg
  • 53. TTW
    • go to http://localhost:8080
    • 54. create a site (we created 'minutes')
    • 55. go to http://localhost:8080/minutes/plone_control_panel
    • 56. click on 'Dexterity Content Types'
    • 57. click on 'Add new content type'
    • 58. we add a 'Store'
    • 59. go the content type by clicking on its name
    • 60. - there will be no fields yet
    • 61. go to the 'Behaviours' tab
    • 62. - 'Dublin Core metadata' is on this gives us:
    • 63. Basic metadata + Categorization + Effective range + Ownership
    • 64. - let's export this
  • 65. Filesystem
  • 78. Filesystem ...
    • rerun buildout
    • 79. cd src
    • 80. ../bin/zopeskel dexterity
    • 81. plonesa.dextut
    • 82. rm bootstrap*
    • 83. rm -rf *.cfrm PasteScript-1.7.3-py2.7.egg/ Paste-1.7.5.1-py2.7.egg/ PasteDeploy-1.5.0-py2.7.egg/
    • 84. update buildout.cfg
    • 85. develop =
    • 86. src/plonesa.dextut
    • 87. eggs =
    • 88. Plone
    • 89. PIL
    • 90. plone.app.dexterity
    • 91. plonesa.dextut
    • 92. ./bin/buildout -Dvt 240
  • 93. Add our dexterity product
    • cd src
    • 94. ../bin/zopeskel dexterity
    • 95. Restart the server
    • 96. Go to plone_control_panel and add the product
    • 97. Named it: plonesa.dextut
  • 98. Add our first content type
    • cd plone.dextut
    • 99. ../../bin/paster addcontent dexterity_content
    • 100. Answer the questions
    • 101. Restart the server
    • 102. Go to the plone_control_panel
    • 103. Deactivate + Activate
    • 104. Add a new 'store' in the root of the plone site!