tool_shed.util package

Submodules

tool_shed.util.admin_util module

tool_shed.util.basic_util module

tool_shed.util.commit_util module

tool_shed.util.common_util module

tool_shed.util.container_util module

tool_shed.util.encoding_util module

tool_shed.util.hg_util module

tool_shed.util.hgweb_config module

tool_shed.util.metadata_util module

tool_shed.util.readme_util module

tool_shed.util.repository_content_util module

tool_shed.util.repository_util module

tool_shed.util.review_util module

tool_shed.util.search_util module

tool_shed.util.shed_index module

tool_shed.util.shed_util_common module

tool_shed.util.tool_dependency_util module

tool_shed.util.tool_util module

tool_shed.util.web_util module

tool_shed.util.web_util.escape(string)[source]

A tool shed variant of markupsafe.escape that allows a select few HTML elements that are repeatedly used in messages created deep in the toolshed components. Ideally abstract things would be produced in these components and messages in the views or client side - this is what should be worked toward - but for now - we have this hack.

>>> assert escape(u"A <b>cómplǐcḁtëd strĩñg</b>") == u'A <b>cómplǐcḁtëd strĩñg</b>'

tool_shed.util.xml_util module