""" classes """ from base import MContainer, MAsset #--------------------------------------------------------------- # MContainers : have groupings (all are plural) #--------------------------------------------------------------- class Playground(MContainer): """ Pre-defined MContainer class for Playground ... Suggested use of this class is to be the root af all ... """ def __init__(self, name, root_path): """ This needs a root path for all children This is the main storage location for all other projects vs. so this is the playground (just another MContainer) """ super(Playground, self).__init__() self.name = name class Episodes(MContainer): """ Pre-defined MContainer class for Episodes """ def __init__(self,name): super(Episodes, self).__init__() self.name = name class Assets(MContainer): """ Pre-defined MContainer class for Assets """ def __init__(self,name): super(Assets, self).__init__() self.name = name class Shots(MContainer): """ Pre-defined MContainer class for Shots """ def __init__(self,name): super(Shots, self).__init__() self.name = name class CustomContainer(MContainer): """ Custom MContainer class """ def __init__(self, name, custom_type): super(CustomContainer, self).__init__() self.name = name self.custom_type = custom_type #--------------------------------------------------------------- # MAssets : no groupings (all are special) #--------------------------------------------------------------- class Project(MAsset): """ Pre-defined MAsset class for Project """ def __init__(self,name): super(Project, self).__init__() self.name = name class Episode(MAsset): """ Pre-defined MAsset class for Episode """ def __init__(self,name): super(Episode, self).__init__() self.name = name class Asset(MAsset): """ Pre-defined MAsset class for Asset """ def __init__(self,name): super(Asset, self).__init__() self.name = name class Shot(MAsset): """ Pre-defined MAsset class for Shot """ def __init__(self,name): super(Shot, self).__init__() self.name = name class CustomAsset(MAsset): """ Custom MAsset class """ def __init__(self, name, custom_type): super(CustomAsset, self).__init__() self.name = name self.custom_type = custom_type