Home arrow Zope arrow Page 2 - DTML Basics (part 1)

Upper Management - Zope

Always wanted to learn DTML, but didn't know where to start? Today's your lucky day.

TABLE OF CONTENTS:
  1. DTML Basics (part 1)
  2. Upper Management
  3. Dissecting DTML
  4. Of Methods And Madness
  5. Introducing Yourself
  6. Green Cheese And Pink Frogs
By: Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 9
May 21, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Once you've got Zope all set up, start it up and log in to the Zope management interface with the user name and password that was created when you installed Zope. You should see something like this:



This is the tool that you will be using to build your Web applications. You can use it to create documents, folders, and your own Zope products. And the first step in this process is to create a folder to store all the methods and objects that I'm going to be constructing.

Select a Folder from the drop-down menu that appears at the top of the page,



and give it the ID "DTML Basics".



You don't need to create a public interface at this time.

The next step is to navigate to the folder that you just created and add a DTML Document object to it, using the process outlined above. Give this document an ID of "FirstStep".



As you may have guessed by now, the object ID that you assign at each stage is fairly important - it provides a unique identifier for the object within Zope, and can be used to access and manipulate it from your DTML code.

Once you've assigned the document an ID and saved your changes, you will be returned to the main folder listing. Your newly-minted object should now show up in this listing.



Right. Now, how about editing it? Click the "Edit" menu function (look at the tabs at the top of your screen) and Zope will show you a form containing the current contents of the FirstStep object instance.



In case you're wondering, the strange mishmash of characters on your screen is raw DTML. Don't worry too much about what it all means - I'll explain it shortly - but instead, focus on what it does. Click the "View" tab at the top of your screen



and take a look at the output of all that code.



Pretty cool, huh?



 
 
>>> More Zope Articles          >>> More By Harish Kamath, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

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

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: