[Zope-dev] I am lost. Please help.

Stephan Richter srichter@cbu.edu
Sun, 30 Apr 2000 10:56:05 -0500


What you want to do is what I would call advanced Zope programming. How 
long do you use Zope? If you just started, I would strongly suggest you do 
some smaller projects first learning Zope and its philosophy, as for 
example aquisition, object publishing and so on.

>   Here's what I want:
>
>     - classes defined in Python modules

I learned writing Python products using the the "Boring" Product. It is 
written to learn how to write Python products and there is a nice how-to 
for it. It would take far too long to explain something like this in an 
E-mail. (You actually can look at my ZPickle and ZCounter, they are so 
simple (and derived from Boring), that you can see jow it is done.

>     - object persistence via ZODB

You mean, you want to add instances of these classes to the ZODB? No 
problem. Either you use the Management interface or one of the manage_* 
methods to do it.

>     - manipulation of objects via XML-RPC

I have never played with that. I hope you find someone who knows how. 
Mmmhh, I would love to see an How-To on this.

>     - Zope security features

Yeah, it took me a couple of hours to understand as well, but it is so easy.
Example:
1. You have a Folder X, that only certain people can reach.
2. Go into the security properties of Folder X and add a user defined role 
(for example SPECIAL) on the bottom.
3. Then, for the permissions (like View Content) you want to give only to 
the users, uncheck "Aquire Permission Settings" and Anonymous access, and 
make a checkmark on your role.
4. If you create now a user folder in this folder X or above, you will see, 
that you users can have a role called SPECIAL. If you give users this role, 
they will be able to get into folder X, otherwise they don't.

>     - Old Product API; couldn't get it
>       to work, following How-To's
>     - ZClasses; couldn't get it to work,
>       using Zope Guides

ZClasses are pretty easy. Maybe you should order beehive's new tutorial on 
ZClasses. I read the German and English version and it pretty good.

Regards,
Stephan

--
Stephan Richter - (901) 573-3308 - srichter@cbu.edu
CBU - Physics & Chemistry; Framework Web - Web Design & Development
PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391