#NEWLINE# def get_urls( self ) : #NEWLINE# #INDENT# urls = [ url ( '^$' , self . list_view . as_view ( ) , name = 'promotion-list' ) , url ( '^pages/$' , self . page_list . as_view ( ) , name = 'promotion-list-by-page' ) , url ( '^page/(?P<path>/([\\w-]+(/[\\w-]+)*/)?)$' , self . page_detail . as_view ( ) , name = 'promotion-list-by-url' ) , url ( '^create/$' , self . create_redirect_view . as_view ( ) , name = 'promotion-create-redirect' ) , url ( '^page-promotion/(?P<pk>\\d+)/$' , self . delete_page_promotion_view . as_view ( ) , name = 'pagepromotion-delete' ) ] #NEWLINE# for klass in PROMOTION_CLASSES : #NEWLINE# #INDENT# code = klass . classname ( ) #NEWLINE# urls += [ url ( ( 'create/%s/' % urls ) , getattr ( self , ( 'create_%s_view' % code ) ) . as_view ( ) , name = ( 'promotion-create-%s' % code ) ) , url ( ( '^update/(?P<ptype>%s)/(?P<pk>\\d+)/$' % code ) , getattr ( self , ( 'update_%s_view' % code ) ) . as_view ( ) , name = 'promotion-update' ) , url ( ( '^delete/(?P<ptype>%s)/(?P<pk>\\d+)/$' % code ) , getattr ( self , ( 'delete_%s_view' % code ) ) . as_view ( ) , name = 'promotion-delete' ) ] #NEWLINE# #UNINDENT# return self . post_process_urls ( urls )