HELP! Misunderstanding of permissions?
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. -- Sidnei da Silva X3ng Consultoria e Desenvolvimento Ltda. sidnei@x3ng.com.br
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 \---------------------------------------------------/
Well, I did it, and it not worked, but helped me to clarify the things a little more and to discover the REAL cause of the problem. No to mention that helped me to improve the code of my product. THANX CASEY!!!!! But now, the real thing: I noticed that the problem wasnt this product but another, that was put in the aquisiton chain by an access rule. This product contains a modified __bobo_traverse__ that i have copied from the "Mirrowing Folder", by Dieter Maurer. Because i just copied the code, without understanding what it is doing, i dont know how to fix, but i think that the line that says "unrestrictedTraverse" has something to do with the case. Any help? Thanx for the help again. Em Friday 19 October 2001 11:43, Casey Duncan escreveu:
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 \---------------------------------------------------/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Sidnei da Silva X3ng Consultoria e Desenvolvimento Ltda. sidnei@x3ng.com.br
participants (2)
-
Casey Duncan -
Sidnei da Silva