[Twisted-web] Nevow guard with other than 'root' resource

Christopher Armstrong twisted-web@twistedmatrix.com
Sun, 07 Mar 2004 15:04:57 -0500


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE697E1625C610FFDD017E203
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

James Y Knight wrote:
> Janne mentioned on IRC that the actual goal is to be able to ask for 
> username/password login for some children but not others. Thus, I 
> suspect a solution where the SessionWrapper is on the root, but is 
> configured somehow to not require login except for certain resources 
> would work.
> 
> I dunno how to do that but it looks probably possible from the API?

It was certainly possible with woven.guard; you could pass in two 
separate resources, one for anon and one for loggedin. Of course those 
resources could also look at the session to see if the user is logged 
in, then redirect to the login screen if necessary. No idea how 
nevow.guard works.


-- 
  Twisted | Christopher Armstrong: International Man of Twistery
   Radix  |          Release Manager,  Twisted Project
---------+           http://radix.twistedmatrix.com/

--------------enigE697E1625C610FFDD017E203
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAS4BqNp279O1/OG4RAiyPAJ9tzvIJxH0X+Qm81XrSiOvWckCq4QCdGrua
g0mr1FnzzCw5CUwbtRnx/p8=
=2LVE
-----END PGP SIGNATURE-----

--------------enigE697E1625C610FFDD017E203--