Package: python-moinmoin
Version: 1.7.0-3
Severity: normal

The menu option "Render as Docbook" requires python-xml.

1. python-moinmoin should suggest python-xml.
2. I've attached a patch to hide the "Render as Docbook" option 
   if the package isn't installed.
   (otherwise, if the user request a docbook page, he gets the error :
   "ImportError - No module named ext.reader")
3. I'm preparing some updates for README.Debian[1], to explain how
   to enable "optional" options in Debian.

Franklin

[1] http://wiki.debian.org/MoinMoin/README.Debian

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-rc7-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-moinmoin depends on:
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-support                0.8.1      automated rebuilding support for P

Versions of packages python-moinmoin recommends:
ii  exim4                         4.69-5     meta-package to ease Exim MTA (v4)
ii  exim4-daemon-light [mail-tran 4.69-5+b1  lightweight Exim MTA (v4) daemon
pn  python-xapian                 <none>     (no description available)

-- no debconf information
--- config/multiconfig.py-orig	2008-06-23 22:21:02.000000000 +0200
+++ config/multiconfig.py	2008-06-23 22:21:07.000000000 +0200
@@ -245,6 +245,13 @@
                         'MyPages',  # only works when used with a non-default SecurityPolicy (e.g. autoadmin)
                         'CopyPage',  # has questionable behaviour regarding subpages a user can't read, but can copy
                        ]
+
+    #Render As Docbook requires python-xml.
+    try:
+        from xml.dom.ext.reader import Sax
+    except ImportError:
+        actions_excluded.append('RenderAsDocbook')
+			 
     allow_xslt = False
     antispam_master_url = "http://master.moinmo.in/?action=xmlrpc2";
 

Reply via email to