Module ImportFrom alias Import alias alias alias Import alias alias alias Import alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Index Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Print NameLoad NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str Str keyword Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults kwarg body If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpOr BoolOpAnd SubscriptLoad NameLoad Index Str CompareNotEq NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq NameLoad Str BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq NameLoad Str BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str CompareEq Call NameLoad NameLoad Num body Continue Print BinOpMod Str NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Print BinOpMod Str BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A optparse make_option N/A datetime os sys N/A urllib urllib2 urlparse N/A re django.db connection models django.core.management call_command sql color django.core.management.base NoArgsCommand django.conf settings compress_geonames GEONAMES_DATA N/A GEONAMES_DUMPS_URL http://download.geonames.org/export/dump/ download N/A N/A url filepath N/A False N/A N/A 
    Copy the contents of a file from a given URL to a local file.
     N/A filepath N/A filepath N/A N/A N/A url split / N/A -1 N/A web_file N/A N/A urllib urlopen url N/A dir N/A N/A / join N/A N/A N/A filepath split / N/A -1 N/A N/A N/A N/A N/A os path isdir dir N/A N/A N/A N/A os makedirs dir N/A web_file_size N/A N/A N/A N/A N/A web_file info getheaders Content-Length N/A 0 N/A N/A N/A N/A os path isfile filepath N/A N/A existing_file N/A open filepath r N/A existing_file_size N/A len N/A N/A existing_file read N/A existing_file_size web_file_size N/A N/A existing_file_size web_file_size N/A N/A N/A N/A existing_file_size close N/A N/A local_file N/A open filepath w N/A N/A N/A local_file write N/A N/A web_file read N/A N/A N/A web_file close N/A N/A N/A local_file close N/A Command N/A NoArgsCommand N/A N/A help Download all data files from geonames to data dir. N/A option_list N/A N/A NoArgsCommand option_list N/A N/A make_option -t --time action store_true dest time default False help Print the total time in running this command N/A make_option --country action store dest country default False help Download only data for specified country. N/A make_option --no-alternates action store_true dest no_alternates default False help Disable loading of the Geonames alternate names data. N/A make_option --no-geonames action store_true dest no_geonames default False help Disable loading of the Geonames data. handle_noargs N/A N/A self N/A options N/A N/A N/A options N/A time N/A N/A start_time N/A N/A N/A datetime datetime now N/A response N/A N/A urllib2 urlopen N/A N/A urllib2 Request url GEONAMES_DUMPS_URL N/A files N/A N/A re findall \<a href="(.+\.(?:txt|zip))"\> N/A N/A response read N/A file files N/A N/A N/A N/A N/A options N/A country N/A file N/A %s.zip N/A options N/A country N/A N/A options N/A no_geonames N/A file allCountries.zip N/A N/A options N/A no_alternates N/A file alternateNames.zip N/A N/A N/A options N/A country N/A N/A len file 6 N/A N/A N/A N/A 
Start download "%s" file file N/A N/A download N/A N/A urlparse urljoin GEONAMES_DUMPS_URL file N/A N/A N/A os path join GEONAMES_DATA file N/A N/A options N/A time N/A N/A N/A 
Completed in %s N/A N/A N/A N/A datetime datetime now start_time N/A N/A