diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 03:01:29 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 03:01:29 +0200 |
commit | 69c297fe956f174af2525ea94c07a17833674548 (patch) | |
tree | 42fa3697ad9a470eb62300a6bb43236a1dabcb6a /plugins | |
parent | 07201291ae3a145e4b7c66253370b2acd9206db1 (diff) | |
download | portato-69c297fe956f174af2525ea94c07a17833674548.tar.gz portato-69c297fe956f174af2525ea94c07a17833674548.tar.bz2 portato-69c297fe956f174af2525ea94c07a17833674548.zip |
Also ported EbuildDetail
Diffstat (limited to '')
-rw-r--r-- | plugins/package_details.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/package_details.py b/plugins/package_details.py index 2ae9f56..49a88ad 100644 --- a/plugins/package_details.py +++ b/plugins/package_details.py @@ -56,7 +56,19 @@ class ChangelogDetail (ScrolledDetail): _widget_name_ = "Changelog" def widget_init (self): - self._view_ = HighlightView(lambda p: os.path.join(p.get_package_path(), "ChangeLog"), ["changelog"]) + self._view_ = HighlightView(self.view_update, ["changelog"]) ScrolledDetail.widget_init(self) + def view_update (self, pkg): + return os.path.join(pkg.get_package_path(), "Changelog") + +class EbuildDetail (ScrolledDetail): + __description__ = "Shows the ebuild of a package" + _widget_name_ = "Ebuild" + + def widget_init(self): + self._view_ = HighlightView(lambda p: p.get_ebuild_path(), ["gentoo", "sh"]) + ScrolledDetail.widget_init(self) + +register(EbuildDetail) register(ChangelogDetail) |