콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5169 화면

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
4350
4
8월 16
8540
1
3월 16
5208
2
3월 16
7441