コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4992 ビュー

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

関連投稿 返信 ビュー 活動
0
9月 19
98
1
7月 17
4189
4
8月 16
8404
1
3月 16
5018
2
3月 16
7286