Hi list. I want to find some step by step reference about how to write a new product. I have found some how-tos, but I still feel completely lost. Everywhere I look, I see Zope specific function calls. Does any document exist containing product-API specific stuff that could aid a Zope little-above-newbie level developer? Thanks for your time and I apologize about my newbieness Regards Stavros.
hi stavros, the zope developer guide: http://www.zope.org/Documentation/Books/ZDG/current/index_html and the BoringProduct: http://www.zope.org/Members/gtk/Boring should give good starting points. for API documentation, the best reference is the zope source itself. most of what you need will be somewhere in $ZOPE_HOME/lib/python/ hth, peter. Stavros Tsolakos wrote:
Hi list.
I want to find some step by step reference about how to write a new product. I have found some how-tos, but I still feel completely lost. Everywhere I look, I see Zope specific function calls. Does any document exist containing product-API specific stuff that could aid a Zope little-above-newbie level developer?
Thanks for your time and I apologize about my newbieness
Regards Stavros.
On Tue, Feb 11, 2003 at 03:07:14PM +0100, Peter Sabaini wrote:
the zope developer guide:
http://www.zope.org/Documentation/Books/ZDG/current/index_html
and the BoringProduct:
http://www.zope.org/Members/gtk/Boring
should give good starting points.
I'll put in a plug for MaxM's Easy Product as a starting point: http://www.zope.org/Members/maxm/HowTo/easyProduct -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
On Tue, Feb 11, 2003 at 03:07:14PM +0100, Peter Sabaini wrote:
and the BoringProduct:
http://www.zope.org/Members/gtk/Boring
should give good starting points.
I would like to point out that Boring is rather old (1999) and uses a deprecated style for security declarations.* Another nice place to start with product development is here: http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02 *Old style security declaration: put everything in __ac_permissions__, usually at the beginning of the class: class Foo(SimpleItem.SimpleItem): __ac_permissions__ = ( ('Edit Foos', ('manage_editFoo',), 'View Foos', ('view',) ) def view(self): ... def manage_editFoo(self, data): ... "New" style (already several years old) registers permissions with AccessControl.ClassSecurityInfo which can be done throughout the class definition: import AccessControl class Foo(SimpleItem.SimpleItem): security = AccessControl.ClassSecurityInfo() security.declareProtected('View Foos', 'view') def view(self): ... security.declareProtected('Manage Foos', 'manage_editFoo') def manage_editFoo(self, data): ... -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's CARDIO-RAR-HIGH PRIEST! (random hero from isometric.spaceninja.com)
Another nice place to start with product development is here:
http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02
"New" style (already several years old) registers permissions with AccessControl.ClassSecurityInfo which can be done throughout the class definition:
I read between your lines. And I know that I should make a minimal security How-To. And someday I will. I swear ... regards Max M
At 15:28 2003-02-11 +0200, Stavros Tsolakos wrote:
Hi list.
I want to find some step by step reference about how to write a new product. I have found some how-tos, but I still feel completely lost. Everywhere I look, I see Zope specific function calls. Does any document exist containing product-API specific stuff that could aid a Zope little-above-newbie level developer?
The best product is probably to download existing products and look at the code. That's how I learnt what I now know.
Thanks for your time and I apologize about my newbieness
Regards Stavros.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
There is also some good stuff in some of the Zope books now published. I've been finding the Address Book example described in Bernstein and Robertson's Zope Bible to be particularly useful. It also goes into issues like security and building help files that I haven't seen in one place before. Good luck with your product, in any case. Rob Peter Bengtsson wrote:
At 15:28 2003-02-11 +0200, Stavros Tsolakos wrote:
Hi list.
I want to find some step by step reference about how to write a new product. I have found some how-tos, but I still feel completely lost. Everywhere I look, I see Zope specific function calls. Does any document exist containing product-API specific stuff that could aid a Zope little-above-newbie level developer?
The best product is probably to download existing products and look at the code. That's how I learnt what I now know.
-- Rob Thorne Torenware Networks WWW: http://www.torenware.com
participants (7)
-
maxm -
Mike Renfro -
Paul Winkler -
Peter Bengtsson -
Peter Sabaini -
Rob Thorne -
Stavros Tsolakos