Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4986 Weergaven

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
Annuleer
Beste antwoord

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

self.sudo(my_userid)
Avatar
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 19
98
1
jul. 17
4185
4
aug. 16
8404
1
mrt. 16
5016
2
mrt. 16
7283