def P_at(self, request): ret = {} ret['hasVPS'] = 0 ret['hasSeriesPlugin'] = 0 ret['test'] = 0 try: from Plugins.Extensions.AutoTimer.AutoTimer import typeMap ret['types'] = typeMap except ImportError: pass loc = getLocations() ret['locations'] = loc['locations'] try: from Plugins.SystemPlugins.vps import Vps ret['hasVPS'] = 1 except ImportError as ie: pass try: from Plugins.Extensions.SeriesPlugin.plugin import Plugins ret['hasSeriesPlugin'] = 1 except ImportError as ie: pass try: from Plugins.Extensions.AutoTimer.AutoTimerResource import AutoTimerTestResource ret['test'] = 1 except ImportError: pass return ret
def P_settings(self, request): ret = {"result": True} ret['configsections'] = getConfigsSections()['sections'] if config.OpenWebif.webcache.theme.value: if os.path.exists(getPublicPath('themes')): ret['themes'] = config.OpenWebif.webcache.theme.choices else: ret['themes'] = ['original', 'clear'] ret['theme'] = config.OpenWebif.webcache.theme.value else: ret['themes'] = [] ret['theme'] = 'original' if config.OpenWebif.webcache.moviedb.value: ret['moviedbs'] = config.OpenWebif.webcache.moviedb.choices ret['moviedb'] = config.OpenWebif.webcache.moviedb.value else: ret['moviedbs'] = [] ret['moviedb'] = 'IMDb' ret['zapstream'] = config.OpenWebif.webcache.zapstream.value ret['showchannelpicon'] = config.OpenWebif.webcache.showchannelpicon.value ret['showchanneldetails'] = config.OpenWebif.webcache.showchanneldetails.value ret['allowipkupload'] = config.OpenWebif.allow_upload_ipk.value loc = getLocations() ret['locations'] = loc['locations'] if os.path.exists(VIEWS_PATH + "/responsive"): ret['responsivedesign'] = config.OpenWebif.responsive_enabled.value return ret
def P_settings(self, request): ret = { "result": True } ret['configsections'] = getConfigsSections()['sections'] if config.OpenWebif.webcache.theme.value: if os.path.exists(getPublicPath('themes')): ret['themes'] = config.OpenWebif.webcache.theme.choices else: ret['themes'] = ['original', 'clear'] ret['theme'] = config.OpenWebif.webcache.theme.value else: ret['themes'] = [] ret['theme'] = 'original' if config.OpenWebif.webcache.moviedb.value: ret['moviedbs'] = config.OpenWebif.webcache.moviedb.choices ret['moviedb'] = config.OpenWebif.webcache.moviedb.value else: ret['moviedbs'] = [] ret['moviedb'] = 'IMDb' ret['zapstream'] = config.OpenWebif.webcache.zapstream.value ret['showchannelpicon'] = config.OpenWebif.webcache.showchannelpicon.value ret['showchanneldetails'] = config.OpenWebif.webcache.showchanneldetails.value ret['allowipkupload'] = config.OpenWebif.allow_upload_ipk.value loc = getLocations() ret['locations'] = loc['locations'] if os.path.exists(VIEWS_PATH + "/responsive"): ret['responsivedesign'] = config.OpenWebif.responsive_enabled.value return ret
def P_at(self, request): ret = {} ret["hasVPS"] = 0 ret["hasSeriesPlugin"] = 0 try: from Plugins.Extensions.AutoTimer.AutoTimer import typeMap ret["types"] = typeMap except ImportError: pass loc = getLocations() ret["locations"] = loc["locations"] try: from Plugins.SystemPlugins.vps import Vps ret["hasVPS"] = 1 except ImportError as ie: pass try: from Plugins.Extensions.SeriesPlugin.plugin import Plugins ret["hasSeriesPlugin"] = 1 except ImportError as ie: pass return ret
def P_at(self, request): ret = {} try: from Plugins.Extensions.AutoTimer.AutoTimer import typeMap ret['types'] = typeMap except ImportError: pass loc = getLocations() ret['locations'] = loc['locations'] return ret
def P_getlocations(self, request): return getLocations()
def P_at(self, request): ret = {} loc = getLocations() ret['locations'] = loc['locations'] return ret