def to_app(self, id, name, channel, installed_version, store_version): newapp = App() newapp.id = id newapp.name = name newapp.url = self.info.url(newapp.id) newapp.icon = "http://apps.syncloud.org/releases/{0}/images/{1}-128.png".format( channel, newapp.id) app_version = AppVersions() app_version.installed_version = installed_version app_version.current_version = store_version app_version.app = newapp return app_version
def to_app(self, id, name, channel, installed_version, store_version): new_app = App() new_app.id = id new_app.name = name new_app.url = self.info.url(id) new_app.icon = "/rest/app_image?channel={0}&app={1}".format( channel, id) app_version = AppVersions() app_version.installed_version = installed_version app_version.current_version = store_version app_version.app = new_app return app_version