#NEWLINE# @ property #NEWLINE# def _decorated_urls( self ) : #NEWLINE# #INDENT# urlpatterns = self . _get_default_urlpatterns ( ) #NEWLINE# default_panel = None #NEWLINE# for panel in self . _registry . values ( ) : #NEWLINE# #INDENT# if ( panel . slug == self . default_panel ) : #NEWLINE# #INDENT# default_panel = panel #NEWLINE# continue #NEWLINE# #UNINDENT# url_slug = panel . slug . replace ( '.' , '/' ) #NEWLINE# urlpatterns += patterns ( '' , url ( ( '^%s/' % url_slug ) , include ( urlpatterns . _decorated_urls ) ) ) #NEWLINE# #UNINDENT# if ( not default_panel ) : #NEWLINE# #INDENT# raise NotRegistered ( ( 'The default panel "%s" is not registered.' % self . default_panel ) ) #NEWLINE# #UNINDENT# urlpatterns += patterns ( '' , url ( '' , include ( default_panel . _decorated_urls ) ) ) #NEWLINE# if ( not self . public ) : #NEWLINE# #INDENT# _decorate_urlconf ( urlpatterns , require_auth ) #NEWLINE# #UNINDENT# permissions = getattr ( self , 'permissions' , [ ] ) #NEWLINE# _decorate_urlconf ( urlpatterns , require_perms , permissions ) #NEWLINE# _decorate_urlconf ( urlpatterns , _current_component , dashboard = self ) #NEWLINE# return ( urlpatterns , self . slug , self . slug )