def set_name(self,name=None):
if name:<EOL><INDENT>self.name = name[:<NUM_LIT>]<EOL><DEDENT>else:<EOL><INDENT>self.name = self.extract_name()[:<NUM_LIT>]<EOL><DEDENT>self.save()<EOL>return self.name<EOL>
Set the name of the object. If no name is given, the
name is extracted via the extract_name method.