Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(0)  |  Derive(0)  |  Import(14)
The PostgreSQL connector is a connectivity layer between the OpenERP code and
the database, *not* a database abstraction toolkit. Database abstraction is what
the ORM does, in fact.

See also: the `pooler` module

src/o/p/openerp-server-5.0.0-3/bin/addons/auction/wizard/wizard_transfer_unsold_object.py   openerp-server(Download)
import pooler
from osv.orm import browse_record
import sql_db
 
transfer_unsold_object_form = """<?xml version="1.0"?>

src/o/p/openerp-server-5.0.0-3/bin/addons/auction/wizard/wizard_lot_date_move.py   openerp-server(Download)
import netsvc
import pooler
import sql_db
 
auction_move = '''<?xml version="1.0"?>

src/o/p/openerp-server-5.0.0-3/bin/addons/auction/wizard/wizard_lots_numerotate.py   openerp-server(Download)
import netsvc
import pooler
import sql_db
 
numerotate_form_cont = '''<?xml version="1.0"?>

src/o/p/openerp-server-5.0.0-3/bin/addons/auction/wizard/wizard_lots_buyer_map.py   openerp-server(Download)
import netsvc
import pooler
import sql_db
 
buyer_map = '''<?xml version="1.0"?>

src/o/p/openerp-server-5.0.0-3/bin/addons/auction/wizard/wizard_aie_send.py   openerp-server(Download)
def _send(self,db_name,uid, datas,context={}):
    import pickle, thread, sql_db
    #cr = pooler.get_db(cr.dbname).cursor()
 
#   cr=sql_db.db.cursor()

src/o/p/openerp-server-5.0.0-3/bin/service/web_services.py   openerp-server(Download)
import pooler
import release
import sql_db
import tools
 

src/o/p/openerp-server-5.0.0-3/bin/pooler.py   openerp-server(Download)
    # sql_db import psycopg2.tool which create a default logger if there is not.
    # this resulting of having the logs outputed twice...
    import sql_db
    db = sql_db.db_connect(db_name)
    return db

src/o/p/openerp-extra-6.1-HEAD/labo_stock/wizard/change_date.py   openerp-extra-6.1(Download)
import pooler
from osv.orm import browse_record
import sql_db
new_date_form = """<?xml version="1.0"?>
<form string="Assign a new expiry date">

src/o/p/openerp-extra-6.1-HEAD/labo_analysis/wizard/wizard_numerotate_setup.py   openerp-extra-6.1(Download)
import netsvc
import pooler
import sql_db
import time
 

src/o/p/openerp-extra-6.1-HEAD/labo_analysis/wizard/wizard_allsetting.py   openerp-extra-6.1(Download)
import netsvc
import pooler
import sql_db
import time
 

  1 | 2  Next