Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4978 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

self.sudo(my_userid)
Аватар
Відмінити
Автор

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 Відповіді Переглядів Дія
0
вер. 19
98
1
лип. 17
4167
4
серп. 16
8394
1
бер. 16
5008
2
бер. 16
7263