[Cdd-commits] r894 - cdd/trunk/webtools

CDD Subversion Commit noreply at alioth.debian.org
Mon Jun 30 19:24:19 UTC 2008


Author: tille
Date: Mon Jun 30 19:24:19 2008
New Revision: 894

Modified:
   cdd/trunk/webtools/cddtasktools.py
Log:
Enable non-ASCII characters in Homepage URLs


Modified: cdd/trunk/webtools/cddtasktools.py
==============================================================================
--- cdd/trunk/webtools/cddtasktools.py	(original)
+++ cdd/trunk/webtools/cddtasktools.py	Mon Jun 30 19:24:19 2008
@@ -707,7 +707,9 @@
                 deppkg = DependantPackage()
                 (deppkg.desc['en']['short'], deppkg.desc['en']['long']) = SplitDescription(stanza['description'])
                 try:
-                    deppkg.homepage = stanza['homepage']
+                    # This is necessary because UTF-8 coded URLs with non-ASCII characters can
+                    # form valid URLS
+                    deppkg.homepage = unicode(stanza['homepage'], 'utf-8')
                 except KeyError:
                     deppkg.homepage = '#' # Not every package has a homepage tag
                 except:



More information about the Cdd-commits mailing list