[FIX] misplaced docstrings
bzr revid: xmo@openerp.com-20121214124243-kvg2cg00k0a4518p
This commit is contained in:
parent
a34a167037
commit
90a687ab7a
|
@ -55,13 +55,12 @@ class report_int(netsvc.Service):
|
||||||
def create(self, cr, uid, ids, datas, context=None):
|
def create(self, cr, uid, ids, datas, context=None):
|
||||||
return False
|
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):
|
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):
|
def __init__(self, name, table, tmpl, xsl):
|
||||||
super(report_rml, self).__init__(name)
|
super(report_rml, self).__init__(name)
|
||||||
self.table = table
|
self.table = table
|
||||||
|
|
|
@ -357,11 +357,6 @@ class Cursor(object):
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
return getattr(self._obj, 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):
|
class PsycoConnection(psycopg2.extensions.connection):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -521,8 +516,8 @@ def db_connect(db_name):
|
||||||
return Connection(_Pool, db_name)
|
return Connection(_Pool, db_name)
|
||||||
|
|
||||||
def close_db(db_name):
|
def close_db(db_name):
|
||||||
global _Pool
|
|
||||||
""" You might want to call openerp.modules.registry.RegistryManager.delete(db_name) along this function."""
|
""" You might want to call openerp.modules.registry.RegistryManager.delete(db_name) along this function."""
|
||||||
|
global _Pool
|
||||||
if _Pool:
|
if _Pool:
|
||||||
_Pool.close_all(dsn(db_name))
|
_Pool.close_all(dsn(db_name))
|
||||||
ct = currentThread()
|
ct = currentThread()
|
||||||
|
|
Loading…
Reference in New Issue