Zope and Plone in the DSD


Published on

Zope and Plone in the DSD

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Zope and Plone in the DSD

  1. 1. Zope and Plone in the DSD David Konerding DSD Group Meeting 3/5/2004
  2. 2. Zope is an App Server <ul><li>Python-based </li></ul><ul><li>Transactional object database </li></ul><ul><li>Dynamic HTML (Python-like scripting) </li></ul><ul><li>Powerful “through-the-web” management and development </li></ul><ul><li>Tightly integrated security model </li></ul><ul><li>Can load “products” which add features such as content management </li></ul><ul><li>Supports WebDAV, XML-RPC, external RDBMS connections, SOAP </li></ul>
  3. 3. Zope is a way of life (your new life begins now) <ul><li>The fundamentals are: </li></ul><ul><ul><li>Zope is a framework into which you publish objects </li></ul></ul><ul><ul><li>Zope objects include folders, so you can create hierarchical structures </li></ul></ul><ul><ul><li>Objects “acquire” (similar to inherit) behavior from their ancestors </li></ul></ul><ul><ul><li>The Zope object instance hierarchy maps to the URL model </li></ul></ul>
  4. 4. Zope is a way of life (a reading from the Book) <ul><li>Your web browser sends a request to the Zope server. The request specifies a URL in the form protocol://host:port/path?querystring&quot;, e.g. http://www.zope.org:8080/Resources?batch_start=100. </li></ul><ul><li>Zope separates the URL into its component &quot;host&quot;, &quot;port&quot; &quot;path&quot; and &quot;query string&quot; portions (http://www.zope.org, 8080, /Resources and ?batch_start=100, respectively). </li></ul><ul><li>Zope locates the object in its object database corresponding to the &quot;path&quot; (/Resources). </li></ul><ul><li>Zope &quot;executes&quot; the object using the &quot;query string&quot; as a source of parameters that can modify the behavior of the object. This means that the object may behave differently depending on the values passed in the query string. </li></ul><ul><li>If the act of executing the object returns a value, the value is sent back to your browser. Typically a given Zope object returns HTML, file data, or image data. </li></ul><ul><li>The data is interpreted by the browser and shown to you. </li></ul>Zope's seminal duty is to &quot;publish&quot; the objects you create. The way it does this is conceptually straightforward.
  5. 5. Example of constructing a small home page. <ul><li>We already have a place for per-developer pages: https://bosshog.lbl.gov/people </li></ul>
  6. 6. Imagine I want to add a new page. <ul><li>To enter the Zope management interface (you must have permission), simply add “/manage” to the URL </li></ul><ul><li>Example: </li></ul><ul><ul><li>https://bosshog.lbl.gov/people -> </li></ul></ul><ul><ul><li>https://bosshog.lbl.gov/people/manage </li></ul></ul>
  7. 7. To add a new folder…
  8. 8. To add a new folder…
  9. 9. To add a new folder…
  10. 10. To add a page to your new folder
  11. 11. To add a new page to your folder
  12. 12. Editing the new page
  13. 13. Viewing the new page
  14. 14. Viewing the new page
  15. 15. Accessing content via WebDAV
  16. 16. Accessing content from WebDAV a
  17. 17. WebDAV <ul><li>Drag and drop files and folders into Zope! </li></ul><ul><li>In my experience WebDAV is kind of flaky, especially on Windows. The linux command line client “cadaver” works just fine. </li></ul><ul><li>There is also FTP support, but it’s currently disabled due to plaintext passwords. </li></ul>
  18. 18. Some other fundamental Zope concepts <ul><li>Acquisition: objects “acquire” (like inherit) behavior from their ancestors. Many behaviors can be defined at the root of the Zope site and acquired across the site- nice way to provide headers, footers, etc. </li></ul><ul><li>Security: Zope has a sophisticated, yet hard to understand security model. Effectively, users are assigned roles and roles have permissions on objects. Administrative tasks can be delegated to users. Security ties in with acquisition to allow for very sophisticated access mechanisms </li></ul>
  19. 19. Products add features to Zope <ul><li>Products are Python packages which can be integrated within Zope. After integration (stop server, copy a folder into the Zope tree, start server), you can add product instances within your site. </li></ul><ul><ul><li>ZWiki- a Wiki component </li></ul></ul><ul><ul><li>Plone- a sophisticated Content Management Framework </li></ul></ul><ul><ul><li>ZSQL </li></ul></ul><ul><ul><li>VirtualHostMonster </li></ul></ul>
  20. 20. Plone- the ultimate Zope product <ul><li>Plone lives on top of the Content Management Framework product. </li></ul><ul><li>It allows you to create sophisticated sites with a minimum of work. </li></ul><ul><li>Easy to add files, manage document publishing workflows (such as author writes document, editor edits it, then reviewer approves it) </li></ul><ul><li>Wikis (and more plones) can be embedded within a Plone, allowing sub-projects complete control </li></ul>
  21. 21. Our site’s usage of Zope and Zope Products <ul><li>Our external site tree (rooted at https://bosshog.lbl.gov ) </li></ul><ul><li>/people </li></ul><ul><li>/projects </li></ul><ul><ul><li>DSDCluster – Plone documenting the cluster </li></ul></ul><ul><ul><li>pyGrid (virtual server published at https://pygrid.dsd.lbl.gov ) </li></ul></ul><ul><ul><ul><li>pyGlobus </li></ul></ul></ul><ul><ul><ul><li>pyGridware </li></ul></ul></ul><ul><li>/proposals </li></ul><ul><ul><li>DOERenewals </li></ul></ul><ul><li>The pyGrid site is actually a Plone, with 2 more Plones and a Wiki inside. </li></ul><ul><li>Sensitive parts of the site are only accessible by authenticated users (basic HTTP auth over HTTPS). </li></ul><ul><li>The “true root” of the Zope web site is not publicly accessible, and is only used for administrative purposes </li></ul>
  22. 22. The Python Grid Community Plone (pygrid.dsd.lbl.gov)
  23. 23. Plone example- the pyGrid web site <ul><li>/projects </li></ul><ul><ul><li>pyGrid </li></ul></ul><ul><ul><ul><li>pyGridPlone </li></ul></ul></ul><ul><ul><ul><ul><li>pyGridWiki </li></ul></ul></ul></ul><ul><ul><ul><ul><li>pyGridware </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>pyGridwarePlone </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>pyGlobus </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>pyGlobusPlone </li></ul></ul></ul></ul></ul><ul><li>The Plone sites provide news and document publishing- good for publicizing releases </li></ul><ul><li>The Wiki sites allow community involvement- answering FAQs, showing examples, writing tutorials </li></ul>
  24. 24. Viewing My Folder
  25. 25. Adding a new document
  26. 26. Publishing the document (submit for review)
  27. 27. Publish or Perish