[Mpuls-commits] r4603 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 10 13:48:25 CET 2011


Author: bh
Date: 2011-02-10 13:48:24 +0100 (Thu, 10 Feb 2011)
New Revision: 4603

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/helpers.py
Log:
* mpulsweb/lib/helpers.py: Remove imports that are not used in
helpers or accessed by the code that uses the helpers module: sys,
quoteattr, c, cache, response, HTML, PageNode


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-02-10 12:35:18 UTC (rev 4602)
+++ base/trunk/ChangeLog	2011-02-10 12:48:24 UTC (rev 4603)
@@ -1,5 +1,11 @@
 2011-02-10  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/helpers.py: Remove imports that are not used in
+	helpers or accessed by the code that uses the helpers module: sys,
+	quoteattr, c, cache, response, HTML, PageNode
+
+2011-02-10  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/helpers.py (tag): Removed. It's now implemented in
 	formed. Adapt imports accordingly. There's still code that imports
 	tag from mpulsweb.lib.helpers, though.

Modified: base/trunk/mpulsweb/lib/helpers.py
===================================================================
--- base/trunk/mpulsweb/lib/helpers.py	2011-02-10 12:35:18 UTC (rev 4602)
+++ base/trunk/mpulsweb/lib/helpers.py	2011-02-10 12:48:24 UTC (rev 4603)
@@ -29,25 +29,22 @@
 available to Controllers. This module is available to both as 'h'.
 """
 
-import sys
 import locale
 import logging
 import re
-import os 
+import os
 import datetime
 from string import printable
-from xml.sax.saxutils import quoteattr
 
-from pylons import c, cache, config, g, request, response, url
+from pylons import config, g, request, url
 from mpulsweb.lib.translation import _
 
 # Use url_for from prior versions
 from routes import url_for
 
-from webhelpers.html import escape, HTML, literal, url_escape
+from webhelpers.html import escape, literal, url_escape
 from webhelpers.html.tags import *
 
-from formed.meta.data import PageNode
 from formed.renderer.helpers import tag
 
 from mpulsweb.lib.security import hasRole, getKAName



More information about the Mpuls-commits mailing list