Ejemplo n.º 1
0
def install( upload_path, enquete_path ) :
    from imexport import importEnqueteUsingMeta
    print "        from upload path '%s'" % upload_path
    
    if not os.path.exists( upload_path ):
        print "        upload_path folder '%s' does not exists or it is not readable !" % upload_path
        print
        return
    
    print "        from upload path '%s'" % enquete_path
    if not os.path.exists( enquete_path ):
        print "        enquete_path folder '%s' does not exists or it is not readable !" % enquete_path
        print
        return

    print "        call importEnqueteUsingMeta (please follow up in log file)"
    importEnqueteUsingMeta( upload_path, enquete_path )
    print "        installation completed."
Ejemplo n.º 2
0
def testEnqueteImport(foldName):
   folname = foldName    
   upPath = settings.REANALYSEUPLOADPATH+folname+"/"
   enqueterootpath='' 
   for f in os.listdir(upPath+"extracted/"):
       if os.path.exists(upPath+"extracted/"+f+"/_meta/"):
           enqueterootpath = upPath+"extracted/"+f+"/"
   
   e = importEnqueteUsingMeta(upPath,enqueterootpath)
   
   if(e != None):
       doFiestaToEnquete(e)
   else:
        print('ok')
Ejemplo n.º 3
0
def testEnqueteImport(foldName):
    folname = foldName    
    upPath = settings.REANALYSEUPLOADPATH+folname+"/"
    enqueterootpath='' 
    
    for f in os.listdir(upPath+"extracted/"):
        if os.path.exists(upPath+"extracted/"+f+"/_meta/"):
            enqueterootpath = upPath+"extracted/"+f+"/"
   
   
    if isMetaDocOK(enqueterootpath):
       e = importEnqueteUsingMeta(upPath,enqueterootpath)
       doFiestaToEnquete(e)
    
    else:
        exit()