@api_endpoint<EOL><INDENT>def update(self, selector, update, options=None):<DEDENT>
<EOL>del options<EOL>user = get_object(<EOL>self.model, selector['<STR_LIT>'],<EOL>pk=this.user_id,<EOL>)<EOL>profile_update = self.deserialize_profile(<EOL>update['<STR_LIT>'], key_prefix='<STR_LIT>', pop=True,<EOL>)<EOL>if len(update['<STR_LIT>']) != <NUM_LIT:0>:<EOL><INDENT>raise MeteorError(<NUM_LIT>, '<STR_LIT>')<EOL><DEDENT>for key, val in profile_update.items():<EOL><INDENT>setattr(user, key, val)<EOL><DEDENT>user.save()<EOL>
Update user data.