| | |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | | <script> |
| | | foldersToCreate = [] |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParams='' |
| | | |
| | |
| | | STAFCmdParamsList.append('-t %s' % templateFile) |
| | | |
| | | if ldifFile: |
| | | foldersToCreate.append(os.path.dirname(ldifFile)) |
| | | STAFCmdParamsList.append('-o %s' % ldifFile) |
| | | |
| | | if randomSeed: |
| | |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <call function="'createMultiFolders'"> |
| | | { 'location' : location, |
| | | 'folderslist' : foldersToCreate |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | '%s %s' % (STAFCmd, STAFCmdParams) |
| | | </message> |
| | | |
| | | <call function="'runCommand'"> |
| | | { 'name' : 'Make Ldif Script', |
| | | 'location' : location, |
| | |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | | <script> |
| | | foldersToCreate = [] |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParams='' |
| | | |
| | |
| | | STAFCmdParamsList.append('-t %s' % targetLdif) |
| | | |
| | | if outputLdif: |
| | | foldersToCreate.append(os.path.dirname(outputLdif)) |
| | | STAFCmdParamsList.append('-o %s' % outputLdif) |
| | | |
| | | if ignoreAttrsFile: |
| | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <call function="'createMultiFolders'"> |
| | | { 'location' : location, |
| | | 'folderslist' : foldersToCreate |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'Running command:\n %s %s\nlocation: %s\nworkdir: %s' \ |
| | | % (STAFCmd,STAFCmdParams,location,dsBinPath) |
| | | '%s %s' % (STAFCmd, STAFCmdParams) |
| | | </message> |
| | | |
| | | <process name="'LDIF Diff Script'"> |
| | |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | | <script> |
| | | foldersToCreate = [] |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParams='' |
| | | |
| | |
| | | STAFCmdParamsList.append('-s %s' % sourceLdif) |
| | | |
| | | if targetLdif: |
| | | foldersToCreate.append(os.path.dirname(targetLdif)) |
| | | STAFCmdParamsList.append('-t %s' % targetLdif) |
| | | |
| | | if changesLdif: |
| | |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <call function="'createMultiFolders'"> |
| | | { 'location' : location, |
| | | 'folderslist' : foldersToCreate |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | '%s %s' % (STAFCmd, STAFCmdParams) |
| | | </message> |
| | | |
| | | <call function="'runCommand'"> |
| | | { 'name' : 'LDIF Modify Script', |
| | | 'location' : location, |
| | |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | | <script> |
| | | foldersToCreate = [] |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParams='' |
| | | |
| | |
| | | STAFCmdParamsList.append('-t %s' % targetLdif) |
| | | |
| | | if outputLdif: |
| | | foldersToCreate.append(os.path.dirname(outputLdif)) |
| | | STAFCmdParamsList.append('-o %s' % outputLdif) |
| | | |
| | | if overwriteExisting: |
| | |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | |
| | | <call function="'createMultiFolders'"> |
| | | { 'location' : location, |
| | | 'folderslist' : foldersToCreate |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | '%s %s' % (STAFCmd, STAFCmdParams) |
| | | </message> |
| | | |
| | | <call function="'runCommand'"> |
| | | { |