[Zope] Newbie understanding of objects.

Russell Hires rhires@earthlink.net
Thu, 14 Mar 2002 08:35:12 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

I just want to make sure I've got this right. I finally got a picture of what 
an object from the Zope Tutorial. If this passes the smoke test, (IOW, if 
it's accurate) I'll put in the zope.org site somewhere. 

Thanks for your input.

Russell

What is an object? In the zope tutorial, an object was created for an email 
address.
This object was the address itself (myname@zope.org). You create the object 
so that you only have to enter a few letters
or words to get what you want, rather than having to write the whole thing 
out. The email
address is really site contact information. If you have 10 pages that you 
want to have the
same contact information, you want it all to go to the maintainer of a 
particular section
of your site, you can create an object for this purpose. Our site contact 
object is
composed of two properties. One is the actual email address. The other is 
what you want the
object's name to be. The "Name" part is what you are calling the object. This 
is the part
that goes with the <dtml-var> tag. The "Value" part is what will actually 
show. In this case
"Value" is the email address itself.
So if I choose webmaster as the "Name" part, whenever I
type <dtml-var webmaster>, the html that people will see shows 
myname@zope.org. Okay,
I haven't saved any typing, you may think to yourself. If this little bit of 
of typing
had to be done over 10 pages, or 100, then the power is clear. If the 
wemaster changes,
then you only have to change the address of this person once.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8kKcUAqKGrvVshJQRAtSUAKD0Mi3DfeaaG6PNP//ddf9daFrBfQCg40vq
7QQx4QAq37rFhtADZk3I1eM=
=7leW
-----END PGP SIGNATURE-----