Python update.Version() Examples
The following are 30
code examples of update.Version().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
update
, or try the search function
.
Example #1
Source File: workflow.py From alfred-workflow-toggle-airpods with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #2
Source File: workflow.py From alfred-pocket with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #3
Source File: workflow.py From alfred-brightness with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #4
Source File: workflow.py From alfred-homebrew with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #5
Source File: workflow.py From Gank-Alfred-Workflow with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``) .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('Last run version : {0}'.format( self._last_version_run)) return self._last_version_run
Example #6
Source File: workflow.py From pomodoro-alfred with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('Last run version : {0}'.format( self._last_version_run)) return self._last_version_run
Example #7
Source File: workflow.py From Quiver-alfred with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``) .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('Last run version : {0}'.format( self._last_version_run)) return self._last_version_run
Example #8
Source File: workflow.py From Gank-Alfred-Workflow with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``) .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('Last run version : {0}'.format( self._last_version_run)) return self._last_version_run
Example #9
Source File: workflow.py From alfred-confluence with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('Last run version : {0}'.format( self._last_version_run)) return self._last_version_run
Example #10
Source File: workflow.py From Alfred-Workflow with Apache License 2.0 | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #11
Source File: workflow.py From gist-alfred with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #12
Source File: workflow.py From alfred-cheat with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #13
Source File: workflow.py From alfred-gmail with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #14
Source File: workflow.py From wechat-alfred-workflow with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #15
Source File: workflow.py From alfred-dropbox with MIT License | 6 votes |
def last_version_run(self): """Return version of last version to run (or ``None``). .. versionadded:: 1.9.10 :returns: :class:`~workflow.update.Version` instance or ``None`` """ if self._last_version_run is UNSET: version = self.settings.get('__workflow_last_version') if version: from update import Version version = Version(version) self._last_version_run = version self.logger.debug('last run version: %s', self._last_version_run) return self._last_version_run
Example #16
Source File: workflow.py From alfred-homebrew with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #17
Source File: workflow.py From alfred-homebrew with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #18
Source File: workflow.py From alfred-gmail with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #19
Source File: workflow.py From pomodoro-alfred with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #20
Source File: workflow.py From alfred-pocket with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #21
Source File: workflow.py From alfred-confluence with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('Set last run version : {0}'.format(version)) return True
Example #22
Source File: workflow.py From alfred-cheat with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #23
Source File: workflow.py From alfred-cheat with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #24
Source File: workflow.py From alfred-dropbox with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #25
Source File: workflow.py From alfred-dropbox with MIT License | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #26
Source File: workflow.py From alfred-confluence with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #27
Source File: workflow.py From alfred-pocket with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #28
Source File: workflow.py From Alfred-Workflow with Apache License 2.0 | 5 votes |
def set_last_version(self, version=None): """Set :attr:`last_version_run` to current version. .. versionadded:: 1.9.10 :param version: version to store (default is current version) :type version: :class:`~workflow.update.Version` instance or ``unicode`` :returns: ``True`` if version is saved, else ``False`` """ if not version: if not self.version: self.logger.warning( "Can't save last version: workflow has no version") return False version = self.version if isinstance(version, basestring): from update import Version version = Version(version) self.settings['__workflow_last_version'] = str(version) self.logger.debug('set last run version: %s', version) return True
Example #29
Source File: workflow.py From Alfred-Workflow with Apache License 2.0 | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))
Example #30
Source File: workflow.py From alfred-gmail with MIT License | 5 votes |
def alfred_version(self): """Alfred version as :class:`~workflow.update.Version` object.""" from update import Version return Version(self.alfred_env.get('version'))