Thanks for feedback. My appoach is similar.
I appended an additional member for resource mapper in config/routing.py:
...
map.resource('model', 'models', path_prefix='/admin/{model_name}',
controller='admin', member={'confirm':'GET'})
...
and redirected my 'Delete' links to this method.

But wonder if the same effect can be achieved more reliably (and
elegantly) by means of some kind of guarding decorators applied to
potentially dangerous (mostly destructive) methods?

We have such decorators for authentication/authorization purpose. Have
anyone seen such for confirmation problem?

The rationale here is to help powerful authenticated user not to
execute "# rm -rf /" with one click :)

Regards,
--
Vladimir

-- 
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