[Zope] Newbie: ZClass questions

Nick Trout nick@videosystem.co.uk
Fri, 1 Sep 2000 13:49:17 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0099_01C0141B.6C180580
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, I'm new to Zope. I'm just flailing around in all the docs and =
examples at the moment. I'm setting up a small intranet for our office.

I've been reading about ZClasses (havent done any SQL). Are these a very =
efficient way of storing data? Are these more/less efficient than =
setting up a database and managing it using ZSQL?

I read that any changes to a class instance is stored in the Zope =
database. Is there a way of turning this feature off to avoid the undo =
facility? ie. if you dont want undo.

I'm trying to set up a simple chat room as a teaching exercise. I'm =
thing I should implement a ZClass which is the room, containg a ZClass =
which will be a chat item. I've noticed an example, ZRTChat but =
everything there is implemented in Python (yuck!). It's much nicer to =
use the interface to create your classes. What are the pros and cons of =
the 2 approaches. Why implement it all in Python?

Cheers,
Nick.



------=_NextPart_000_0099_01C0141B.6C180580
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, I'm new to Zope. I'm just flailing =
around in=20
all the docs and examples at the moment.</FONT><FONT face=3DArial =
size=3D2> I'm=20
setting up a small intranet for our office.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've been reading about ZClasses =
(havent done any=20
SQL). Are these a very efficient way of storing data? Are these =
more/less=20
efficient than setting up a database and managing it using =
ZSQL?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I read that any changes to a class =
instance is=20
stored in the Zope database. Is there a way of turning this feature off =
to avoid=20
the undo facility? ie. if you dont want undo.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to set up a simple chat room =
as a=20
teaching exercise. I'm thing I should implement a ZClass which is the =
room,=20
containg a ZClass which will be a chat item. I've noticed an example, =
ZRTChat=20
but everything there is implemented in Python (yuck!). It's much nicer =
to use=20
the interface to create your classes. What are the pros and cons of the =
2=20
approaches. Why implement it all in Python?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nick.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0099_01C0141B.6C180580--