Re: [Zope] How to start developing in zope

2000-07-31 Thread Nico Grubert

Date: Thu, 27 Jul 2000 06:42:39 -0400 (EDT)
From: Firestar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope] How to start developing in zope

Hi, I have read through(and tried out) the tutorials and Guides at Zope.org,
and now eager to port my company's website over to Zope. (The website was
originally programmed in PHP)

In my original design, I used OOP mainly. I defined each section(e.g. News,
Events, Products) as a class by itself, inheriting from a "main" superclass.
Each class would contain their own set of attributes(such as font-color,
title) and methods(e.g. display news headline, or display events schedule).
Common attributes  method that are widely used are placed(shared) in the
"main" class(e.g. talking to MySQL database).

So, if there's any changes or updates, inheritance will propagate the
changes to the rest of the subclasses. (As usual, management will require
extra features such as personalised page, membership or web-based email to
be added in future. Hopefully, this kind of structure would make adding new
features a breeze.)

I believe Zope is based on a similar way (and much more powerful). I was
wondering how shld i start something like this in Zope - i read abt
ZClasses(where you can define your own Folders), Products(for defining yr
business logic) and DTML(for dynamic data display). Your opinions will be
much appreciated.

regards,
firestar


also, use properties which can be used as global variables...
by the way, zclasses are a very good way using object-oriented tasks

cheers,
nico

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to start developing in zope

2000-07-30 Thread Kapil Thangavelu

Firestar wrote:
 
 Hi, I have read through(and tried out) the tutorials and Guides at Zope.org,
 and now eager to port my company's website over to Zope. (The website was
 originally programmed in PHP)
 
 In my original design, I used OOP mainly. I defined each section(e.g. News,
 Events, Products) as a class by itself, inheriting from a "main" superclass.
 Each class would contain their own set of attributes(such as font-color,
 title) and methods(e.g. display news headline, or display events schedule).
 Common attributes  method that are widely used are placed(shared) in the
 "main" class(e.g. talking to MySQL database).
 
 So, if there's any changes or updates, inheritance will propagate the
 changes to the rest of the subclasses. (As usual, management will require
 extra features such as personalised page, membership or web-based email to
 be added in future. Hopefully, this kind of structure would make adding new
 features a breeze.)
 
 I believe Zope is based on a similar way (and much more powerful). I was
 wondering how shld i start something like this in Zope - i read abt
 ZClasses(where you can define your own Folders), Products(for defining yr
 business logic) and DTML(for dynamic data display). Your opinions will be
 much appreciated.
 
 regards,
 firestar


My Take. zope adds enough complexity and options that they're is
invariable More than one way to it. i generally do pure logic suff in
base classes in python. and then setup an inherited zclass to do the
display and sql stuff.

i think you should also take rely on acquistion more for your sql
issues. you're classes can acquire the sql stuff. try sticking an SQL
folder in your root zope and call your methods 
dtml-in "SQL.myMethod()"
/dtml-in

or alternatively in the section for each class.

acquistion is an integral part of zope and is pretty powerful for
simplifying design and implementation.

Kapil

 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to start developing in zope

2000-07-30 Thread Firestar

--Original Message--
From: Kapil Thangavelu [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 30, 2000 3:21:54 PM GMT
Subject: Re: [Zope] How to start developing in zope

acquistion is an integral part of zope and is pretty powerful for
simplifying design and implementation.

Kapil

---
Hi, thanks for your reply.

Is acquisition similar to the concept of 'inheritance' in OOP? (or more?) I
heard of this 'algebra of acquisition' written by someone...is it essential
and where can i find it? TIA.

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to start developing in zope

2000-07-30 Thread Curtis Maloney

On Mon, 31 Jul 2000, Firestar wrote:
 Hi, thanks for your reply.

 Is acquisition similar to the concept of 'inheritance' in OOP? (or more?) I
 heard of this 'algebra of acquisition' written by someone...is it essential
 and where can i find it? TIA.

In many ways, yes.  Acquisition is very similar to inheritance, in that it 
deals with the sharing of namespaces.  After that, it starts to become a 
little more complex. (o8

An important thing to remember if you're coming from an OO background (like 
C++, for instance) is that EVERYTHING is an object.  Even the folders.

I highly recommend you read the Acquisition Algebra document on the Zope 
website (easy to search for).  The main exception to the normal rules of 
acquisition, it seems, is the DTML Method, which directly inherits the 
namespace of the referring object, instead of using AA.

 regards,
 firestar


Have a better one,
Curtis.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] How to start developing in zope

2000-07-27 Thread Firestar

Hi, I have read through(and tried out) the tutorials and Guides at Zope.org,
and now eager to port my company's website over to Zope. (The website was
originally programmed in PHP)

In my original design, I used OOP mainly. I defined each section(e.g. News,
Events, Products) as a class by itself, inheriting from a "main" superclass.
Each class would contain their own set of attributes(such as font-color,
title) and methods(e.g. display news headline, or display events schedule).
Common attributes  method that are widely used are placed(shared) in the
"main" class(e.g. talking to MySQL database).

So, if there's any changes or updates, inheritance will propagate the
changes to the rest of the subclasses. (As usual, management will require
extra features such as personalised page, membership or web-based email to
be added in future. Hopefully, this kind of structure would make adding new
features a breeze.)

I believe Zope is based on a similar way (and much more powerful). I was
wondering how shld i start something like this in Zope - i read abt
ZClasses(where you can define your own Folders), Products(for defining yr
business logic) and DTML(for dynamic data display). Your opinions will be
much appreciated.

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )