Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7348 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The database cursor should have it. Try:

cr.dbname
Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 25
1428
2
thg 11 24
6239
2
thg 10 24
3199
2
thg 8 24
1846
3
thg 7 24
8245