def getMessages(self): msgs = BaseService.getMessages(self) msgs.append({ 'level': 'ERROR', 'message': 'This provider is no longer supported by Google. Please use GooglePhotos. For more details, see photoframe wiki', 'link': 'https://github.com/mrworf/photoframe/wiki/PicasaWeb-API-ceases-to-work-January-1st,-2019' }) return msgs
def getMessages(self): msgs = BaseService.getMessages(self) msgs.append({ 'level': 'WARNING', 'message': 'This provider will cease to function January 1st, 2019. Please use GooglePhotos. For more details, see photoframe wiki', 'link': 'https://github.com/mrworf/photoframe/wiki/PicasaWeb-API-ceases-to-work-January-1st,-2019' }) return msgs
def getMessages(self): # display a message indicating which storage device is being used or an error messing if no suitable storage device could be found if os.path.exists(self.baseDir): msgs = [ { 'level': 'SUCCESS', 'message': 'Storage device "%s" is mounted to "%s"' % (self.device if self.device is not None else "unknown", self.usbDir), 'link': None } ] msgs.extend(BaseService.getMessages(self)) else: msgs = [ { 'level': 'ERROR', 'message': 'No storage device could be found that contains the "/photoframe/"-directory! Try to reboot or manually mount the desired storage device to "%s"' % self.usbDir, 'link': None } ] return msgs