r835 - in zope-common/trunk: . debian
Bernd Zeimetz
bzed-guest at alioth.debian.org
Fri May 4 23:09:05 UTC 2007
Author: bzed-guest
Date: 2007-05-04 23:09:04 +0000 (Fri, 04 May 2007)
New Revision: 835
Modified:
zope-common/trunk/debian/changelog
zope-common/trunk/debian/control
zope-common/trunk/dzhandle
zope-common/trunk/dzhandle.sgml
Log:
adding show-package-info to dzhandle
Modified: zope-common/trunk/debian/changelog
===================================================================
--- zope-common/trunk/debian/changelog 2007-05-04 18:27:20 UTC (rev 834)
+++ zope-common/trunk/debian/changelog 2007-05-04 23:09:04 UTC (rev 835)
@@ -1,8 +1,12 @@
zope-common (0.5.33) UNRELEASED; urgency=low
- * dzhandle: adding support for mkzopeinstance --skelsrc
+ * dzhandle:
+ - adding support for mkzopeinstance --skelsrc. You're now able to
+ use dzhandle [..] make-instance --skelsrc=SKEL
+ - adding a show-package-info option which prints the zope_packages
+ dict in a reuseable way. Versions can be limited by using -z.
- -- Bernd Zeimetz <bernd at bzed.de> Wed, 18 Apr 2007 01:39:31 +0200
+ -- Bernd Zeimetz <bernd at bzed.de> Sat, 05 May 2007 00:46:09 +0200
zope-common (0.5.32) unstable; urgency=low
Modified: zope-common/trunk/debian/control
===================================================================
--- zope-common/trunk/debian/control 2007-05-04 18:27:20 UTC (rev 834)
+++ zope-common/trunk/debian/control 2007-05-04 23:09:04 UTC (rev 835)
@@ -2,7 +2,7 @@
Section: web
Priority: optional
Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers at lists.alioth.debian.org>
-Uploaders: Fabio Tranchitella <kobold at debian.org>, Andrea Mennucci <mennucc1 at debian.org>, martin f. krafft <madduck at debian.org>, Matthias Klose <doko at debian.org>, Jonas Meurer <mejo at debian.org>
+Uploaders: Fabio Tranchitella <kobold at debian.org>, Andrea Mennucci <mennucc1 at debian.org>, martin f. krafft <madduck at debian.org>, Matthias Klose <doko at debian.org>, Jonas Meurer <mejo at debian.org>, Bernd Zeimetz <bernd at bzed.de>
Build-Depends: debhelper (>= 5.0.0), po-debconf, lsb-release
Build-Depends-Indep: docbook-to-man
Standards-Version: 3.7.2
Modified: zope-common/trunk/dzhandle
===================================================================
--- zope-common/trunk/dzhandle 2007-05-04 18:27:20 UTC (rev 834)
+++ zope-common/trunk/dzhandle 2007-05-04 23:09:04 UTC (rev 835)
@@ -1759,6 +1759,33 @@
register_action(DZZeoctl)
+
+class DZShowPackageInfo(DZAction):
+ name = 'show-package-info'
+ help = 'show various informations about zope packages'
+ kind = None
+
+ def __init__(self):
+ DZAction.__init__(self)
+ self.get_option_parser().set_usage(
+ 'usage: %s [<option> ...] %s' % (program, self.name))
+
+ def run(self, global_options):
+ package_info={}
+ for package in zope_packages:
+ package_info[package['version']]=[
+ "%s: %s" % (key, value) for key, value in package.iteritems()]
+
+ if len(global_options.zversion) == 0:
+ out=[package_info[version] for version in sorted(package_info.keys())]
+ else:
+ out=[package_info[version] for version in global_options.zversion]
+ print '\n\n'.join(['\n'.join(info) for info in out])
+
+register_action(DZShowPackageInfo)
+
+
+
class ZopeInstance:
def __init__(self, home, version, read_dzfile = True):
self.home = home
Modified: zope-common/trunk/dzhandle.sgml
===================================================================
--- zope-common/trunk/dzhandle.sgml 2007-05-04 18:27:20 UTC (rev 834)
+++ zope-common/trunk/dzhandle.sgml 2007-05-04 23:09:04 UTC (rev 835)
@@ -289,7 +289,10 @@
<term><option>prerm-extension, prerm-product</option></term>
<listitem><para>handle prerm of a packaged extension/product</para></listitem>
</varlistentry>
-
+ <varlistentry>
+ <term><option>show-package-info</option></term>
+ <listitem><para>show various informations about zope packages</para></listitem>
+ </varlistentry>
</variablelist>
</refsect1>
More information about the pkg-zope-commits
mailing list