Example #1
0
    def saveManagedObject(self, obj, source):
        # Save obj
        path = obj.dataFilePath(source.path)
        dirname = os.path.dirname(path)
                
        if not os.path.exists(dirname):
            os.makedirs(dirname)

        self.writePlist(obj.dump(), path)
        
        # Save static files
        for static_file in obj.static_files:
            static_file.save(dirname)
        
        obj.setSource(source.newUpdateTime())
Example #2
0
 def updateTime(self, name):
     source = self.sources[name]
     self.sources[name] = source.newUpdateTime()