def get_edit_and_list_urls(url_prefix, view_template, name_template, permissions=()):
 return [admin_url((u'%s/(?P<pk>\\d+)/$' % url_prefix), (view_template % u'Edit'), name=(name_template % u'edit'), permissions=permissions), admin_url((u'%s/new/$' % url_prefix), (view_template % u'Edit'), name=(name_template % u'new'), kwargs={u'pk': None}, permissions=permissions), admin_url((u'%s/$' % url_prefix), (view_template % u'List'), name=(name_template % u'list'), permissions=permissions), admin_url((u'%s/list-settings/' % url_prefix), u'shuup.admin.modules.settings.views.ListSettingsView', name=(name_template % u'list_settings'), permissions=permissions)]

def get_edit_and_list_urls ( url_prefix , view_template , name_template , permissions = ( ) ) : return [ admin_url ( ( u'%s/(?P<pk>\\d+)/$' % url_prefix ) , ( view_template % u'Edit' ) , name = ( name_template % u'edit' ) , permissions = permissions ) , admin_url ( ( u'%s/new/$' % url_prefix ) , ( view_template % u'Edit' ) , name = ( name_template % u'new' ) , kwargs = { u'pk' : None } , permissions = permissions ) , admin_url ( ( u'%s/$' % url_prefix ) , ( view_template % u'List' ) , name = ( name_template % u'list' ) , permissions = permissions ) , admin_url ( ( u'%s/list-settings/' % url_prefix ) , u'shuup.admin.modules.settings.views.ListSettingsView' , name = ( name_template % u'list_settings' ) , permissions = permissions ) ]
get a list of edit/new/list urls for an object type with standardized urls and names .