[Zope] Dynamically Picking which object to display

Graham Chiu anon_emouse@hotmail.com
Sat, 10 Jun 2000 09:10:09 +1300


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <393EA796.FFE64852@rri-medtech.com>, Jason Lee <jlee@rri-
medtech.com> writes
>a particular object based on a value.  For example, let's say a user tries to
>access www.foo.com/MyAccount/CCInfo.  If the user has authenticated, I need to
>show him the obviously sensitive data he has requested.  If he is not
>authenticated, however, I need to give him a login screen which, for argument's
>sake, is in the DTML document Login in the root folder.  How would I go about
>doing that?  Am I making sense?  Thanks...

This is what I do:

CCInfo
  if user has a valid sessionid and has logged in
    display the information
  else
    redirect to login screen
    login screen redirects back to CCInfo on successful login
  endif

Working examples at my auction site ( the php script just redirects to
my Zope based auction site )

http://www.compkarori.co.nz/auctions.php
- -- 
Regards,  Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBOUC0crTRdIWzaLpMEQJJUgCg/zVzA+fisMQRtk1SJfaGv63q6sEAoKCk
8M1Tnvzx1vjNT0Nv2X7YrG0e
=pKW1
-----END PGP SIGNATURE-----