İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4999 Görünümler

How can i overwrite the value of "self._uid" based on special condition

Eg:- self._uid = int(my_userid) gives an error "AttributeError: can't set attribute"

Any thought on this is appreciated !..

Avatar
Vazgeç
En İyi Yanıt

 use self.sudo(my_userid), it will set the uid value in the self .

self.sudo(my_userid)
Avatar
Vazgeç
Üretici

Hi Prakash , Thanks for your answer , but this is not compatible with version 7 . Am actually trying to implement this small fix in version 7 . Is there any alternatives or for this .. Thanks ..

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 19
98
1
Tem 17
4195
4
Ağu 16
8410
1
Mar 16
5019
2
Mar 16
7288