danielfett / advancedcaching

Advanced Geocaching Tool for Linux
http://www.danielfett.de/internet-und-opensource,software,agtl
31 stars 13 forks source link

git head: opencaching not properly commented out #166

Closed aapo closed 11 years ago

aapo commented 11 years ago

99ae7567d67ddd08b06c96b5adf0a4c80babe317

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 11 years ago

Commits are now reverted back.