Ejemplo n.º 1
0
    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 {}
Ejemplo n.º 2
0
    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 {}
Ejemplo n.º 3
0
 def set_artist(self, artist_str):
     self.artist = ArtistMgr.from_string(artist_str)
Ejemplo n.º 4
0
 def set_artist(self, artist_str):
     self.artist = ArtistMgr.from_string(artist_str)