Re: [Zope] Newbie question - Link between Methods based on Authorization

2000-12-19 Thread Timothy Wilson

On Tue, 19 Dec 2000, Michal Krejza wrote:

> I have problem with access to method. Example - There are two methods: A and
> B. Method A contains common information, accessible for all user (include
> anonymous). Source code in method B updates data for method A and access for
> method B is restrict only for users with roles "AdminTables". There is a
> link from method A to method B in the code of script A, and this link is
> viewable for all user (also for anonym). After click on this link, user is
> asked for authentication. So there is no problem, but HOW MAKE THIS LINK
> VIEWABLE ONLY FOR USER WITH AUTORIZATION FOR OBJEKT B ???

Hello Michal,

This may work:


 Method B


-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.com/


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Newbie question - Link between Methods based on Authorization

2000-12-19 Thread Oliver Bleutgen

> I am still newbie in Zope, so my question may be stupid - sorry.

> I have problem with access to method. Example - There are two methods: A
> and
> B. Method A contains common information, accessible for all user (include
> anonymous). Source code in method B updates data for method A and access
> for
> method B is restrict only for users with roles "AdminTables". There is a
> link from method A to method B in the code of script A, and this link is
> viewable for all user (also for anonym). After click on this link, user is
> asked for authentication. So there is no problem, but HOW MAKE THIS LINK
> VIEWABLE ONLY FOR USER WITH AUTORIZATION FOR OBJEKT B ???

Try

http://zdp.zope.org/projects/zsnippet/snippets/DTMLContent/PermissionContent

and zdp.zope.org in general.

cheers,
oliver


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Newbie question - Link between Methods based on Authorization

2000-12-19 Thread Michal Krejza

I am still newbie in Zope, so my question may be stupid - sorry.

I have problem with access to method. Example - There are two methods: A and
B. Method A contains common information, accessible for all user (include
anonymous). Source code in method B updates data for method A and access for
method B is restrict only for users with roles "AdminTables". There is a
link from method A to method B in the code of script A, and this link is
viewable for all user (also for anonym). After click on this link, user is
asked for authentication. So there is no problem, but HOW MAKE THIS LINK
VIEWABLE ONLY FOR USER WITH AUTORIZATION FOR OBJEKT B ???

Thx for your tips, Michal


___
Zope maillist  -  [EMAIL PROTECTED]
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 )