Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5022 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

self.sudo(my_userid)
Imagine profil
Abandonează
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 ..

Related Posts Răspunsuri Vizualizări Activitate
0
sept. 19
98
1
iul. 17
4204
4
aug. 16
8411
1
mar. 16
5024
2
mar. 16
7302