[ZCM] [ZC] 1296/ 4 Resolve "2.7.0 tutorial Lesson 10"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri May 14 01:37:10 EDT 2004


Issue #1296 Update (Resolve) "2.7.0 tutorial Lesson 10"
 Status Resolved, Zope/doc request medium
To followup, visit:
  http://collector.zope.org/Zope/1296

==============================================================
= Resolve - Entry #4 by ajung on May 14, 2004 1:37 am

 Status: Pending => Resolved


________________________________________
= Comment - Entry #3 by ajung on Apr 15, 2004 1:20 am

Forget about the old tutorial. It's old and no longer maintainted.

The recommended way to learn Zope is to walk through the Zope Book.
Especially learn about ZPT and not DTML.

-aj
________________________________________
= Comment - Entry #2 by dpchrist_holgerdanske_com on Apr 15, 2004 12:23 am

When I got the error message yesterday, I filed the bug report and shutdown for the night.  Tonight, I checked the bug report to see if there was resolution.  There was not.  So, I fired up Zope and tried again.  Guess what -- this time it worked (see below).

I'm somewhat curious as to what the explanation is.  But as I don't know Python or Zope, I might not understand the answer anyway.

At least my immediate problem (can't do lesson 10) appears to solved.

David



Lesson 10. So You've Seen Elvis

Show lesson examples in another window.
What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings.

   1. Click the mailhost Mail Host object to edit it.
   2. Type the name of your mail server in the SMTP Host field.

Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client.

   1. Click the Save Changes button.

Now Zope can send mail. Next let's edit the mail sending script.

   1. Click the action.py script to edit it.

This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object.

To get this script to work you need to change the recipient and sender variables.

   1. Change the recipient and sender variables to your email address in place of user at host.
   2. Click the Save Changes button.
   3. Now go to the form.html page in the lesson10 folder.
   4. Click the Test tab to view it.
   5. Fill out the Elvis sighting form and submit it.

You should soon receive a piece of email describing the Elvis sighting.

Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly.
Summary

After you create a mail host, you can send mail from any script by calling its simple_send method.

    * Mail Hosts allow you to send email.
    * The scripts format email messages and pass them to the Mail Host.

In the next lesson you'll learn how to use Zope to put a database on the web.

________________________________________
= Request - Entry #1 by Anonymous User on Apr 14, 2004 2:09 am

Lesson 10 appears to be corrupt/ missing files.  Please see below.

David



Lesson 10. So You've Seen Elvis

Zope cannot find the tutorial examples. You should install the tutorial examples before continuing. Choose "Zope Tutorial" from the product add list in the Zope management screen to install the examples.

If you have already installed the tutorial, you can either follow along manually, or reinstall the tutorial examples. Note: make sure that you have cookies turned on in your browser.
What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings.

   1. Click the mailhost Mail Host object to edit it.
   2. Type the name of your mail server in the SMTP Host field.

Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client.

   1. Click the Save Changes button.

Now Zope can send mail. Next let's edit the mail sending script.

   1. Click the action.py script to edit it.

This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object.

To get this script to work you need to change the recipient and sender variables.

   1. Change the recipient and sender variables to your email address in place of user at host.
   2. Click the Save Changes button.
   3. Now go to the form.html page in the lesson10 folder.
   4. Click the Test tab to view it.
   5. Fill out the Elvis sighting form and submit it.

You should soon receive a piece of email describing the Elvis sighting.

Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly.
Summary

After you create a mail host, you can send mail from any script by calling its simple_send method.

    * Mail Hosts allow you to send email.
    * The scripts format email messages and pass them to the Mail Host.

In the next lesson you'll learn how to use Zope to put a database on the web.

==============================================================




More information about the Zope-Collector-Monitor mailing list