Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4998 Prikazi

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
Opusti
Best Answer

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

self.sudo(my_userid)
Avatar
Opusti
Avtor

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 Odgovori Prikazi Aktivnost
0
sep. 19
98
1
jul. 17
4195
4
avg. 16
8410
1
mar. 16
5019
2
mar. 16
7288