Commits

Anonymous committed 17deeba

Don't import ``render`` and ``sanitize`` to converters module.

Comments (0)

Files changed (5)

   - Demonstrates ``webhelpers.html.grid``. Run as 
     "python -m webhelpers.html.grid_demo OUTPUT_DIRECTORY".
 
+* webhelpers.html.converters:
+
+  - Don't import ``render`` and ``sanitize`` from ``webhelpers.html.render``.
+
 * webhelpers.misc:
 
   - New helper ``flatten`` to interpolate embedded lists and tuples.

docs/modules/html/converters.rst

 
 .. autofunction:: nl2br
 
-.. autofunction:: render
-
-.. autofunction:: sanitize
-
 .. autofunction:: textilize

docs/modules/html/render.rst

 .. automodule:: webhelpers.html.render
 
 .. currentmodule:: webhelpers.html.render
+
+.. autofunction:: render
+
+.. autofunction:: sanitize

webhelpers/html/converters.py

 import re
 
 from webhelpers.html import HTML, escape, literal, lit_sub
-from webhelpers.html.render import render, sanitize
 import webhelpers.textile as textile
 
 __all__ = [
     "format_paragraphs",
     "markdown", 
     "nl2br",
-    "render",
-    "sanitize", 
     "textilize",
     ]
 

webhelpers/html/render.py

 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ##########################################################################
 """An HTML-to-text formatter and HTML sanitizer.
-
-``render()`` and ``sanitize()`` are imported to ``webhelpers.html.converters``,
-and should be used from there.
 """
 
 from HTMLParser import HTMLParser
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.