Zope
  Home arrow Zope arrow Creating Basic Zope Applications
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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? 
ZOPE

Creating Basic Zope Applications
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 18
    2005-01-25

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

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    TestComplete™ automates software testing for a fraction of what the big guys charge. Easy functional and load testing for all Windows, .NET, Java and Web apps. Download a free trial now.

    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


       · Quite a nice guide!
       · This is awesome. =)Before I saw this article I couldn't really grasp the...
       · Thanks for the comments.I wrote the article because a friend of mine was...
       · Nice article - it's always refreshing to see someone covering something other than...
       · Great article. Code 90% works on my instance, but it won't compile with this:...
       · From PicMaster: May be templates are parsed and validated internally by a XML DOM...
       · Is there any way to not have it ask for a username and password when people add a...
     

       

    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-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway