Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4885 Widoki

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 !..

Awatar
Odrzuć
Najlepsza odpowiedź

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

self.sudo(my_userid)
Awatar
Odrzuć
Autor

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 ..

Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 19
98
1
lip 17
4063
4
sie 16
8234
1
mar 16
4918
2
mar 16
7196