def __init__(self, tipe, title, released, genres=None, authors=None, artist=None, alt=None, desc=None, status=ONGOING): self.type = tipe self.title = title self.released = released self.slug = "-".join([tipe, title]) self.aka = alt self.description = desc self.status = status self.genres = GenreMgr.from_string(genres) if genres else {} self.authors = AuthorMgr.from_string(authors) if authors else {} self.artist = ArtistMgr.from_string(artist) if artist else {}
def set_authors(self, author_str): self.authors = AuthorMgr.from_string(author_str)