I'm pulling my hair out. Have my questions been asked and answered 500 times on this list? I don't care, put me on the dink list, I'm desperate. It's not like I haven't been pounding my head against the docs for too long.
Here's what I want:
- classes defined in Python modules - object persistence via ZODB - manipulation of objects via XML-RPC - Zope security features
I _don't_ need:
- manipulation of my objects via Zope Management Interface
I have tried:
- Old Product API; couldn't get it to work, following How-To's - ZClasses; couldn't get it to work, using Zope Guides
Am I an idiot? If I follow the directions in the How-To's and Guides, will I end up with what I want? Have I screwed up? Can I no longer follow instructions?
This used to seem much clearer. Maybe something heavy fell on my head.
Where do I start over? My god, I'm frustrated.
Thanks for any help. __________________________________________________________________________ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
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
">" == Stephan Richter srichter@cbu.edu writes:
I feel your pain. I wound up with a bastard zope style, some notes from my trip..
1. I used external methods as 'entry point' into my own object system. The key for me is that I didn't need Zope's tree and didn't want to restart Zope everytime I made a change.
2. I used a seperate ZODB instance, in the architecture I'm building only the data is persistent, not the code, a module added to <zope>/lib/python which opens a ZODB and is imported by the ExternalMethod is a ok way to have a cached open db connection.
As for security, your external methods are full participants in the Zope scheme. I know this type of thing is a bit flakey, the risk is that you wind up writing yourself features which Zope has built in. But it's really nice to be able to build something without having to support a big existing API or restarting Zope all the time.
I have thought from time to time that there could be a 'mirco-Zope' release, just a ZServer ( and PCGI ) and ZODB. This would be well suited for people who want to do everything in python.
Stefan
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
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )