Luca Manini wrote:
Hi,
I'm writing a simple Python Product, following the lines of two well known examples (Poll and Minimal). The Product imports fine, but when I try do add an instance to a Folder, thus accessing
http://localhost:9673/tests/manage_addProduct/Work/addPerson
Zope ask for authentication (I'm already in the ZMI).
<snip/>
The only difference I see with the Poll example is that I seperate the pure Python class (than should be usable out of Zope) from the "Zope" one, and the fact that I do not declare any security stuff (but Minimal does the same).
It is not clear to me which methods of the Person should eventually get security declarations. I suppone only does that will be called "through the Web", so, for example, the constructor will not need them.
<snip/>
Anyway I think the stuff should work even without security (or not?).
i'm just abt having the same problem. fact 1: these howtos are somewhat dated and really not as good as one would wish, but a good starting point. fact 2: between releases zopes security model has changed (several times). Im unsure abt security policy (default open, close open system % default closed, open closed system). If you apply old howtos to newer zopes, thats what happens. Take a look at newer products and try to understand, how THEY did it. sorry for not giving precise help hans PS: much doc simply lacks date and/or zope version info ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299