__init__.py 503 Bytes
Newer Older
1 2 3

import sys

4
from application.python import Null
5 6 7
from zope.interface import Interface


8 9 10
__all__ = ['IUpdateManager', 'UpdateManager']


11 12 13
class IUpdateManager(Interface):
    def initialize(self):
        pass
14

15 16
    def shutdown(self):
        pass
17

18 19 20 21 22 23 24 25 26 27 28
    def check_for_updates(self):
        pass


if sys.platform == 'win32':
    try:
        from blink.update.windows import UpdateManager
    except (AttributeError, ImportError, RuntimeError):
        UpdateManager = Null
else:
    UpdateManager = Null