diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 104: Offer more precise version information

Message ID 20111201131923.24088.97830.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Dec. 1, 2011, 1:19 p.m. UTC
------------------------------------------------------------
revno: 104
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: lava-scheduler
timestamp: Thu 2011-12-01 13:33:01 +0100
message:
  Offer more precise version information
  
  This depends on the hint object provided to versiontools
modified:
  lava_scheduler_app/extension.py


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_app/extension.py'
--- lava_scheduler_app/extension.py	2011-11-08 23:56:49 +0000
+++ lava_scheduler_app/extension.py	2011-12-01 12:33:01 +0000
@@ -16,11 +16,8 @@ 
 # You should have received a copy of the GNU Affero General Public License
 # along with LAVA Server.  If not, see <http://www.gnu.org/licenses/>.
 
-import versiontools
 from lava_server.extension import LavaServerExtension, Menu
 
-import lava_scheduler_app
-
 
 class SchedulerExtension(LavaServerExtension):
     """
@@ -60,4 +57,7 @@ 
 
     @property
     def version(self):
-        return versiontools.format_version(lava_scheduler_app.__version__)
+        import versiontools
+        import lava_scheduler_app
+        return versiontools.format_version(
+            lava_scheduler_app.__version__, lava_scheduler_app)