[Zope] HELP! Misunderstanding of permissions?

Casey Duncan c.duncan@nlada.org
Fri, 19 Oct 2001 09:43:41 -0400


On Friday 19 October 2001 09:28 am, Sidnei da Silva allegedly wrote:
> Hello everyone,
>
> In First Place, I hope that someone answer my questions this time. Im very
> disappointed with this list, because people spend time discussing things
> like if zope is good or not good and do not answer simple questions of
> people that is trying to learn how to use zope in a simple way.
>
> I need help on something that seems pretty strange to me:
>
> I'm developing a product in python, and everything its working fine, except
> that when i try to access any object of type File, i get an Unauthorized
> Error. Any other object that i try to access works fine. I tried to move
> the file object out of my  Custom object, and then i can access it without
> any problem. So, the only thing that can be wrong is my product.
>
> I have attached the code of my product for your viewing.
>
> Thanx.

Although I am not 100% sure this will work, it is a simple change and worth a 
try:

Change the declaration "filtered_meta_types" to "all_meta_types". See if that 
helps.

Also, I notice you have a lot of redundant base classes. I think 
OFS.Folder.Folder alone would suffice. Sometimes the order of these makes a 
difference. Try using just the single base class.

hth,
/---------------------------------------------------\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  c.duncan@nlada.org
\---------------------------------------------------/