I would try to think about this as "some button on my site is modifying the
ACL for the /personal-data resource". It is easy to create dynamic ACLs
which can query your data store to determine if something is enabled or
not. From there the ACL controls who has access with little effort on your
part.


On Tue, Jan 15, 2013 at 6:00 AM, Andreas Jung <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Let's assume that we have a Pyramid site with several functional
> sections. As part of maintenance operations you want to disable a parts
> of the site e.g. by disallowing all views under a certain certain
> route/path like /personal-data or so. My vision is having a central
> place in my application where I can enable/disable the various parts
> of the application with a click and this should have an immediate effect
> without reconfiguration of app-servers, reverse proxies etc...any ideas
> how to do this best with Pyramid?
>
> Andreas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJQ9UTJAAoJEADcfz7u4AZjTTELwJA8/P2b/vuILFUhVtj5fo1T
> QTJ0WDFlroPHGBafrblAdLXBcTtcfFM2cqL7Ssgfv5OHqHJQ3oYtorFovKxgAJRf
> QJtQAAVn3dlDP3zj/Gi2x8/6uD1geBKAyAJeZRPQGOoP9mt5R3N7ChipFJh8bDMM
> kVqx5pyHA592IWwcBQqAI7MZPQT2pU8IlMU93r3ubcZCsSXWea3+1IRthBFC7esN
> ndCSnrNMIREJz65a/UbfFJLHIYfd7G82Fe5QV1fAcE0l38eDtD0xWIVq4J/w7NMl
> xx7SNk0Zz0aO/JdryKpH9txCs+i/WOSQoxje72uoM22HaoZ/QT7M2AgDfzkPXvpc
> rWqMHEHh6E+zL1B4HeA/EtanHOR8h5Twzu1iBHHeLjoVBmumnxrzq4vtZkX98VKS
> 9DXiaE7ZfW+DUo2Ymn11uPi978QsAIVfOytJ2N/d5nFwNH9N2juH/986yzVNOUrq
> fjhyNRb/Y2HQqz/30J7l8tNJM0hMJxg=
> =eRvm
> -----END PGP SIGNATURE-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to