Module Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad Call NameLoad NameLoad attr Index Str Index Num decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad GeneratorExp BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr decorator_list Call NameLoad keyword Call NameLoad keyword Num FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num Call NameLoad SubscriptLoad NameLoad Slice Num Num Call NameLoad SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpMod Call NameLoad SubscriptLoad NameLoad Slice Num Num Num Call NameLoad SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Expr Call NameLoad Assign NameStore ListLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Str body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore NameLoad Continue Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Call NameLoad CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str Call AttributeLoad Dict Str Str Str Str attr SubscriptLoad NameLoad Index Num Str Call AttributeLoad Dict Str Str Str Str Str Str attr SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Slice Num Num Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr SubscriptLoad NameLoad Index Num ListLoad ListLoad orelse If CompareIn SubscriptLoad NameLoad Slice Num TupleLoad Str Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str handlers ExceptHandler type NameLoad body Pass orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Index Num CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str handlers ExceptHandler type NameLoad body Pass orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num NameLoad Str CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str handlers ExceptHandler type NameLoad body Pass orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body AugAssignAdd NameStore SubscriptLoad NameLoad Slice Num Num orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr SubscriptLoad NameLoad Slice Num Num ListLoad ListLoad orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpMod Str NameLoad If CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Raise Call NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr keyword Str keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad NameLoad Str keyword Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr Assign AttributeStore NameLoad attr TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad SubscriptLoad NameLoad Index Str attr keyword CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str keyword CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str keyword CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str Str keyword CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad Call NameLoad Str attr Dict
N/A N/A random N/A sys collections namedtuple defaultdict datetime datetime date time timedelta logging getLogger operator itemgetter StringIO StringIO urllib2 urlopen zipfile ZipFile django.http Http404 django.db transaction reset_queries molly.apps.places EntityCache molly.apps.places.models Entity Route StopOnRoute Source Journey ScheduledStop molly.apps.places.providers BaseMapsProvider NaptanMapsProvider molly.conf.provider task molly.utils.i18n set_name_in_language N/A logger N/A getLogger __name__ N/A weekbool N/A namedtuple weekbool mon tue wed thu fri sat sun AtcoCifTimetableProvider N/A BaseMapsProvider N/A N/A 
    This provider loads ATCO-CIF dumps and parses them to extract timetable
    data. This only handles a subset of the ATCO-CIF standard, in particular,
    it deals with the TfGM released data (the only released data atm)
     __init__ N/A N/A self url N/A N/A N/A 
        URL to an ATCO-CIF zip to be used
         N/A N/A self _url url N/A N/A self _cache N/A EntityCache N/A N/A self _entity_type N/A N/A N/A N/A N/A NaptanMapsProvider None _get_entity_types N/A BCT N/A 0 N/A import_data N/A N/A self N/A metadata N/A N/A deleted_routes N/A set N/A N/A N/A N/A N/A Route objects filter external_ref__startswith N/A self _url values_list external_ref N/A archive N/A ZipFile N/A StringIO N/A N/A N/A urlopen N/A self _url read N/A file N/A N/A archive namelist N/A N/A N/A N/A logger info file N/A routes N/A N/A self _import_cif N/A N/A archive open file N/A N/A N/A logger info N/A : %d routes in file
 N/A len routes N/A N/A N/A self _import_routes routes N/A deleted_routes N/A set N/A N/A N/A self _url N/A route N/A id N/A route routes N/A N/A N/A archive close N/A route deleted_routes N/A N/A N/A N/A N/A N/A N/A Route objects filter external_ref route delete N/A N/A task run_every N/A timedelta days 7 _parse_cif_date N/A N/A self datestring N/A N/A N/A N/A date N/A int N/A datestring N/A 0 4 N/A int N/A datestring N/A 4 6 N/A int N/A datestring N/A 6 8 N/A _parse_cif_time N/A N/A self timestring N/A N/A N/A N/A time N/A N/A int N/A timestring N/A 0 2 24 N/A int N/A timestring N/A 2 4 N/A _import_cif N/A N/A self cif N/A N/A N/A 
        Parse a CIF file
         N/A N/A self _cache N/A EntityCache N/A N/A reset_queries N/A routes N/A N/A this_journey None N/A line cif N/A N/A N/A N/A line N/A 2 QS N/A N/A N/A this_journey None N/A N/A N/A N/A N/A N/A routes N/A -1 N/A journies append this_journey N/A N/A N/A line N/A 2 D N/A N/A this_journey None N/A N/A this_journey N/A operator-code id start-date end-date days school-holidays bank-holidays route vehicle direction notes stops N/A line N/A 3 7 N/A line N/A 7 13 N/A N/A self _parse_cif_date N/A line N/A 13 21 N/A N/A self _parse_cif_date N/A line N/A 21 29 N/A weekbool N/A N/A line N/A 29 1 N/A N/A line N/A 30 1 N/A N/A line N/A 31 1 N/A N/A line N/A 32 1 N/A N/A line N/A 33 1 N/A N/A line N/A 34 1 N/A N/A line N/A 35 1 N/A N/A N/A S H term-time holidays get N/A line N/A 36 all N/A N/A N/A A B X additional holidays non-holidays get N/A line N/A 37 all N/A line N/A 38 42 N/A N/A N/A line N/A 48 56 strip N/A line N/A 64 N/A N/A N/A N/A N/A N/A line N/A 2 N/A QN ZN N/A N/A N/A N/A N/A this_journey N/A notes append N/A line N/A 7 N/A N/A N/A N/A line N/A 2 QO N/A N/A N/A N/A N/A N/A N/A this_journey N/A stops append N/A entity sta std activity estimated fare-stage N/A N/A self _cache N/A N/A atco:%s N/A N/A N/A line N/A 2 14 strip None N/A N/A self _parse_cif_time N/A line N/A 14 18 O N/A N/A line N/A 22 0 N/A N/A line N/A 24 1 N/A N/A N/A Http404 N/A N/A N/A N/A N/A N/A line N/A 2 QI N/A N/A N/A N/A N/A N/A N/A this_journey N/A stops append N/A entity sta std activity estimated fare-stage N/A N/A self _cache N/A N/A atco:%s N/A N/A N/A line N/A 2 14 strip N/A N/A self _parse_cif_time N/A line N/A 14 18 N/A N/A self _parse_cif_time N/A line N/A 18 22 N/A line N/A 22 N/A N/A line N/A 27 0 N/A N/A line N/A 29 1 N/A N/A N/A Http404 N/A N/A N/A N/A N/A N/A line N/A 2 QT N/A N/A N/A N/A N/A N/A N/A this_journey N/A stops append N/A entity sta std activity estimated fare-stage N/A N/A self _cache N/A N/A atco:%s N/A N/A N/A line N/A 2 14 strip N/A N/A self _parse_cif_time N/A line N/A 14 18 None F N/A N/A line N/A 22 0 N/A N/A line N/A 24 1 N/A N/A N/A Http404 N/A N/A N/A N/A N/A N/A line N/A 2 ZL N/A N/A route_id N/A line N/A 2 N/A N/A N/A N/A line N/A 2 ZD N/A N/A route_id N/A line N/A 18 -1 N/A N/A N/A N/A line N/A 2 ZS N/A N/A N/A this_journey None N/A N/A N/A N/A N/A N/A routes N/A -1 N/A journies append this_journey N/A N/A N/A routes append N/A id number description stops journies route_id N/A N/A N/A line N/A 10 14 strip N/A line N/A 14 -1 N/A N/A N/A N/A N/A N/A line N/A 2 ZA N/A N/A stop_code N/A N/A N/A line N/A 3 15 strip N/A N/A N/A entity N/A N/A self _cache N/A N/A atco:%s stop_code N/A N/A N/A entity source N/A N/A self _get_source N/A N/A N/A Http404 N/A N/A N/A Http404 N/A N/A N/A N/A entity N/A N/A N/A Entity objects get source N/A N/A self _get_source _identifiers__scheme atco _identifiers__value stop_code N/A N/A N/A N/A Entity DoesNotExist N/A N/A entity N/A Entity source N/A N/A self _get_source N/A identifiers N/A atco stop_code N/A entity_type N/A self _entity_type N/A N/A entity primary_type entity_type N/A N/A N/A entity save identifiers identifiers N/A N/A set_name_in_language entity en title N/A N/A N/A line N/A 15 63 strip N/A N/A entity all_types N/A entity_type N/A N/A N/A entity update_all_types_completion N/A N/A N/A entity save N/A N/A N/A N/A N/A routes N/A -1 N/A stops append entity N/A N/A this_journey None N/A N/A N/A N/A N/A N/A routes N/A -1 N/A journies append this_journey N/A routes N/A N/A transaction commit_on_success _import_routes N/A N/A self routes N/A N/A N/A r routes N/A N/A N/A route created N/A N/A N/A Route objects get_or_create external_ref N/A N/A self _url N/A r N/A id defaults N/A service_id service_name N/A r N/A number N/A r N/A description N/A N/A created N/A N/A N/A route service_id N/A r N/A number N/A N/A route service_name N/A r N/A description N/A N/A N/A route save N/A N/A N/A N/A route stops clear N/A N/A i stop N/A enumerate N/A r N/A stops N/A N/A N/A N/A N/A StopOnRoute objects create route route entity stop order i N/A N/A N/A N/A N/A N/A route journey_set all delete N/A journey N/A r N/A journies N/A N/A N/A N/A self _add_journey route journey N/A _add_journey N/A N/A self route journey N/A N/A N/A j N/A N/A N/A Journey objects create route route external_ref N/A N/A self _url N/A journey N/A id notes N/A N/A join N/A journey N/A notes runs_on_monday N/A N/A journey N/A days mon runs_on_tuesday N/A N/A journey N/A days tue runs_on_wednesday N/A N/A journey N/A days wed runs_on_thursday N/A N/A journey N/A days thu runs_on_friday N/A N/A journey N/A days fri runs_on_saturday N/A N/A journey N/A days sat runs_on_sunday N/A N/A journey N/A days sun runs_in_termtime N/A N/A journey N/A school-holidays N/A all term-time runs_in_school_holidays N/A N/A journey N/A school-holidays N/A all holidays runs_on_bank_holidays N/A N/A journey N/A bank-holidays N/A all holidays additional runs_on_non_bank_holidays N/A N/A journey N/A bank-holidays N/A all non-holidays runs_from N/A journey N/A start-date runs_until N/A journey N/A end-date vehicle N/A journey N/A vehicle N/A N/A i stop N/A enumerate N/A journey N/A stops N/A N/A N/A N/A N/A ScheduledStop objects create journey j entity N/A stop N/A entity order i sta N/A stop N/A sta std N/A stop N/A std times_estimated N/A stop N/A estimated fare_stage N/A stop N/A fare-stage activity N/A stop N/A activity N/A _get_source N/A N/A self N/A N/A N/A N/A source created N/A N/A N/A Source objects get_or_create module_name __name__ name ATCO-CIF Importer N/A source N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A AtcoCifTimetableProvider http://store.datagm.org.uk/sets/TfGM/GMPTE_CIF.zip import_data N/A