Esempio n. 1
0
 def new_version_check(self, force=False):
     if cpp.get_check_new_versions() or force:
         import cellprofiler.utilities.check_for_updates as cfu
         import platform
         cfu.check_for_updates('http://cellprofiler.org/CPupdate.html',
                               0 if force else max(self.version, cpp.get_skip_version()), 
                               self.new_version_cb,
                               user_agent='CellProfiler/2.0.%d %s'%(self.version, platform.platform()))
Esempio n. 2
0
    def new_version_check(self, force=False):
        if cpp.get_check_new_versions() or force:
            import cellprofiler.utilities.check_for_updates as cfu
            import platform
            import cellprofiler.utilities.version

            version_string = cellprofiler.utilities.version.version_string
            dotted_version = cellprofiler.utilities.version.dotted_version
            version_number = cellprofiler.utilities.version.version_number
            cfu.check_for_updates('http://cellprofiler.org/CPupdate.html',
                                  0 if force else max(version_number, cpp.get_skip_version()),
                                  self.new_version_cb,
                                  user_agent='CellProfiler/%s %s' % (dotted_version, version_string))
Esempio n. 3
0
    def new_version_check(self, force=False):
        if cpp.get_check_new_versions() or force:
            import cellprofiler.utilities.check_for_updates as cfu
            import platform
            import cellprofiler.utilities.version

            version_string = cellprofiler.utilities.version.version_string
            dotted_version = cellprofiler.utilities.version.dotted_version
            version_number = cellprofiler.utilities.version.version_number
            cfu.check_for_updates(
                'http://cellprofiler.org/CPupdate.html',
                0 if force else max(version_number, cpp.get_skip_version()),
                self.new_version_cb,
                user_agent='CellProfiler/%s %s' %
                (dotted_version, version_string))