示例#1
0
文件: nodes.py 项目: D3f0/prymatex
 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)
示例#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)
示例#3
0
文件: base.py 项目: diegomvh/prymatex
 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)
示例#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)
示例#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)
示例#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)
示例#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))
示例#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)
示例#9
0
文件: settings.py 项目: D3f0/prymatex
 def sync(self):
     plist.writePlist(self.settings, self.file)
示例#10
0
 def write(self, path):
     plist.writePlist(self, path)
示例#11
0
 def writePlist(hashData, path):
     return plist.writePlist(hashData, path)
示例#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))
示例#13
0
文件: manager.py 项目: D3f0/prymatex
 def writePlist(self, hashData, path):
     # TODO Ver que pasa con este set que falta
     self.plistFileCache.set(path, hashData)
     return plist.writePlist(hashData, path)