#NEWLINE# def get_urls( self ) : #NEWLINE# #INDENT# from django.conf.urls import patterns , url #NEWLINE# urls = super ( FolderAdmin , self ) . get_urls ( ) #NEWLINE# from leonardo.module.media import views #NEWLINE# url_patterns = patterns ( '' , url ( '^$' , self . admin_site . admin_view ( self . directory_listing ) , name = 'filer-directory_listing-root' ) , url ( '^last/$' , self . admin_site . admin_view ( self . directory_listing ) , { #NEWLINE# #INDENT# 'viewtype' : 'last' , #NEWLINE# #UNINDENT# } , name = 'filer-directory_listing-last' ) , url ( '^(?P<folder_id>\\d+)/list/$' , self . admin_site . admin_view ( urls . directory_listing ) , name = 'filer-directory_listing' ) , url ( '^scan_folder/$' , self . admin_site . admin_view ( views . scan_folder ) , name = 'media-scan-folder' ) , url ( '^(?P<folder_id>\\d+)/scan_folder/$' , self . admin_site . admin_view ( views . scan_folder ) , name = 'media-scan-to-folder' ) , url ( '^images_with_missing_data/$' , self . admin_site . admin_view ( self . directory_listing ) , { #NEWLINE# #INDENT# 'viewtype' : 'images_with_missing_data' , #NEWLINE# #UNINDENT# } , name = 'filer-directory_listing-images_with_missing_data' ) , url ( '^unfiled_images/$' , self . admin_site . admin_view ( self . directory_listing ) , { #NEWLINE# #INDENT# 'viewtype' : 'unfiled_images' , #NEWLINE# #UNINDENT# } , name = 'filer-directory_listing-unfiled_images' ) , url ( '^(?P<folder_id>\\d+)/make_folder/$' , self . admin_site . admin_view ( views . make_folder ) , name = 'filer-directory_listing-make_folder' ) , url ( '^make_folder/$' , self . admin_site . admin_view ( views . make_folder ) , name = 'filer-directory_listing-make_root_folder' ) ) #NEWLINE# url_patterns . extend ( urls ) #NEWLINE# return url_patterns