Zope
  Home arrow Zope arrow Creating Basic Zope Applications
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ZOPE

Creating Basic Zope Applications
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 19
    2005-01-25


    Table of Contents:
  • Creating Basic Zope Applications
  • Categories
  • Topics
  • Replies

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Creating Basic Zope Applications
    ( Page 1 of 4 )

    While some people immediately understand the usefulness of Zope, others don't understand how to apply their skills. In this article, Peyton McCullough explains how to apply the skills to create a simple forum.

    In this tutorial, we will be exploring the basics of creating Web applications in Zope. We will use Zope Page Templates and a bit of Python to create a primitive forum system. Yes, primitive. Note that what we create will not be the best in its category, and this is certainly not the only way to create a forum. With that stated, however, you will still end up with a fully functional application.

     

    A basic understanding of Zope and Zope Page Templates will be useful in this article. Knowledge of acquisition might also help because we will use it to create our forum.

     

    Let's get started.

     

    The Plan

     

    Let's try to keep our forum as simple as possible. When the user first accesses the forum, he or she will see a list of categories. The categories will be drawn from the folders contained in our forum's main directory. So, for example, if I created a folder with an ID of test and a title of Category One, a category named "Category One" would appear on the index page.

     

    When the user clicks on a category, he or she will be taken to a list of topics in the category. The topics, as with the categories, will be drawn from folders within the category's folder. If no topics are present in the category, a message will state this fact. At the bottom of the topic index, there will be a form for adding new topics with fields for the subject, author and message of the topic.

     

    Clicking on a topic will bring the user to a list of replies to the topic. Replies will be drawn from files within the topic's folder. The contents of the file will be the reply's message, and a property named author would be added to the file. A form for adding new replies will be at the bottom of the topic's page, with fields for the author and messages of the reply.

     

    For simplicity's sake, users will not have to register in order to post. There will be no user database system present in our forum, nor will there be any bells and whistles, such as moderation or administration features. However, feel free to expand the forum system for extra practice.

     

    Here's a short example that shows our forum's structure:

     

    main folder

       category one

          topic one

          topic two

       category two

       category three

          topic one

          topic two

          topic three

     



     
     
    >>> More Zope Articles          >>> More By Peyton McCullough
     

       

    ZOPE ARTICLES

    - Creating Zope Products
    - Plone Content Types With Archetypes
    - Flat User Management in Zope
    - Creating Basic Zope Applications
    - Getting started with Zope for Linux and Sola...
    - ZPT Basics (part 4)
    - ZPT Basics (part 3)
    - ZPT Basics (part 2)
    - ZPT Basics (part 1)
    - Exception Handling In DTML
    - DTML Basics (part 4)
    - DTML Basics (part 3)
    - DTML Basics (part 2)
    - DTML Basics (part 1)
    - Using Zope With Apache





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek