def edit(self, **kwargs):
if '<STR_LIT:id>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT:id>'] = self.ratingKey<EOL><DEDENT>if '<STR_LIT:type>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT:type>'] = utils.searchType(self.type)<EOL><DEDENT>part = '<STR_LIT>' % (self.librarySectionID,<EOL>urlencode(kwargs))<EOL>self._server.query(part, method=self._server._session.put)<EOL>
Edit an object.

            Parameters:
                kwargs (dict): Dict of settings to edit.

            Example:
                {'type': 1,
                 'id': movie.ratingKey,
                 'collection[0].tag.tag': 'Super',
                 'collection.locked': 0}