Is there any obvious way to get the dispatch mechanism to behave differently under specific circumstances?

We have a site where the clients can enter live data, but when we want to upgrade code/fix bugs etc we would like them to be locked out and a road up page to be shown instead.

Assuming we have decision value the alternatives seem to be

1) Fix up those views which need to be hidden so they change representation when the value says hide.

2) Change the dispatcher so it knows to substitute different views when the hide signal is on.

3) some other mechanism not yet discovered


Not wishing to fix all of our views (in particular the contrib/admin stuff) I tried 2 and had some success. I can get a resolver which either points to the original value or a generic road up page.

Have others tried anything similar?
--
Robin Becker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to