Browse Source

add imports

master
Gerry Nelson 5 years ago
parent
commit
21cd2f4685
  1. 3
      applyfolderauthorization.py
  2. 17
      explainaccess.py
  3. 2
      snapshotreports.py
  4. 2
      testfolderaccess.py

3
applyfolderauthorization.py

@ -38,7 +38,8 @@ import csv
import os
import json
import subprocess
from sharedfunctions import callrestapi, getfolderid, file_accessible, printresult
import sys
from sharedfunctions import callrestapi, getfolderid, file_accessible, printresult,getapplicationproperties
# get cli location from properties
propertylist=getapplicationproperties()

17
explainaccess.py

@ -54,6 +54,14 @@
# limitations under the License.
#
# Import Python modules
import argparse
import subprocess
import json
import sys
from sharedfunctions import getfolderid,callrestapi,getapplicationproperties
# get python version
version=int(str(sys.version_info[0]))
@ -73,15 +81,6 @@ default_permissions=['read','update','delete','secure','add','remove']
direct_permission_suffix='*'
# Import Python modules
import argparse
import subprocess
import json
import sys
from sharedfunctions import getfolderid,callrestapi
# Define exception handler so that we only output trace info from errors when in debug mode
def exception_handler(exception_type, exception, traceback, debug_hook=sys.excepthook):
if debug:

2
snapshotreports.py

@ -40,7 +40,7 @@
# Import Python modules
import argparse, sys, subprocess, uuid, time, os, glob
from datetime import datetime as dt, timedelta as td
from sharedfunctions import getfolderid, callrestapi, getpath
from sharedfunctions import getfolderid, callrestapi, getpath, getapplicationproperties
# get python version
version=int(str(sys.version_info[0]))

2
testfolderaccess.py

@ -44,7 +44,7 @@ import subprocess
import json
import sys
from sharedfunctions import getfolderid,callrestapi
from sharedfunctions import getfolderid,callrestapi,getapplicationproperties
# Define exception handler so that we only output trace info from errors when in debug mode
def exception_handler(exception_type, exception, traceback, debug_hook=sys.excepthook):

Loading…
Cancel
Save