Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7315 Weergaven

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

Avatar
Annuleer
Beste antwoord

The database cursor should have it. Try:

cr.dbname
Avatar
Annuleer
Auteur

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.

Auteur

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?

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 25
1353
2
nov. 24
6055
2
okt. 24
3071
2
aug. 24
1797
3
jul. 24
8158