aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-14 18:16:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-14 18:16:00 +0000
commitc2ac51f9632a8e46ef701a8b2d07f82d6fed69a7 (patch)
tree299a0478863c6a79b65b8d3bd66d31bdd83b090a /python
parent3d0b865e6ca5431b621e2537395c973829366b42 (diff)
downloadpaludis-c2ac51f9632a8e46ef701a8b2d07f82d6fed69a7.tar.gz
paludis-c2ac51f9632a8e46ef701a8b2d07f82d6fed69a7.tar.xz
Add glsa_file to GLSADepTag. Fixes: ticket:456. (Stefan Kögl)
Diffstat (limited to 'python')
-rw-r--r--python/dep_tag.cc5
-rwxr-xr-xpython/dep_tag_TEST.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/python/dep_tag.cc b/python/dep_tag.cc
index fe77bbf1b..7087f6f63 100644
--- a/python/dep_tag.cc
+++ b/python/dep_tag.cc
@@ -137,11 +137,14 @@ void expose_dep_tag()
(
"GLSADepTag",
"DepTag subclass for GLSAs.",
- bp::init<const std::string &, const std::string &>("__init__(id_str, glsa_title_str)")
+ bp::init<const std::string &, const std::string &, const FSEntry &>("__init__(id_str, glsa_title_str, glsa_file_str)")
)
.add_property("glsa_title", &GLSADepTag::glsa_title,
"Our GLSA title (for example, 'Yet another PHP remote access hole')"
)
+ .add_property("glsa_file", &GLSADepTag::glsa_file,
+ "Our GLSA filename"
+ )
;
/**
diff --git a/python/dep_tag_TEST.py b/python/dep_tag_TEST.py
index bcde430b1..1b3a2ac86 100755
--- a/python/dep_tag_TEST.py
+++ b/python/dep_tag_TEST.py
@@ -28,7 +28,7 @@ class TestCase_01_DepTag(unittest.TestCase):
class TestCase_02_GLSADepTag(unittest.TestCase):
def setUp(self):
global dt
- dt = GLSADepTag("id", "title")
+ dt = GLSADepTag("id", "title", "/path")
def test_01_instance(self):
self.assert_(isinstance(dt, DepTag))
@@ -37,6 +37,7 @@ class TestCase_02_GLSADepTag(unittest.TestCase):
self.assertEquals(dt.category, "glsa")
self.assertEquals(dt.short_text, "GLSA-id")
self.assertEquals(dt.glsa_title, "title")
+ self.assertEquals(dt.glsa_file, "/path")
class TestCase_03_GeneralSetDepTag(unittest.TestCase):
def setUp(self):