Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4922 Zobrazení

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
Zrušit
Nejlepší odpověď

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

self.sudo(my_userid)
Avatar
Zrušit
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 Odpovědi Zobrazení Aktivita
0
zář 19
98
1
čvc 17
4102
4
srp 16
8287
1
bře 16
4949
2
bře 16
7207