4
4
# Written by Marc Tardif <marc@interunion.ca>
6
# This file is part of HWTest.
6
# This file is part of Checkbox.
8
# HWTest is free software: you can redistribute it and/or modify
8
# Checkbox is free software: you can redistribute it and/or modify
9
9
# it under the terms of the GNU General Public License as published by
10
10
# the Free Software Foundation, either version 3 of the License, or
11
11
# (at your option) any later version.
13
# HWTest is distributed in the hope that it will be useful,
13
# Checkbox is distributed in the hope that it will be useful,
14
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
16
# GNU General Public License for more details.
18
18
# You should have received a copy of the GNU General Public License
19
# along with HWTest. If not, see <http://www.gnu.org/licenses/>.
19
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
23
from hwtest.repository import Repository, RepositoryManager
24
from hwtest.lib.cache import cache
23
from checkbox.repository import Repository, RepositoryManager
24
from checkbox.lib.cache import cache
27
27
class Registry(Repository):
73
73
def iterkeys(self):
74
from hwtest.registries.link import LinkRegistry
74
from checkbox.registries.link import LinkRegistry
76
76
for k, v in self.items():
77
77
# Prevent returning links in a dict() context
82
82
return list(self.iterkeys())
84
84
def itervalues(self):
85
from hwtest.registries.link import LinkRegistry
85
from checkbox.registries.link import LinkRegistry
87
87
for k, v in self.items():
88
88
# Prevent returning links in a values() context