Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore TupleLoad Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad NameLoad NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias Expr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str For NameStore NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Str Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Num Expr Call AttributeLoad Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Return Str decorator_list FunctionDef arguments args defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Num Expr Call AttributeLoad Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list Expr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args defaults body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A simplejson json re match urllib urlencode urllib2 urlopen BeautifulSoup BeautifulStoneSoup read N/A N/A N/A N/A N/A lookup_id N/A require_alphanumeric N/A N/A N/A request vars get id N/A data N/A N/A dm get maps lookup_id N/A start N/A require_int N/A N/A N/A request vars get start N/A limit N/A require_int N/A N/A N/A request vars get limit N/A N/A N/A json dumps N/A load_map_attributes data start limit N/A map_data = urlopen (data.src + '/ows', urlencode ({
                'service': 'wfs',
                'version': '1.1.0',
                'request': 'GetFeature',
                'typename': data.prefix + ':' + data.filename,
                'outputformat': 'json',
                })
             )
    #return map_data.read ()
    entry_list = []
    for ob in json.loads (map_data.read ())['features']:
        result = {'id': ob['id']}
        result.update (ob['properties'])
        #result.update ({'geom': ob['geometry']['coordinates'], 'id': ob['id']})
        entry_list.append (result)
    return json.dumps ({'features': entry_list}) N/A columns N/A N/A N/A N/A N/A lookup_id N/A require_alphanumeric N/A N/A N/A request vars get id N/A data N/A N/A dm get maps lookup_id N/A N/A N/A json dumps N/A id columns lookup_id N/A load_fields data N/A maps N/A N/A N/A N/A N/A file N/A urlopen N/A N/A N/A deployment_settings geoserver wms_capabilities N/A buffer N/A N/A file read N/A soup N/A BeautifulStoneSoup buffer N/A layers N/A N/A soup findAll name layer N/A results N/A N/A l layers N/A N/A name N/A N/A l find title N/A id N/A N/A l find name N/A N/A name id N/A N/A text N/A name string N/A N/A text N/A N/A text N/A id string N/A m N/A match ^([^\:]+)\:(.+)$ N/A id string N/A m N/A N/A p N/A N/A m group 1 N/A f N/A N/A m group 2 N/A N/A p N/A N/A f N/A id string N/A N/A N/A results append N/A prefix filename name type p f text db N/A N/A N/A json dumps results N/A kw N/A N/A N/A N/A BeautifulSoup BeautifulStoneSoup urllib2 urlopen N/A N/A tmp_create_lit N/A disease N/A N/A N/A request vars get d N/A result N/A N/A db executesql N/A 
    SELECT keyword.kw, counts.count 
    FROM (SELECT keycount.kw_id, keycount.count 
          FROM (SELECT id 
                FROM disease 
                WHERE d = '%s') AS diseases
          INNER JOIN keycount
          ON keycount.d_id = diseases.id) AS counts
    INNER JOIN keyword
    ON keyword.id = counts.kw_id;
     N/A disease N/A rList N/A N/A capabilities N/A N/A N/A urlopen N/A N/A N/A deployment_settings geoserver wms_capabilities read N/A soup N/A BeautifulStoneSoup capabilities N/A keywords N/A N/A soup findAll name keyword N/A r result N/A N/A words N/A N/A k keywords N/A N/A N/A N/A k string N/A r N/A 0 N/A N/A N/A N/A words append k N/A mapList N/A N/A w words N/A N/A layer N/A N/A w parent parent N/A id N/A N/A N/A layer find name string N/A name N/A N/A N/A layer find title string N/A N/A N/A mapList append N/A filename name type id name db N/A d N/A dict kw N/A r N/A 0 count N/A r N/A 1 numMaps N/A len words maps mapList N/A N/A N/A rList append d N/A N/A N/A json dumps rList N/A reset_maps N/A N/A N/A N/A N/A N/A N/A auth user N/A N/A N/A HTTP 400 N/A N/A N/A N/A db N/A N/A N/A db saved_maps user_id N/A N/A auth user id update json {} N/A Ok N/A save_maps N/A N/A N/A N/A N/A N/A N/A auth user N/A N/A N/A HTTP 400 N/A mapList N/A N/A N/A request vars get data N/A N/A mapList None N/A N/A N/A HTTP 400 N/A N/A N/A N/A db N/A N/A N/A db saved_maps user_id N/A N/A auth user id update json mapList N/A N/A def save_slice():
    if not auth.user:
        raise HTTP (400)
    filename = request.vars.get ('filename')
    name = request.vars.get ('name')
    subset = request.vars.get ('subset') describe_tmp N/A N/A N/A N/A N/A lookup_id N/A N/A N/A request vars get id N/A data N/A N/A dm get maps lookup_id N/A N/A N/A N/A urlopen N/A N/A N/A N/A N/A N/A data src ?service=WFS&request=DescribeFeatureType&typename= N/A data prefix : N/A data filename &version=1.1.0 read N/A export N/A N/A N/A N/A N/A base64 N/A raw_data N/A N/A N/A request body read N/A data N/A raw_data N/A N/A N/A raw_data index , N/A N/A N/A response headers N/A Content-type image/png N/A N/A N/A base64 decodestring data N/A