Commit 8488f256 authored by Sriram Karra's avatar Sriram Karra

pychecker catch: fix method prototypes in a couple of base classes to match implementations

parent c91877c7
##
## Created : Tue Mar 13 14:26:01 IST 2012
## Last Modified : Thu Aug 16 16:48:00 IST 2012
## Last Modified : Thu Aug 16 18:36:34 IST 2012
##
## Copyright (C) 2012 Sriram Karra <karra.etc@gmail.com>
##
......@@ -90,7 +90,7 @@ class Folder:
raise NotImplementedError
@abstractmethod
def prep_sync_lists (self, destid, last_sync_stop=None, limit=0):
def prep_sync_lists (self, destid, sl, last_sync_stop=None, limit=0):
"""Prepare and return a set of list of new, modified and deleted
entries in the current folder since the last sync to the corresponding
folder in the destination PIM Database identified by destid.
......@@ -99,6 +99,7 @@ class Folder:
Soon Now.
- destid is the two letter PIMDB id
- sl is an object of type SyncList whose members are populated
- last_sync_stop was the end of the last sync cycle. It should be a
iso8601 formatted string - typically read out of the app_state.json
- limit can be used during debug time to limit the number of messages
......@@ -149,7 +150,7 @@ class Folder:
raise NotImplementedError
@abstractmethod
def writeback_sync_tags (self, items):
def writeback_sync_tags (self, pname, items):
"""After a create operation (above), the IDs will need to be written
on the other side DB. This routine should do that. The operation is
explicitly separated out because it could be a batch operation by
......
##
## Created : Tue Mar 13 14:26:01 IST 2012
## Last Modified : Thu Aug 16 16:45:19 IST 2012
## Last Modified : Thu Aug 16 18:19:58 IST 2012
##
## Copyright (C) 2012 Sriram Karra <karra.etc@gmail.com>
##
......@@ -82,14 +82,14 @@ class PIMDB:
raise NotImplementedError
@abstractmethod
def new_folder (self, fname, type):
def new_folder (self, fname, type, storeid=None):
"""Create a new folder of specified type and return an id. The folder
will not contain any items"""
raise NotImplementedError
@abstractmethod
def del_folder (self, itemid):
def del_folder (self, itemid, store=None):
"""Get rid of the specified folder."""
raise NotImplementedError
......@@ -120,7 +120,7 @@ class PIMDB:
raise NotImplementedError
@abstractmethod
def prep_for_sync (self, dbid):
def prep_for_sync (self, dbid, pname, dr):
"""This routine will be invoked at the time sync is initialized. dbid
is the id of the other PIMDB to which sync is being set up. Please
note that the sync direction could be anything. (Perhaps eventually we
......@@ -213,7 +213,7 @@ class PIMDB:
return self._set_att('phones_map', None)
def list_folders (self):
def list_folders (self, silent=False):
"""Print details of all folders in the PIMDB. Detail will typically
include one line per folder, with its name, and any identifier that
can be used for further referencing."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment