Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4950 Представления

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
4138
4
авг. 16
8343
1
мар. 16
4977
2
мар. 16
7227