def set_category(self, category):
if not category:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>category = str(category)<EOL>self.xmlnode.setProp("<STR_LIT>", category.encode("<STR_LIT:utf-8>"))<EOL>
Set the category of the item.

        :Parameters:
            - `category`: the new category.
        :Types:
            - `category`: `unicode`