Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7265 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

The database cursor should have it. Try:

cr.dbname
Imagine profil
Abandonează
Autor

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.

Autor

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?

Related Posts Răspunsuri Vizualizări Activitate
0
iul. 25
1279
2
nov. 24
5891
2
oct. 24
2972
2
aug. 24
1733
3
iul. 24
8053