Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4888 Tampilan

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
Buang
Jawaban Terbai

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

self.sudo(my_userid)
Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
0
Sep 19
98
1
Jul 17
4069
4
Agu 16
8238
1
Mar 16
4918
2
Mar 16
7197