Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4912 Visualizzazioni

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
Abbandona
Risposta migliore

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

self.sudo(my_userid)
Avatar
Abbandona
Autore

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 correlati Risposte Visualizzazioni Attività
0
set 19
98
1
lug 17
4091
4
ago 16
8267
1
mar 16
4942
2
mar 16
7203