Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler body ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Str orelse Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num orelse TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Expr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore CompareIn Str NameLoad Assign NameStore CompareIn Str NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore CompareGt AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Assign NameStore CompareGt AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Assign NameStore BinOpBitAnd CompareLtE AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr keyword Str keyword Str Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore NameLoad Import alias Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If CompareIsNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad Call NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad Call NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad Call NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad Call NameLoad attr Return Call NameLoad NameLoad decorator_list decorator_list
N/A N/A  S3 Synchronization: Peer Repository Adapter for FTP

    @copyright: 2015-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 sys gluon * s3sync S3SyncBaseAdapter s3query S3URLQuery FS s3rest S3Request s3export S3Exporter N/A N/A cStringIO StringIO N/A N/A N/A StringIO StringIO S3SyncAdapter N/A S3SyncBaseAdapter N/A N/A 
        FTP Synchronization Adapter

         currently used by CAP
     register N/A N/A self N/A N/A N/A 
            Register this site at the peer repository

            @return: True to indicate success, otherwise False
         N/A True N/A login N/A N/A self N/A N/A N/A 
            Login at the peer repository

            @return: None if successful, otherwise the error
         N/A repository N/A self repository N/A url N/A repository url N/A error None N/A N/A url N/A N/A error Remote URL required for FTP Push N/A N/A ftplib N/A N/A N/A ftp_connection N/A N/A ftplib FTP url N/A N/A N/A N/A ftplib all_errors N/A N/A error N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A N/A N/A N/A ftp_connection login N/A repository username N/A repository password N/A N/A N/A N/A ftplib error_perm N/A N/A error N/A N/A N/A sys exc_info N/A 1 N/A N/A self ftp_connection ftp_connection N/A error N/A N/A N/A N/A N/A current log debug error N/A error N/A pull N/A N/A self task onconflict N/A None N/A N/A 
            Fetch updates from the repository and import them
            into the local database (Active Pull)

            @param task: the task (sync_task Row)
         N/A repository N/A self repository N/A message Pull from FTP currently not supported N/A log N/A repository log N/A N/A N/A log write repository_id N/A repository id resource_name N/A task resource_name transmission N/A log OUT mode N/A log PULL action None remote False result N/A log FATAL message message N/A N/A message None N/A push N/A N/A self task N/A N/A N/A 
            Extract new updates from the local database and send
            them to the peer repository (active push)

            @param task: the synchronization task (sync_task Row)

            @return: tuple (error, mtime), with error=None if successful,
                     else error=message, and mtime=modification timestamp
                     of the youngest record sent
         N/A repository N/A self repository N/A resource_name N/A task resource_name N/A log N/A repository log N/A remote False N/A output None N/A N/A N/A N/A current log debug N/A S3SyncRepository.push(%s, %s) N/A N/A repository url resource_name N/A resource N/A N/A N/A current s3db resource resource_name N/A filters N/A N/A N/A current sync get_filters N/A task id N/A table N/A resource table N/A tablename N/A resource tablename N/A filters N/A N/A queries N/A N/A S3URLQuery parse resource N/A filters N/A tablename N/A N/A N/A N/A resource add_filter q N/A a queries N/A q N/A queries N/A a N/A msince N/A task last_push N/A msince N/A N/A strategy N/A task strategy N/A created N/A create strategy N/A updated N/A update strategy N/A N/A created updated N/A N/A mtime_filter N/A N/A table modified_on msince N/A N/A created N/A N/A mtime_filter N/A N/A table created_on msince N/A N/A updated N/A N/A mtime_filter N/A N/A N/A table created_on msince N/A N/A table modified_on msince N/A N/A mtime_filter None N/A mtime_filter N/A N/A N/A N/A resource add_filter mtime_filter N/A mtime N/A resource muntil N/A resource_ids N/A N/A resource get_id N/A N/A resource_ids None N/A N/A message No Changes since last push N/A result N/A log WARNING N/A N/A settings N/A current deployment_settings N/A placeholders N/A systemname systemname_short resource public_url N/A N/A settings get_system_name N/A N/A settings get_system_name_short resource_name N/A N/A settings get_base_public_url string Template N/A filename N/A N/A resource get_config upload_filename N/A N/A filename N/A N/A filename N/A N/A settings get_sync_upload_filename N/A filename N/A N/A N/A Template filename safe_substitute s %(systemname_short)s r %(resource)s N/A filename N/A filename placeholders N/A representation N/A task representation N/A filename N/A %s.%s N/A filename representation N/A remote True N/A ftplib N/A ftp_connection N/A self ftp_connection N/A N/A task multiple_file N/A N/A N/A N/A type resource_ids list N/A N/A resource_ids N/A resource_ids N/A resource_id resource_ids N/A N/A N/A N/A resource clear_query N/A N/A N/A resource add_filter N/A N/A FS id resource_id N/A data N/A N/A self _get_data resource representation N/A N/A N/A N/A N/A ftp_connection storbinary N/A STOR %s filename N/A StringIO data N/A N/A N/A N/A ftplib error_perm N/A N/A message N/A N/A N/A sys exc_info N/A 1 N/A result N/A log ERROR N/A output message N/A N/A message FTP Transfer Successful N/A result N/A log SUCCESS N/A N/A N/A N/A current log debug message N/A N/A data N/A N/A self _get_data resource representation N/A N/A N/A N/A N/A ftp_connection storbinary N/A STOR %s filename N/A StringIO data N/A N/A N/A N/A ftplib error_perm N/A N/A message N/A N/A N/A sys exc_info N/A 1 N/A result N/A log ERROR N/A output message N/A N/A message FTP Transfer Successful N/A result N/A log SUCCESS N/A N/A N/A N/A current log debug message N/A N/A N/A ftp_connection quit N/A N/A N/A log write repository_id N/A repository id resource_name resource_name transmission N/A log OUT mode N/A log PUSH action send remote remote result result message message N/A N/A output None N/A N/A mtime None N/A N/A output mtime N/A _get_data N/A N/A self resource representation N/A N/A N/A  Returns the representation data for the resource  N/A request N/A S3Request prefix N/A resource prefix name N/A resource name extension representation N/A N/A N/A request transformable N/A N/A N/A N/A resource export_xml stylesheet N/A N/A request stylesheet pretty_print True N/A N/A N/A representation csv N/A N/A exporter N/A N/A S3Exporter csv N/A N/A N/A representation pdf N/A N/A exporter N/A N/A S3Exporter pdf N/A N/A N/A representation xls N/A N/A exporter N/A N/A S3Exporter xls N/A N/A N/A representation json N/A N/A exporter N/A N/A S3Exporter json N/A N/A exporter resource N/A N/A