Coverage for dryxPython.htmlframework.helpers : 36%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#!/usr/bin/python # encoding: utf-8 helpers ====================================== :Summary: Partial for the htmlframework modules - contains helper functions for building webpages
:Author: David Young
:Date Created: May 28, 2013
:dryx syntax: - ``xxx`` = come back here and do some more work - ``_someObject`` = a 'private' object that should only be changed for debugging
:Notes: - If you have any questions requiring this code please email me: d.r.young@qub.ac.uk """
pass
main() ################################################################### # CLASSES # ###################################################################
################################################################### # PUBLIC FUNCTIONS # ################################################################### # xxx-replace ## LAST MODIFIED : May 28, 2013 ## CREATED : May 28, 2013 ## AUTHOR : DRYX """Unescape a string previously escaped with cgi.escape()
**Key Arguments:** - ``dbConn`` -- mysql database connection - ``log`` -- logger - ``html`` -- the string to be unescaped
**Return:** - ``html`` -- the unescaped string """ ################ > IMPORTS ################ ## STANDARD LIB ## ## THIRD PARTY ## ## LOCAL APPLICATION ##
################ > VARIABLE SETTINGS ######
################ >ACTION(S) ################ html = html.replace("<", "<") html = html.replace(">", ">") html = html.replace(""", '"') # this has to be last: html = html.replace("&", "&")
return html
################################################################### # PRIVATE (HELPER) FUNCTIONS # ###################################################################
################################################################### # TEMPLATE FUNCTIONS # ################################################################### |