function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def provides_biblio(self): return True
Impactstory/total-impact-core
[ 55, 7, 55, 20, 1330896831 ]
def biblio(self, aliases, provider_url_template=None, cache_enabled=True): linkedin_url = self.get_best_id(aliases) biblio_dict = {} biblio_dict["repository"] = "LinkedIn" biblio_dict["is_account"] = True # special key to tell webapp to render as ge...
Impactstory/total-impact-core
[ 55, 7, 55, 20, 1330896831 ]
def create(kernel): result = Intangible() result.template = "object/draft_schematic/armor/shared_armor_segment_ubese_advanced.iff" result.attribute_template_id = -1 result.stfName("string_id_table","")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def test_job_statuses_for_jobs(started_conversion_job, failed_conversion_job, finished_conversion_job): assert started_conversion_job.status == status.STARTED assert failed_conversion_job.status == status.FAILED assert finished_conversion_job.status == status.FINISHED
geometalab/osmaxx
[ 27, 4, 27, 84, 1420751134 ]
def test_job_removes_file_when_deleted(finished_conversion_job): assert finished_conversion_job.status == status.FINISHED file_path = finished_conversion_job.resulting_file.path assert file_path is not None assert os.path.exists(file_path) finished_conversion_job.delete() assert not os.path.exis...
geometalab/osmaxx
[ 27, 4, 27, 84, 1420751134 ]
def test_job_get_absolute_file_path_is_available_when_file_is_available(finished_conversion_job): assert finished_conversion_job.get_absolute_file_path.startswith('/') assert finished_conversion_job.resulting_file.path == finished_conversion_job.get_absolute_file_path
geometalab/osmaxx
[ 27, 4, 27, 84, 1420751134 ]
def __new__(meta, name, bases, dct): klass = type.__new__(meta, name, bases, dct) # This class need to implement a real role to be load if klass.implement: # When creating the class, we need to look at the module where it is. It will be create like this (in modulemanager) ...
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def get_sub_class(cls): return cls.__inheritors__
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def __init__(self): ParameterBasedType.__init__(self)
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def get_info(self): return {'configuration': self.get_config(), 'state': 'DISABLED', 'log': ''}
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def prepare(self): return
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def launch(self): return
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def export_http(self): return
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def stopping_agent(self): pass
naparuba/kunai
[ 37, 6, 37, 56, 1424895275 ]
def setUp(self): # Construct with mocked _send_restyle_msg method self.figure = go.Figure( data=[ go.Scatter(), go.Bar(), go.Parcoords(dimensions=[{}, {"label": "dim 2"}, {}]), ] ) # Mock out the message method ...
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def test_property_assignment_nested(self): # Set scatter marker color self.figure.data[0].marker.color = "green" self.figure._send_restyle_msg.assert_called_once_with( {"marker.color": ["green"]}, trace_indexes=0 )
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def test_plotly_restyle_toplevel(self): # Set bar marker self.figure.plotly_restyle({"marker": {"color": "green"}}, trace_indexes=1) self.figure._send_restyle_msg.assert_called_once_with( {"marker": {"color": "green"}}, trace_indexes=[1] )
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def test_plotly_restyle_nested_array(self): # Set parcoords dimension self.figure.plotly_restyle({"dimensions[0].label": "dim 1"}, trace_indexes=2) self.figure._send_restyle_msg.assert_called_once_with( {"dimensions[0].label": "dim 1"}, trace_indexes=[2] )
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def __init__(self, dispatcher, client, key): self.dispatcher = dispatcher self.client = client self.key = key
mochi/udplog
[ 9, 6, 9, 1, 1379967651 ]
def stopService(self): self.dispatcher.unregister(self.sendEvent) service.Service.stopService(self)
mochi/udplog
[ 9, 6, 9, 1, 1379967651 ]
def __init__(self, factories): """ Initialize. @param factories: Client factories. @type factories: C{list} of L{RedisClientFactory}. """ self.factories = set(factories)
mochi/udplog
[ 9, 6, 9, 1, 1379967651 ]
def _disconnected(self, factory): """ Called when the connection for this factory is gone. """ self.factories.remove(factory) factory.deferred.addCallback(lambda _: self._reconnected(factory))
mochi/udplog
[ 9, 6, 9, 1, 1379967651 ]
def eb(failure): failure.trap(RuntimeError) if failure.value.args == ("Not connected",): self._disconnected(factory) return self.lpush(key, *values, **kwargs) else: return failure
mochi/udplog
[ 9, 6, 9, 1, 1379967651 ]
def __init__(self, observer, observable): super(AnonymousSubject, self).__init__() self.observer = observer self.observable = observable
Sprytile/Sprytile
[ 955, 75, 955, 61, 1477734429 ]
def on_completed(self): self.observer.on_completed()
Sprytile/Sprytile
[ 955, 75, 955, 61, 1477734429 ]
def __init__(self, _tagLst, _attrName, _attrVal, _data): self.tagList = _tagLst self.attrName = _attrName self.attrVal = _attrVal self.dataToCheck = _data self.status_baseline = False self.status_superior = False self.status_exemplary = False self....
KhronosGroup/COLLADA-CTS
[ 30, 9, 30, 11, 1336571488 ]
def JudgeBaseline(self, context): # No step should not crash self.__assistant.CheckCrashes(context)
KhronosGroup/COLLADA-CTS
[ 30, 9, 30, 11, 1336571488 ]
def JudgeSuperior(self, context): # if baseline fails, no point in further checking if (self.status_baseline == False): self.status_superior = self.status_baseline return self.status_superior
KhronosGroup/COLLADA-CTS
[ 30, 9, 30, 11, 1336571488 ]
def JudgeExemplary(self, context): self.status_exemplary = self.status_superior return self.status_exemplary
KhronosGroup/COLLADA-CTS
[ 30, 9, 30, 11, 1336571488 ]
def __init__(self): super().__init__() self.num_nodes = 1
xieta/mincoin
[ 4, 2, 4, 1, 1505610830 ]
def get_tests(self): if self.tip is None: self.tip = int("0x" + self.nodes[0].getbestblockhash(), 0) self.block_time = int(time.time())+1 ''' Create a new block with an anyone-can-spend coinbase ''' height = 1 block = create_block(self.tip, create_coi...
xieta/mincoin
[ 4, 2, 4, 1, 1505610830 ]
def __init__(self): super(BandcampPlugin, self).__init__() self.config.add({ 'source_weight': 0.5, 'min_candidates': 5, 'lyrics': False, 'art': False, 'split_artist_title': False }) self.import_stages = [self.imported] s...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def album_distance(self, items, album_info, mapping): """Returns the album distance. """ dist = Distance() if hasattr(album_info, 'data_source') and album_info.data_source == 'bandcamp': dist.add('source', self.config['source_weight'].as_number()) return dist
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def album_for_id(self, album_id): """Fetches an album by its bandcamp ID and returns an AlbumInfo object or None if the album is not found. """ # We use album url as id, so we just need to fetch and parse the # album page. url = album_id return self.get_album_info...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def track_for_id(self, track_id): """Fetches a track by its bandcamp ID and returns a TrackInfo object or None if the track is not found. """ url = track_id return self.get_track_info(url)
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def get_albums(self, query): """Returns a list of AlbumInfo objects for a bandcamp search query. """ albums = [] for url in self._search(query, BANDCAMP_ALBUM): album = self.get_album_info(url) if album is not None: albums.append(album) ret...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def get_tracks(self, query): """Returns a list of TrackInfo objects for a bandcamp search query. """ track_urls = self._search(query, BANDCAMP_TRACK) return [self.get_track_info(url) for url in track_urls]
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def add_lyrics(self, item, write = False): """Fetch and store lyrics for a single item. If ``write``, then the lyrics will also be written to the file itself.""" # Skip if the item already has lyrics. if item.lyrics: self._log.info('lyrics already present: {0}', item) ...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def _search(self, query, search_type=BANDCAMP_ALBUM, page=1): """Returns a list of bandcamp urls for items of type search_type matching the query. """ if search_type not in [BANDCAMP_ARTIST, BANDCAMP_ALBUM, BANDCAMP_TRACK]: self._log.debug('Invalid type for search: {0}'.forma...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def _parse_album_track(self, track_html): """Returns a TrackInfo derived from the html describing a track in a bandcamp album page. """ track_num = track_html['rel'].split('=')[1] track_num = int(track_num) title_html = track_html.find(attrs={'class': 'title-col'}) ...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def get(self, album, plugin, paths): """Return the url for the cover from the bandcamp album page. This only returns cover art urls for bandcamp albums (by id). """ if isinstance(album.mb_albumid, six.string_types) and 'bandcamp' in album.mb_albumid: try: head...
ageorge/beets-bandcamp
[ 56, 17, 56, 4, 1434935409 ]
def create(kernel): result = Static() result.template = "object/static/structure/general/shared_prp_junk_s4.iff" result.attribute_template_id = -1 result.stfName("obj_n","unknown_object")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def __init__(self, mainFrame): super(AboutDialog, self).__init__(mainFrame) self._mainFrame = mainFrame self.setWindowTitle(self._mainFrame._("About {name}").format(name=self._mainFrame.NAME)) self._setupUI()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def _setupUI(self): label = ClickableQLabel() label.setPixmap(QtGui.QPixmap(":/images/snakefire-big.png")) label.setAlignment(QtCore.Qt.AlignCenter) self.connect(label, QtCore.SIGNAL("clicked()"), self._website) urlLabel = QtGui.QLabel("<a href=\"http://{url}\">{name}</a>".forma...
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def __init__(self, mainFrame): super(AlertsDialog, self).__init__(mainFrame) self._mainFrame = mainFrame self.setWindowTitle(self._mainFrame._("Alerts")) self._setupUI()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def cancel(self): self.close()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def delete(self, row): self._table.removeRow(row) self.validate()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def _save(self): matches = [] for i in range(self._table.rowCount()): matches.append({ 'match': str(self._table.item(i, 0).text().trimmed()), 'regex': self._table.cellWidget(i, 1).isChecked() }) self._mainFrame.setSettings("matches", match...
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def __init__(self, mainFrame): super(OptionsDialog, self).__init__(mainFrame) self._mainFrame = mainFrame self.setWindowTitle(self._mainFrame._("Settings")) self._setupUI()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def cancel(self): self.close()
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def _save(self): (themeSize, themeSizeOk) = self._themeSizeField.itemData(self._themeSizeField.currentIndex()).toInt() (awayTime, awayTimeOk) = self._awayTimeField.itemData(self._awayTimeField.currentIndex()).toInt() (awayTimeBetweenMessages, awayTimeBetweenMessagesOk) = self._awayTimeBetweenMes...
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def _themeSizeSelected(self): (value, ok) = self._themeSizeField.itemData(self._themeSizeField.currentIndex()).toInt() if ok: self._themePreview.setTextSizeMultiplier(round(float(value) / 100, 1))
mariano/snakefire
[ 100, 24, 100, 28, 1283111981 ]
def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_rebel_brigadier_general_rodian_female_01.iff" result.attribute_template_id = 9 result.stfName("npc_name","rodian_base_female")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def create(kernel): result = Tangible() result.template = "object/tangible/wearables/backpack/shared_backpack_s01.iff" result.attribute_template_id = 11 result.stfName("wearables_name","backpack_s01")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def test_isidentifier(): assert isidentifier('abc') assert not isidentifier('<') assert not isidentifier('') if IS_PY2: # Py3 accepts unicode identifiers assert not isidentifier('áéíóú') else: assert isidentifier('áéíóú')
fabioz/PyDev.Debugger
[ 362, 102, 362, 75, 1405447272 ]
def start(address): global _running if _running: raise RuntimeError('trying to start reporter while running') logging.info("Starting hawkular reporter") concurrent.thread(_run, name='hawkular', args=(address,)).start() _running = True
oVirt/vdsm
[ 129, 183, 129, 68, 1351274855 ]
def send(report): metrics_list = [_get_gauge_metric(name, value) for name, value in six.iteritems(report)] _queue.append(metrics_list) with _cond: _cond.notify()
oVirt/vdsm
[ 129, 183, 129, 68, 1351274855 ]
def write_cache(cache_file, cache_data): try: path = os.path.dirname(cache_file) if not os.path.isdir(path): os.mkdir(path) cPickle.dump(cache_data, open(cache_file, 'w'), -1) except Exception, ex: print "Failed to write cache data to %s:" % cache_file, ex
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def load_cache(cache_file): return cPickle.load(open(cache_file))
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, args = 0): Screen.__init__(self, session) self.skin_path = plugin_path self.menu = args self.list = [] self.oktext = _("\nPress OK on your remote control to continue.") self.menutext = _("Press MENU on your remote control for additional options.") self.infotext = _("Press INFO ...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def selectionChanged(self): item = self["menu"].getCurrent() if item: name = item[1] desc = item[2] else: name = "-" desc = "" for cb in self.onChangedEntry: cb(name, desc)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def setWindowTitle(self): self.setTitle(_("Software management"))
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def getUpdateInfos(self): if iSoftwareTools.NetworkConnectionAvailable is True: if iSoftwareTools.available_updates is not 0: self.text = _("There are at least %s updates available.") % (str(iSoftwareTools.available_updates)) else: self.text = "" #_("There are no updates available.") if iSoftwareTool...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def handleInfo(self): current = self["menu"].getCurrent() if current: currentEntry = current[0] if currentEntry in ("system-backup","backupfiles"): self.session.open(SoftwareManagerInfo, mode = "backupinfo")
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def backupfiles_choosen(self, ret): self.backupdirs = ' '.join( config.plugins.configurationbackup.backupdirs.value ) config.plugins.configurationbackup.backupdirs.save() config.plugins.configurationbackup.save() config.save()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def createBackupfolders(self): print "Creating backup folder if not already there..." self.backuppath = getBackupPath() try: if (os.path.exists(self.backuppath) == False): os.makedirs(self.backuppath) except OSError: self.session.open(MessageBox, _("Sorry, your backup destination is not writeable.\nPl...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def startRestore(self, ret = False): if (ret == True): self.exe = True self.session.open(RestoreScreen, runRestore = True)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, skin_path = None): Screen.__init__(self, session) self.session = session self.skin_path = skin_path if self.skin_path is None: self.skin_path = resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager") self.onChangedEntry = [ ] self.setup_title = _("Software mana...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def createSetup(self): self.list = [ ] self.overwriteConfigfilesEntry = getConfigListEntry(_("Overwrite configuration files?"), config.plugins.softwaremanager.overwriteConfigFiles) self.list.append(self.overwriteConfigfilesEntry) self.list.append(getConfigListEntry(_("show softwaremanager in setup menu"), confi...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def newConfig(self): pass
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def keyRight(self): ConfigListScreen.keyRight(self)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def apply(self): self.session.openWithCallback(self.confirm, MessageBox, _("Use these settings?"), MessageBox.TYPE_YESNO, timeout = 20, default = True)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def keyCancel(self): if self["config"].isChanged(): self.session.openWithCallback(self.cancelConfirm, MessageBox, _("Really close without saving settings?"), MessageBox.TYPE_YESNO, timeout = 20, default = True) else: self.close()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def changedEntry(self): for x in self.onChangedEntry: x() self.selectionChanged()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def getCurrentValue(self): return str(self["config"].getCurrent()[1].value)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, skin_path = None, mode = None): Screen.__init__(self, session) self.session = session self.mode = mode self.skin_path = skin_path if self.skin_path is None: self.skin_path = resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager") self["actions"] = ActionMap(["S...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def showInfos(self): if self.mode == "backupinfo": self.list = [] backupfiles = config.plugins.configurationbackup.backupdirs.value for entry in backupfiles: self.list.append((entry,)) self['list'].setList(self.list)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, plugin_path = None, args = None): Screen.__init__(self, session) self.session = session self.skin_path = plugin_path if self.skin_path is None: self.skin_path = resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager") self["shortcuts"] = ActionMap(["ShortcutAction...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def exit(self): if self.currList == "packages": self.currList = "category" self.currentSelectedTag = None self["list"].style = "category" self['list'].setList(self.categoryList) self["list"].setIndex(self.currentSelectedIndex) self["list"].updateList(self.categoryList) self.selectionChanged() e...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def setState(self,status = None): if status: self.currList = "status" self.statuslist = [] self["key_green"].setText("") self["key_blue"].setText("") self["key_yellow"].setText("") divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if status == 'u...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def getUpdateInfosCB(self, retval = None): if retval is not None: if retval is True: if iSoftwareTools.available_updates is not 0: self["status"].setText(_("There are at least ") + str(iSoftwareTools.available_updates) + _(" updates available.")) else: self["status"].setText(_("There are no updat...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def selectionChanged(self): current = self["list"].getCurrent() self["status"].setText("") if current: if self.currList == "packages": self["key_red"].setText(_("Back")) if current[4] == 'installed': self["key_green"].setText(_("Uninstall")) elif current[4] == 'installable': self["key_gre...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def handleCurrent(self): current = self["list"].getCurrent() if current: if self.currList == "category": self.currentSelectedIndex = self["list"].index selectedTag = current[2] self.buildPacketList(selectedTag) elif self.currList == "packages": if current[7] is not '': idx = self["list"]....
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def detailsClosed(self, result = None): if result is not None: if result is not False: self.setState('sync') iSoftwareTools.lastDownloadDate = time.time() for entry in self.selectedFiles: if entry == self.saved_currentSelectedPackage: self.selectedFiles.remove(entry) iSoftwareTools.start...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def buildPacketList(self, categorytag = None): if categorytag is not None: self.currList = "packages" self.currentSelectedTag = categorytag self.packetlist = [] for package in iSoftwareTools.packagesIndexlist[:]: prerequisites = package[0]["prerequisites"] if "tag" in prerequisites: for found...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def buildCategoryComponent(self, tag = None): divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if tag is not None: if tag == 'System': return(( _("System"), _("View list of available system extensions" ), tag, divpng )) elif tag == 'Skin': return(( _...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def runExecute(self, result = None): if result is not None: if result[0] is True: self.session.openWithCallback(self.runExecuteFinished, Ipkg, cmdList = self.cmdList) elif result[0] is False: self.cmdList = result[1] self.session.openWithCallback(self.runExecuteFinished, Ipkg, cmdList = self.cmdList...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def ExecuteReboot(self, result): if result: self.session.open(TryQuitMainloop,retvalue=3) else: self.selectedFiles = [] self.restartRequired = False self.detailsClosed(True)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, plugin_path, cmdlist = None): Screen.__init__(self, session) self.session = session self.skin_path = plugin_path self.cmdlist = cmdlist self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions"], { "ok": self.process_all, "back": self.exit, "red": self.exit, ...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def rebuildList(self): self.list = [] if self.cmdlist is not None: for entry in self.cmdlist: action = "" info = "" cmd = entry[0] if cmd == 0: action = 'install' elif cmd == 2: action = 'remove' else: action = 'upgrade' args = entry[1] if cmd == 0: info = args...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def exit(self): self.close()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def process_extensions(self): self.list = [] if self.cmdlist is not None: for entry in self.cmdlist: cmd = entry[0] if entry[0] in (0,2): self.list.append((entry)) self.close((False,self.list))
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, plugin_path): Screen.__init__(self, session) self.session = session self.skin_path = plugin_path self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions"], { "back": self.exit, "red": self.exit, }, -1) self.list = [] self["list"] = List(self.list) self["key...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def rebuildList(self): self.list = [] self.list.append(self.buildEntryComponent('install')) self.list.append(self.buildEntryComponent('installable')) self.list.append(self.buildEntryComponent('installed')) self.list.append(self.buildEntryComponent('remove')) self['list'].setList(self.list) self['list'].up...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def exit(self): self.close()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def __init__(self, session, plugin_path, packagedata = None): Screen.__init__(self, session) self.skin_path = plugin_path self.language = language.getLanguage()[:2] # getLanguage returns e.g. "fi_FI" for "language_country" self.attributes = None PackageInfoHandler.__init__(self, self.statusCallback) self.di...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def exit(self): self.close(False)
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def pageDown(self): self["detailtext"].pageDown()
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def setInfos(self): if "screenshot" in self.attributes: self.loadThumbnail(self.attributes) if "name" in self.attributes: self.pluginname = self.attributes["name"] else: self.pluginname = _("unknown") if "author" in self.attributes: self.author = self.attributes["author"] else: self.author = ...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]
def setThumbnail(self, noScreenshot = False): if not noScreenshot: filename = self.thumbnail else: filename = resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager/noprev.png") sc = AVSwitch().getFramebufferScale() self.picload.setPara((self["screenshot"].instance.size().width(), self["scr...
Taapat/enigma2-openpli-fulan
[ 5, 11, 5, 1, 1452283820 ]