Viewing versions and logging out?
I know the answers exist to both of these questions, but I can't remember where I saw them. Viewing Versions: There is a way to give someone a URL that lets them see into a version you have created. What is it? Once they've done that, is there another URL that will disable the version? Logging out: There is a snippet of code that logs someone out (posted to zope@zope.org just in the last few days perhaps? Searching my inbox came up empty). What was that again? Thanks, sorry to ask questions which I know I've already bumped into the answer already.... I would have thought searches for "logoff", "logout", or "go" (I seem to remember that the URL for the version had that in it....) on www.zope.org would have come up with something....
On Wed, 1 Dec 1999, Art Hampton wrote:
There is a way to give someone a URL that lets them see into a version you have created. What is it? Once they've done that, is there another URL that will disable the version?
If you have a site on http://my.site/, and Zope under /Zope/ URL, and you have a Version "Sidebar_Ver" in a folder "Test1", the URL to the version is http://my.site/Zope/Test1/Sidebar_Ver. If you assign correct permissions for the version, you can define who can join the version. Once I had a version that can be viewed by Anonymous user (but only view, not edit). You can publish direct URLs to join and leave the version: http://my.site/Zope/Test1/Sidebar_Ver/enter and http://my.site/Zope/Test1/Sidebar_Ver/leave.
Logging out: There is a snippet of code that logs someone out (posted to zope@zope.org just in the last few days perhaps? Searching my inbox came up empty). What was that again?
Depends on how you do authentication - Cookie or Basic Auth. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann wrote:
On Wed, 1 Dec 1999, Art Hampton wrote:
There is a way to give someone a URL that lets them see into a version you have created. What is it? Once they've done that, is there another URL that will disable the version?
If you have a site on http://my.site/, and Zope under /Zope/ URL, and you have a Version "Sidebar_Ver" in a folder "Test1", the URL to the version is http://my.site/Zope/Test1/Sidebar_Ver. If you assign correct permissions for the version, you can define who can join the version. Once I had a version that can be viewed by Anonymous user (but only view, not edit). You can publish direct URLs to join and leave the version: http://my.site/Zope/Test1/Sidebar_Ver/enter and http://my.site/Zope/Test1/Sidebar_Ver/leave.
Thanks, works great.
Logging out: There is a snippet of code that logs someone out (posted to zope@zope.org just in the last few days perhaps? Searching my inbox came up empty). What was that again?
Depends on how you do authentication - Cookie or Basic Auth.
I haven't messed at all with security yet - all my settings are exactly as they were when Zope was installed. So I don't even know the answer to that, other than however it is set up when it is installed. I'm using the acl_users folder (by default), and haven't looked into the GenericUserFolder and any other security control folders yet....
On Thu, 2 Dec 1999, Art Hampton wrote:
Logging out: There is a snippet of code that logs someone out (posted to zope@zope.org just in the last few days perhaps? Searching my inbox came up empty). What was that again?
Depends on how you do authentication - Cookie or Basic Auth.
I haven't messed at all with security yet - all my settings are exactly as they were when Zope was installed.
So I don't even know the answer to that, other than however it is set up when it is installed. I'm using the acl_users folder (by default), and haven't looked into the GenericUserFolder and any other security control folders yet....
So you are using Basic Auth scheme. To logout user do <!--#raise Unauthorised--> (if I spell this correctly). Search through mailing list for greater details - the topic had been discussed many times before. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Art Hampton -
Oleg Broytmann