Beispiel #1
0
 def save(self):
     path = self.projectPath
     
     if not os.path.exists(path):
         os.makedirs(path)
     filePath = os.path.join(self.projectPath, config.PMX_DESCRIPTOR_NAME)
     plist.writePlist(self.dataHash(), filePath)
Beispiel #2
0
 def save(self, namespace):
     #TODO: Si puedo garantizar el guardado con el manager puedo controlar los mtime en ese punto
     dir = os.path.dirname(self.path(namespace))
     if not os.path.exists(dir):
         os.makedirs(dir)
     plist.writePlist(self.hash, self.path(namespace))
     self.updateMtime(namespace)
Beispiel #3
0
 def save(self):
     path = self.projectPath
     
     if not os.path.exists(path):
         os.makedirs(path)
     filePath = os.path.join(self.projectPath, self.FILE)
     plist.writePlist(self.hash, filePath)
Beispiel #4
0
    def save(self):
        path = self.projectPath

        if not os.path.exists(path):
            os.makedirs(path)
        filePath = os.path.join(self.projectPath, self.FILE)
        plist.writePlist(self.dataHash(), filePath)
Beispiel #5
0
    def save(self, namespace):
        if not os.path.exists(self.path(namespace)):
            os.makedirs(self.path(namespace))
        projectFile = os.path.join(self.path(namespace), self.FILE)
        plist.writePlist(self.hash, projectFile)

        #Hora los archivos del project
        for projectFile in self.files:
            if projectFile.path != self.path(namespace):
                projectFile.save(self.path(namespace))

        #TODO: Si puedo garantizar el guardado con el manager puedo controlar los mtime en ese punto
        self.updateMtime(namespace)
Beispiel #6
0
 def save(self, namespace):
     if not os.path.exists(self.path(namespace)):
         os.makedirs(self.path(namespace))
     projectFile = os.path.join(self.path(namespace), self.FILE)
     plist.writePlist(self.hash, projectFile)
     
     #Hora los archivos del project
     for projectFile in self.files:
         if projectFile.path != self.path(namespace):
             projectFile.save(self.path(namespace))
             
     #TODO: Si puedo garantizar el guardado con el manager puedo controlar los mtime en ese punto
     self.updateMtime(namespace)
Beispiel #7
0
 def save(self, namespace):
     folder = os.path.dirname(self.path(namespace))
     if not os.path.exists(folder):
         os.makedirs(folder)
     plist.writePlist(self.hash, self.path(namespace))
Beispiel #8
0
 def save(self, namespace):
     if not os.path.exists(self.path(namespace)):
         os.makedirs(self.path(namespace))
     file = os.path.join(self.path(namespace), self.FILE)
     plist.writePlist(self.hash, file)
     self.updateMtime(namespace)
Beispiel #9
0
 def sync(self):
     plist.writePlist(self.settings, self.file)
Beispiel #10
0
 def write(self, path):
     plist.writePlist(self, path)
Beispiel #11
0
 def writePlist(hashData, path):
     return plist.writePlist(hashData, path)
Beispiel #12
0
 def save(self, namespace):
     folder = os.path.dirname(self.path(namespace))
     if not os.path.exists(folder):
         os.makedirs(folder)
     plist.writePlist(self.hash, self.path(namespace))
Beispiel #13
0
 def writePlist(self, hashData, path):
     # TODO Ver que pasa con este set que falta
     self.plistFileCache.set(path, hashData)
     return plist.writePlist(hashData, path)