Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4990 มุมมอง

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
4188
4
ส.ค. 16
8404
1
มี.ค. 16
5018
2
มี.ค. 16
7285