Exemple #1
0
    def save(self, filename, old=True, **kwargs):
        del kwargs
        if old:
            from nwcsaf_formats.ppsv2014_to_oldformat import write_product
            write_product(self, filename)

        else:
            raise NotImplementedError("Can't save to new pps format yet.")
Exemple #2
0
    def save(self, filename, old=True, **kwargs):
        del kwargs
        if old:
            from nwcsaf_formats.ppsv2014_to_oldformat import write_product
            write_product(self, filename)

        else:
            raise NotImplementedError("Can't save to new pps format yet.")
Exemple #3
0
 def save(self, filename, old=True, **kwargs):
     """Save to old format"""
     del kwargs
     if old:
         try:
             from nwcsaf_formats.ppsv2014_to_oldformat import write_product
             write_product(self, filename)
         except ImportError:
             LOG.error("Could not save to old format")
             raise
     else:
         raise NotImplementedError("Can't save to new pps format yet.")
Exemple #4
0
 def save(self, filename, old=True, **kwargs):
     """Save to old format"""
     del kwargs
     if old:
         try:
             from nwcsaf_formats.ppsv2014_to_oldformat import write_product
             write_product(self, filename)
         except ImportError:
             LOG.error("Could not save to old format")
             raise
     else:
         raise NotImplementedError("Can't save to new pps format yet.")