[dbapi] remove the dbapi module and its immediate remaining users
We suppress toolsutils.config_connect, which has currently
only one known user (the email cube), which is being patched.
It can be replaced with utils.admincnx function for a local
access.
Next will come a series to:
* remove the session backward compatibility
* fold ClientConnection into Connection
Closes #3933480.
from__future__importabsolute_importimportmarkdownimportlogginglog=logging.getLogger(__name__)defmarkdown_publish(context,data):"""publish a string formatted as MarkDown Text to HTML :type context: a cubicweb application object :type data: str :param data: some MarkDown text :rtype: unicode :return: the data formatted as HTML or the original data if an error occurred """md=markdown.Markdown()try:returnmd.convert(data)except:importtraceback;traceback.print_exc()log.exception("Error while converting Markdown to HTML")returndata