Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4936 Ansichten

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
Verwerfen
Beste Antwort

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

self.sudo(my_userid)
Avatar
Verwerfen
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 ..

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 19
98
1
Juli 17
4128
4
Aug. 16
8322
1
März 16
4973
2
März 16
7221