~ubuntu-branches/ubuntu/intrepid/hwtest/intrepid

« back to all changes in this revision

Viewing changes to registries/packages.py

  • Committer: Bazaar Package Importer
  • Author(s): Marc Tardif
  • Date: 2008-04-21 14:32:16 UTC
  • Revision ID: james.westby@ubuntu.com-20080421143216-hsikgcaqn1233jvr
Tags: 0.1-0ubuntu10
Fixed xalign and yalign in exchange summary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from hwtest.registry import Registry
24
24
from hwtest.registries.command import CommandRegistry
 
25
from hwtest.registries.link import LinkRegistry
25
26
 
26
27
 
27
28
COLUMNS = ["name", "version", "description"]
40
41
 
41
42
    @cache
42
43
    def items(self):
43
 
        return [(k, v) for k, v in self.package.items()]
 
44
        items = [(k, v) for k, v in self.package.items()]
 
45
        items.append(("package", LinkRegistry(None, self)))
 
46
 
 
47
        return items
44
48
 
45
49
 
46
50
class PackagesRegistry(CommandRegistry):
66
70
                    value = line[lengths[i]:lengths[i+1]-1].strip()
67
71
                    package[key] = value
68
72
 
 
73
                key = package["name"]
69
74
                value = PackageRegistry(None, package)
70
75
                items.append((key, value))
71
76