Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7232 Visualizzazioni

How to fetch current logged in database name at server side in particular class??

Avatar
Abbandona
Risposta migliore

The database cursor should have it. Try:

cr.dbname
Avatar
Abbandona
Autore

but for that i have to inherit osv and the place(http_server.py) where i need dbname is already implemented class and used in many classes,,,so if i am trying to inherit osv.osv then it gives me::TypeError: Error when calling the metaclass bases

Could you edit your post to include more context? Paste some code and such.

Autore

Hello Allison,,thank you so much for your reply but i have done what i want, i have fetched db_name from tools.config['db_name']....Thanxxx

Hello Nirav, I use db_name=tools.config['db_name'] but the return value is False. could you please tell me how?

Post correlati Risposte Visualizzazioni Attività
0
lug 25
1240
2
nov 24
5813
2
ott 24
2936
2
ago 24
1722
3
lug 24
8023