From 90a687ab7af38c4f1b957815a360682e8c582833 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 14 Dec 2012 13:42:43 +0100 Subject: [PATCH] [FIX] misplaced docstrings bzr revid: xmo@openerp.com-20121214124243-kvg2cg00k0a4518p --- openerp/report/interface.py | 11 +++++------ openerp/sql_db.py | 7 +------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/openerp/report/interface.py b/openerp/report/interface.py index c0274e21c3f..88331db1f4d 100644 --- a/openerp/report/interface.py +++ b/openerp/report/interface.py @@ -55,13 +55,12 @@ class report_int(netsvc.Service): def create(self, cr, uid, ids, datas, context=None): return False -""" - Class to automatically build a document using the transformation process: - XML -> DATAS -> RML -> PDF - -> HTML - using a XSL:RML transformation -""" class report_rml(report_int): + """ + Automatically builds a document using the transformation process: + XML -> DATAS -> RML -> PDF -> HTML + using a XSL:RML transformation + """ def __init__(self, name, table, tmpl, xsl): super(report_rml, self).__init__(name) self.table = table diff --git a/openerp/sql_db.py b/openerp/sql_db.py index 9848488660f..31f45f879da 100644 --- a/openerp/sql_db.py +++ b/openerp/sql_db.py @@ -357,11 +357,6 @@ class Cursor(object): def __getattr__(self, name): return getattr(self._obj, name) - """ Set the mode of postgres operations for all cursors - """ - """Obtain the mode of postgres operations for all cursors - """ - class PsycoConnection(psycopg2.extensions.connection): pass @@ -521,8 +516,8 @@ def db_connect(db_name): return Connection(_Pool, db_name) def close_db(db_name): - global _Pool """ You might want to call openerp.modules.registry.RegistryManager.delete(db_name) along this function.""" + global _Pool if _Pool: _Pool.close_all(dsn(db_name)) ct = currentThread()