<s> from django . conf . urls import patterns , url <EOL> from django . views . decorators . csrf import csrf_exempt <EOL> from oscar . core . application import Application <EOL> from oscar_accounts . api import decorators , views <EOL> class APIApplication ( Application ) : <EOL> name = None <EOL> accounts_view = views . AccountsView <EOL> account_view = views . AccountView <EOL> account_redemptions_view = views . AccountRedemptionsView <EOL> account_refunds_view = views . AccountRefundsView <EOL> transfer_view = views . TransferView <EOL> transfer_reverse_view = views . TransferReverseView <EOL> transfer_refunds_view = views . TransferRefundsView <EOL> def get_urls ( self ) : <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , <EOL> self . accounts_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . account_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . account_redemptions_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . account_refunds_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . transfer_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . transfer_reverse_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , <EOL> self . transfer_refunds_view . as_view ( ) , <EOL> name = '<STR_LIT>' ) , <EOL> ) <EOL> return self . post_process_urls ( urlpatterns ) <EOL> def get_url_decorator ( self , url_name ) : <EOL> return lambda x : csrf_exempt ( decorators . basicauth ( x ) ) <EOL> application = APIApplication ( ) </s>
