<s> from django . conf . urls import patterns , url , include <EOL> from django . conf import settings <EOL> from . apps . account import urls as urls_account <EOL> from . utils import autons_include <EOL> urlconf_patterns = [ <EOL> ( '<STR_LIT>' , url ( r'<STR_LIT>' , <EOL> autons_include ( '<STR_LIT>' ) ) ) , <EOL> ( '<STR_LIT>' , url ( r'<STR_LIT>' , <EOL> autons_include ( '<STR_LIT>' ) ) ) , <EOL> ( '<STR_LIT>' , url ( r'<STR_LIT>' , <EOL> autons_include ( '<STR_LIT>' ) ) ) , <EOL> ( '<STR_LIT>' , url ( r'<STR_LIT>' , <EOL> autons_include ( '<STR_LIT>' ) ) ) ] <EOL> urlconf_enabled = set ( getattr ( settings , <EOL> '<STR_LIT>' , <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) or list ( ) ) <EOL> urlconf_patterns = list ( url for name , url <EOL> in urlconf_patterns if name in urlconf_enabled ) <EOL> if '<STR_LIT>' in urlconf_enabled : <EOL> urlconf_patterns . append ( url ( r'<STR_LIT>' , <EOL> autons_include ( '<STR_LIT>' ) ) ) <EOL> else : <EOL> account_patterns = list ( ) <EOL> for k in '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' : <EOL> if '<STR_LIT>' . format ( k ) not in urlconf_enabled : continue <EOL> account_patterns . extend ( <EOL> getattr ( urls_account , '<STR_LIT>' . format ( k ) ) ) <EOL> urlconf_patterns . append ( url ( r'<STR_LIT>' , <EOL> include ( patterns ( '<STR_LIT>' , * account_patterns ) , '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> urlconf_patterns = patterns ( '<STR_LIT>' , * urlconf_patterns ) <EOL> remotestorage_patterns = urlconf_patterns , '<STR_LIT>' , '<STR_LIT>' </s>
