[Zope] RE: Zope digest, Vol 1 #1674 - 27 msgs
Bobby Mathew
bobby@stylusinc.com
Wed, 26 Sep 2001 10:53:57 +0530
Hi Dan,
I understand the creation of products in Zope. But I don=92t want to
create products because my requirement is just to create persistent
classes which are relevant only within the current project I am working
in. So making products don=92t suit that requirement. Can't we just
directly create class objects into the ZODB using python scripts from
within Zope ?
Any ideas anybody ?=20
I will take a look at the MetaPublisher meanwhile.
Thanks.
bobbby
-----Original Message-----
From: Dan Shafer [mailto:dshafer@yahoo.com]=20
Sent: Tuesday, September 25, 2001 11:12 PM
To: zope@zope.org
Cc: bobby@stylusinc.com
Subject: Re: Zope digest, Vol 1 #1674 - 27 msgs
I'm still feeling a bit of the Newbie myself, so this answer may need to
be corrected by someone
with more background, but I figured it was a good chance for me to
contribute _something_ back to
this wonderful community.
In the Zope Book, Chapter 12 covers "Extending Zope." It teaches you how
to create new Zope
products and then to use Z Classes. That's probably the right approach
to doing this project if
you want to learn the programmatic approach. You would start by adding a
new Customer product
through the Control Panel interface in Zope, then add your properties to
it. Then you'd add the
DTML documents to do the stuff you want: add, edit, delete, etc.
Everything gets stored automagically in the Zope DB that way.
But another option presents itself. You could download and install
MetaPublisher from Beehive.
This is a quite wonderful product that lets you define new classes and
objects with properties,
including the automatic generation of screens to add, edit, search, and
delete those objects. As a
little test, I used MP to create your Customer object. Took about 3
minutes.
Hope this helps a little and isn't too far from how a real Zopista would
do this!
From: "Bobby Mathew" <bobby@stylusinc.com>
To: <zope@zope.org>
Cc: <zope-db@zope.org>
Date: Tue, 25 Sep 2001 15:55:09 +0530
Subject: [Zope] Newbie Help needed Using the Zope Object Database
Hi All,
I have been playing around with Zope as a newbie for sometime now. Now I
=3D
want to start using the Object Database for my regular applications. I =
=3D
know the paradigm of using Object databases being different from the =3D
regular RDBMS. Now I understand how to design persistent classes in the
=3D
object paradigm but I am not clear how to store these classes within =3D
Zope in the database. Can someone enlighten me on how to create the =3D
following customer class as a persistent class within Zope.
Customer
Attributes :
Name
Age
Methods :
AddCustomer(Name, Age)
DeleteCustomer(Name)
LocateCustomer(Name)
I know about using python to create classes but its not clear how to use
=3D
python scripts and how to store persistent classes with Zope itself =3D
instead of python.
Help...
Thanks for any thoughts on this...
bobby
=3D=3D=3D=3D=3D
---------------
Dan Shafer, Author/Consultant
http://www.danshafer.com - Personal Site
http://www.gui.com - Ghostwriting Site
dshafer@yahoo.com
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com