Esempio n. 1
0
class HDXDaily(HDXBaseEntity):
    """
        Dailes are generated by artists and reviewed by supervisors. They are children of either shots or assets.
    """

    type = 'dialies'

    def __init__(self, *args, **kwargs):
        super(HDXDaily, self).__init__(*args, **kwargs)

        self.source = HDXMovie(self.source, self.mavis)

    def make(self, metadata, options = {}):
        """
            Extend basic make behavior to include rending of the source (an HDXMovie).
        """

        self.path = os.path.join(self.paths['shots'] or self.paths['assets'], 'dailies', str(date.today()), self.source.fileName)
        self._parsePath()

        super(HDXDaily, self).make(metadata, options)
        self.source.render(title='HDX Daily')