Adding Products through Products
hi! i'm developing a product, which is supposed to create instances of another product in it's directory. how do i import the files / call the appropriate methods. ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99
Hi, I uploaded a few examples a while ago that do somethign similar. There's a guestbook, which gives you a 'Guest Book' product which allows the creation of 'Guest Book Entry' products within itself. There's also a modification to Amos's poll product which Allows the creation of a 'Poll' product, which places 'Question' products inside itself, which in turn place 'Response' products inside themselves. Both of these are in the 'contributed code' section of the Zope site. Next on my list is a 'Russian Doll product' which allows you to place inside it a 'Russian doll' product which in turn allows you to place inside it another 'Russian Doll' product , which in turn .... ;) Cheers, Andy.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Sebastian Luehnsdorf Sent: Monday, May 10, 1999 11:58 AM To: zope@zope.org Subject: [Zope] Adding Products through Products
hi!
i'm developing a product, which is supposed to create instances of another product in it's directory. how do i import the files / call the appropriate methods.
ciao, basti
--------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
In article <000301be9b09$ac1ec060$4c25cacf@lycos>, Andy Smith <andy@ictibroker.com> wrote:
Next on my list is a 'Russian Doll product' which allows you to place inside it a 'Russian doll' product which in turn allows you to place inside it another 'Russian Doll' product , which in turn ....
Playing with the ZClasses tutorial, I noticed that I was able to place and instance of CD inside the CD class. I removed it before shutting down since I wasn't sure Zope would be able to deal with the circular reference on startup. Reminds me of a bug in the old Amiga Workbench 1.3: create two folders, a and b. Open their windows. Now draw a's icon into b's open window, and vice versa. Close the windows and *poof*, they've disappeared into each other forever. I couldn't get Zope to do this one, though :-)
At 20:35 10/05/99 , Ty Sarna wrote:
In article <000301be9b09$ac1ec060$4c25cacf@lycos>, Andy Smith <andy@ictibroker.com> wrote:
Next on my list is a 'Russian Doll product' which allows you to place inside it a 'Russian doll' product which in turn allows you to place inside it another 'Russian Doll' product , which in turn ....
Playing with the ZClasses tutorial, I noticed that I was able to place and instance of CD inside the CD class. I removed it before shutting down since I wasn't sure Zope would be able to deal with the circular reference on startup.
Reminds me of a bug in the old Amiga Workbench 1.3: create two folders, a and b. Open their windows. Now draw a's icon into b's open window, and vice versa. Close the windows and *poof*, they've disappeared into each other forever. I couldn't get Zope to do this one, though :-)
Sound like fine to me.. Zope can easily deal with an _instance_ of a ZClass within the _definition_ of that class. The fact that you can then make a recursive reference shouldn't worry Zope too much I think.. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (4)
-
Andy Smith -
Martijn Pieters -
Sebastian Luehnsdorf -
tsarnaļ¼ endicor.com