aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:22:59 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:22:59 +0000
commit676210330328f04eda39fa5ee9b173e3acc86b88 (patch)
treef4603334a8cb43a35ce29d6cd473c41e5afeb71f /python
parentff653fb58c83e7269c3b6ae85ed5b1ff55232b9f (diff)
downloadpaludis-676210330328f04eda39fa5ee9b173e3acc86b88.tar.gz
paludis-676210330328f04eda39fa5ee9b173e3acc86b88.tar.xz
Kill repository NVIs, License interface. Fixes: ticket:394
Diffstat (limited to 'python')
-rw-r--r--python/repository.cc39
-rwxr-xr-xpython/repository_TEST.py7
2 files changed, 0 insertions, 46 deletions
diff --git a/python/repository.cc b/python/repository.cc
index 1bd540a3c..4d2186c2a 100644
--- a/python/repository.cc
+++ b/python/repository.cc
@@ -108,12 +108,6 @@ struct RepositoryWrapper :
return self.destination_interface;
}
- static RepositoryLicensesInterface *
- get_licenses_interface(const Repository & self)
- {
- return self.licenses_interface;
- }
-
static RepositoryEInterface *
get_e_interface(const Repository & self)
{
@@ -136,19 +130,6 @@ struct FakeRepositoryWrapper
}
};
-struct RepositoryLicensesInterfaceWrapper
-{
- static PyObject *
- license_exists(const RepositoryLicensesInterface & self, const std::string & license)
- {
- tr1::shared_ptr<FSEntry> p(self.license_exists(license));
- if (p)
- return to_string<FSEntry>::convert(*p);
- else
- return 0;
- }
-};
-
struct RepositoryEInterfaceWrapper
{
static bp::object
@@ -337,11 +318,6 @@ void expose_repository()
"[ro] RepositoryDestinationInterface"
)
- .add_property("licenses_interface", bp::make_function(&RepositoryWrapper::get_licenses_interface,
- bp::return_internal_reference<>()),
- "[ro] RepositoryLicensesInterface"
- )
-
.add_property("e_interface", bp::make_function(&RepositoryWrapper::get_e_interface,
bp::return_internal_reference<>()),
"[ro] RepositoryEInterface"
@@ -500,21 +476,6 @@ void expose_repository()
);
/**
- * RepositoryLicensesInterface
- */
- bp::class_<RepositoryLicensesInterface, boost::noncopyable>
- (
- "RepositoryLicensesInterface",
- "Interface for handling actions relating to licenses.",
- bp::no_init
- )
- .def("license_exists", &RepositoryLicensesInterfaceWrapper::license_exists,
- "license_exists(string) -> path_string or None\n"
- "Check if a license exists."
- )
- ;
-
- /**
* RepositoryEInterface
*/
bp::class_<RepositoryEInterface, boost::noncopyable>
diff --git a/python/repository_TEST.py b/python/repository_TEST.py
index 6daddb1c7..aad3ab5ab 100755
--- a/python/repository_TEST.py
+++ b/python/repository_TEST.py
@@ -176,13 +176,6 @@ class TestCase_02_RepositoryInterfaces(unittest.TestCase):
di = irepo.destination_interface
self.assert_(isinstance(di, RepositoryDestinationInterface))
- def test_11_licenses_interface(self):
- li = repo.licenses_interface
- self.assert_(isinstance(li, RepositoryLicensesInterface))
-
- self.assertEquals(os.path.realpath(li.license_exists("foo")), os.path.join(repo_path, "licenses/foo"))
- self.assertEquals(li.license_exists("bad"), None)
-
def test_12_e_interface(self):
ei = nce.main_repository.e_interface