Hi, I have this piece of code in a controller to test a distributed transaction but it fails with: "ValueError: need more than 0 values to unpack". def index():
    response.flash = T("Hello World")
    db0 = DAL('postgres://belmiro:naosei@localhost/ennos__blm_0139' )
    db1 = DAL('postgres://belmiro:naosei@localhost/ennos__blm_0143' )
    DAL.distributed_transaction_begin( db0, db1 )
    db0.auth_event.insert(description='test tx 0' )
    db1.auth_event.insert(description='test tx 1' )
    DAL.distributed_transaction_commit( db0, db1 )
    return dict(message=T('Welcome to web2py!'))

Stack trace:
File ".../web2py/applications/welcome/controllers/default.py" <http://trane:8000/admin/default/edit/welcome/controllers/default.py>, line 12, in index DAL.distributed_transaction_begin( db0, db1 ) File ".../web2py/gluon/packages/dal/pydal/base.py", line 341, in distributed_transaction_begin keys = ['%s.%i' % (thread_key, i) for (i, db) in instances]
What I am doing wrong? Thanks,

Carlos Correia
=========================
MEMÓRIA PERSISTENTE
GSM:  917 157 146 (Signal, WhatsApp)
e-mail: ge...@memoriapersistente.pt
URL: http://www.memoriapersistente.pt
XMPP (Jabber): car...@memoriapersistente.pt
GnuPG: wwwkeys.eu.pgp.net

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b94dca1b-461e-ddb5-7f41-f161330d107c%40memoriapersistente.pt.

Reply via email to