Package s3 :: Module s3gis :: Class S3ExportPOI
[frames] | no frames]

Class S3ExportPOI

source code

     object --+    
              |    
s3rest.S3Method --+
                  |
                 S3ExportPOI

Export point-of-interest resources for a location

Instance Methods
 
apply_method(self, r, **attr)
Apply method.
source code
 
export(self, r, **attr)
Export POI resources.
source code
 
export_combined_tree(self, tables, msince=None, update_feed=True)
Export a combined tree of all records in tables, which are in Lx, and have been updated since msince.
source code

Inherited from s3rest.S3Method: __call__, widget

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from s3rest.S3Method: crud_string

Properties

Inherited from object: __class__

Method Details

apply_method(self, r, **attr)

source code 

Apply method.

Parameters:
  • r - the S3Request
  • attr - controller options for this request
Returns:
output object to send to the view
Overrides: s3rest.S3Method.apply_method

export(self, r, **attr)

source code 

Export POI resources.

URL options:

    - "resources"   list of tablenames to export records from

    - "msince"      datetime in ISO format, "auto" to use the
                    feed's last update

    - "update_feed" 0 to skip the update of the feed's last
                    update datetime, useful for trial exports

Supported formats:

    .xml            S3XML
    .osm            OSM XML Format
    .kml            Google KML

(other formats can be requested, but may give unexpected results)

@param r: the S3Request
@param attr: controller options for this request

export_combined_tree(self, tables, msince=None, update_feed=True)

source code 

Export a combined tree of all records in tables, which are in Lx, and have been updated since msince.

Parameters:
  • tables - list of table names
  • msince - minimum modified_on datetime, "auto" for automatic from feed data, None to turn it off
  • update_feed - update the last_update datetime in the feed