[Zope] HELP! Permissions problem, ZClass

Marcus Mendes mvmendes@emdata.com.br
Wed, 18 Oct 2000 14:39:15 +0000


Take a look at Security View of its ZClass. Give permissions to
anonymous users.


Marcus Mendes


Eric Walstad wrote:
> 
> Help, pls! I have a ZClass that is functioning beautifully if I am logged
> in, but the anonymous user keeps getting prompted for a password.  The
> problem occurs when my DTML method trys to  create a new instance of the
> ZClass.  I tried giving that DTML method a Proxy of "Manager" but that isn't
> helping.
> 
> Any pointers?
> 
> Thanks,
> 
> Eric.
> 
> Here's the traceback:
> Zope Error
> 
>              Zope has encountered an error while publishing this resource.
> 
>              Unauthorized
> 
>              You are not authorized to access CNewsItem.
> 
>              Traceback (innermost last):
>                File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line
> 222, in publish_module
>                File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line
> 187, in publish
>                File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line
> 171, in publish
>                File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line
> 160, in mapply
>                  (Object: buildNews)
>                File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line
> 112, in call_object
>                  (Object: buildNews)
>                File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 172,
> in __call__
>                  (Object: buildNews)
>                File
> /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
> __call__
>                  (Object: buildNews)
>                File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py,
> line 146, in render
>                  (Object: manage_addProduct['NewsItem'])
>                File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py,
> line 337, in eval
>                  (Object: CNewsItem_add(_.None, _, NoRedir=1))
>                  (Info: _)
>                File <string>, line 0, in ?
>                File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 168,
> in __call__
>                  (Object: CNewsItem_add)
>                File
> /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
> __call__
>                  (Object: CNewsItem_add)
>                File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py,
> line 133, in render
>                  (Object: CNewsItem.createInObjectManager(REQUEST['id'],
> REQUEST))
>                File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py,
> line 331, in eval
>                  (Object: CNewsItem.createInObjectManager(REQUEST['id'],
> REQUEST))
>                  (Info: CNewsItem)
>                File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 194,
> in validate
>                  (Object: buildNews)
>                File
> /usr/local/Zope/lib/python/AccessControl/SecurityManager.py, line 139, in
> validate
>                File
> /usr/local/Zope/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in
> validate
>              Unauthorized: (see above)
> 
> _______________________________________________
> 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 )