From patchwork Thu Dec 1 13:19:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 5419 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 31CF023E0C for ; Thu, 1 Dec 2011 13:19:26 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 0FB22A183CE for ; Thu, 1 Dec 2011 13:19:26 +0000 (UTC) Received: by laah2 with SMTP id h2so979670laa.11 for ; Thu, 01 Dec 2011 05:19:25 -0800 (PST) Received: by 10.152.135.179 with SMTP id pt19mr4462315lab.47.1322745565722; Thu, 01 Dec 2011 05:19:25 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs63543lal; Thu, 1 Dec 2011 05:19:25 -0800 (PST) Received: by 10.180.80.162 with SMTP id s2mr4856953wix.27.1322745563619; Thu, 01 Dec 2011 05:19:23 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id x22si2039224weq.62.2011.12.01.05.19.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Dec 2011 05:19:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RW6Xr-0008An-7o for ; Thu, 01 Dec 2011 13:19:23 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 31D0DE0100 for ; Thu, 1 Dec 2011 13:19:23 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 104 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-scheduler/trunk] Rev 104: Offer more precise version information Message-Id: <20111201131923.24088.97830.launchpad@ackee.canonical.com> Date: Thu, 01 Dec 2011 13:19:23 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14414"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: fb78e527c72113bb4a00220e09bc0f247939a356 ------------------------------------------------------------ revno: 104 committer: Zygmunt Krynicki 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 === 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 . -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)