Module Expr Str Assign NameStore TupleLoad Str Import alias TryExcept body ImportFrom alias handlers ExceptHandler body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Assign NameStore ListLoad Str orelse Assign NameStore ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body ImportFrom alias identifier Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword Str keyword Str ImportFrom alias identifier TryExcept body ImportFrom alias Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore BinOpMult Call NameLoad NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword UnaryOpUSub NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpDiv NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpDiv NameLoad Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore ListLoad NameLoad Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Raise NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
    S3 SVG codec

    @copyright: 2013-2016 (c) Sahana Software Foundation
    @license: MIT

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.
 N/A __all__ N/A S3SVG N/A os N/A N/A cStringIO StringIO N/A N/A N/A StringIO StringIO gluon * gluon.contenttype contenttype gluon.storage Storage gluon.streamer DEFAULT_CHUNK_SIZE s3codec S3Codec s3utils s3_unicode s3_strip_markup S3SVG N/A S3Codec N/A N/A 
        Simple SVG format codec
     __init__ N/A N/A self N/A N/A N/A 
            Constructor
         N/A N/A extractResource N/A N/A self resource list_fields N/A N/A N/A 
            Extract the items from the resource

            @param resource: the resource
            @param list_fields: fields to include in list views
         N/A title N/A N/A self crud_string N/A resource tablename title_list N/A get_vars N/A Storage N/A N/A current request get_vars N/A N/A get_vars N/A iColumns N/A len list_fields N/A N/A query orderby left N/A N/A resource datatable_filter list_fields get_vars N/A N/A N/A resource add_filter query N/A data N/A N/A resource select list_fields left left limit None orderby orderby represent True show_links False N/A rfields N/A data N/A rfields N/A types N/A N/A colnames N/A N/A heading N/A N/A rfield rfields N/A N/A N/A rfield show N/A N/A N/A N/A colnames append N/A rfield colname N/A N/A heading N/A N/A rfield colname N/A rfield label N/A N/A rfield virtual N/A N/A N/A N/A types append string N/A N/A N/A N/A types append N/A rfield ftype N/A items N/A data N/A rows N/A N/A title types colnames heading items N/A encode N/A N/A self resource N/A attr N/A N/A 
            Export data as a Scalable Vector Graphic

            @param resource: the source of the data that is to be encoded
                                as an SVG. This may be:
                                resource: the resource
                                item:     a list of pre-fetched values
                                          the headings are in the first row
                                          the data types are in the second row
            @param attr: dictionary of parameters:
                 * title:          The export filename
                 * list_fields:    Fields to include in list views
         N/A N/A N/A N/A resource prefix gis N/A N/A resource name location N/A N/A list_fields N/A wkt N/A N/A list_fields N/A location_id$wkt N/A N/A N/A N/A N/A current s3db gis_location wkt represent None N/A N/A _title types lfields headers items N/A N/A self extractResource resource list_fields N/A wkt N/A N/A items N/A 0 N/A gis_location.wkt N/A N/A wkt N/A N/A N/A N/A N/A current log error No Geometry! N/A title N/A N/A attr get title N/A N/A resource _ids N/A 0 N/A filename N/A %s.svg title N/A filepath N/A N/A self write_file filename wkt attr N/A disposition N/A attachment; filename="%s" filename N/A response N/A current response N/A N/A N/A response headers N/A Content-Type N/A contenttype .svg N/A N/A N/A response headers N/A Content-disposition disposition N/A stream N/A open filepath N/A N/A N/A response stream stream chunk_size DEFAULT_CHUNK_SIZE request N/A current request N/A write_file N/A N/A filename wkt N/A attr N/A xml.etree ElementTree et N/A iheight 74 N/A height N/A str iheight N/A iwidth 74 N/A width N/A str iwidth N/A doc N/A N/A et Element svg width width height height version 1.1 xmlns http://www.w3.org/2000/svg shapely.wkt loads wkt_loads N/A N/A shapely speedups N/A N/A N/A speedups enable N/A N/A N/A N/A N/A N/A N/A current log info S3GIS Upgrade Shapely for Performance enhancements N/A shape N/A wkt_loads wkt N/A geom_type N/A shape geom_type N/A N/A geom_type N/A MultiPolygon Polygon N/A N/A N/A N/A N/A current log error Unsupported Geometry geom_type N/A shapely affinity N/A bounds N/A shape bounds N/A swidth N/A abs N/A N/A bounds N/A 2 N/A bounds N/A 0 N/A sheight N/A abs N/A N/A bounds N/A 3 N/A bounds N/A 1 N/A width_multiplier N/A iwidth swidth N/A height_multiplier N/A iheight sheight N/A multiplier N/A N/A min width_multiplier height_multiplier 0.9 N/A shape N/A N/A affinity scale shape xfact multiplier yfact N/A multiplier origin centroid N/A centroid N/A shape centroid N/A xoff N/A N/A iwidth 2 N/A centroid x N/A yoff N/A N/A iheight 2 N/A centroid y N/A shape N/A N/A affinity translate shape xoff xoff yoff yoff N/A N/A geom_type MultiPolygon N/A N/A polygons N/A shape geoms N/A N/A N/A geom_type Polygon N/A N/A polygons N/A shape N/A points N/A N/A pappend N/A points append N/A polygon polygons N/A N/A _points N/A N/A polygon exterior coords N/A point _points N/A N/A N/A pappend N/A %s,%s N/A N/A point N/A 0 N/A point N/A 1 N/A points N/A N/A join points N/A fill rgb(167, 192, 210) N/A stroke rgb(114, 129, 145) N/A N/A N/A et SubElement doc rect width width height height fill fill stroke stroke N/A fill rgb(225, 225, 225) N/A stroke rgb(165, 165, 165) N/A N/A N/A et SubElement doc polygon points points fill fill stroke stroke N/A path N/A N/A N/A os path join N/A N/A current request folder static cache svg N/A N/A N/A N/A N/A os path exists path N/A N/A N/A N/A os makedirs path N/A filepath N/A N/A N/A os path join path filename N/A N/A open filepath w f N/A N/A N/A N/A f write <?xml version="1.0" standalone="no"?>
 N/A N/A N/A f write <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 N/A N/A N/A f write "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
 N/A N/A N/A f write N/A N/A et tostring doc N/A filepath N/A staticmethod decode N/A N/A self resource source N/A attr N/A N/A 
            Import data from a Scalable Vector Graphic

            @param resource: the S3Resource
            @param source: the source

            @return: an S3XML ElementTree

            @ToDo: Handle encodings within SVG other than UTF-8
         N/A NotImplementedError N/A root N/A N/A