From abe3bfecb6636619f59284fe5eda153a241a9d68 Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Mon, 20 Jun 2011 22:25:25 +0200 Subject: [PATCH] allow to access default action by attr --- pyramid_formalchemy/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyramid_formalchemy/actions.py b/pyramid_formalchemy/actions.py index fa6264e..b6da266 100644 --- a/pyramid_formalchemy/actions.py +++ b/pyramid_formalchemy/actions.py @@ -390,11 +390,12 @@ delete = UIButton( cancel = UIButton( id='cancel', content=_('Cancel'), + permission='view', icon='ui-icon-circle-arrow-w', attrs=dict(href="request.fa_url(request.model_name)"), ) -defaults_actions = dict( +defaults_actions = RequestActions( listing_buttons=Actions(new), new_buttons=Actions(save, save_and_add_another, cancel), show_buttons=Actions(edit, back),