danielfett/advancedcaching

git head: opencaching not properly commented out

Closed this issue · 1 comments

aapo commented

99ae756

Code has (cachedownloader.py:934)

BACKENDS = {
    'geocaching-com-new': {'class': GeocachingComCacheDownloader, 'name': 'geocaching.com', 'description': 'Backend for geocaching.com'},
    'opencaching-com': {'class': 'OpenCachingComCacheDownloader, 'name': 'opencaching.com', 'description': 'Backend for opencaching.com'},
    }

So class OpenCachingComCacheDownloader should not be commented out. And it must have proper (at least dummy) functions:

class OpenCachingComCacheDownloader(CacheDownloader):
    '''
    New Backend for Opencaching.com
    '''

    def _get_overview(self, location, get_geocache_callback, skip_callback = None):
        pass
    def _update_coordinate(self, coordinate, num_logs = 20, progress_min = 0.0, progress_max = 1.0, progress_all = 1.0):
        pass
aapo commented

Commits are now reverted back.