콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7333 화면

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

아바타
취소
베스트 답변

The database cursor should have it. Try:

cr.dbname
아바타
취소
작성자

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.

작성자

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?

관련 게시물 답글 화면 활동
0
7월 25
1404
2
11월 24
6160
2
10월 24
3128
2
8월 24
1824
3
7월 24
8215