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 os
import json import json
import subprocess 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 # get cli location from properties
propertylist=getapplicationproperties() propertylist=getapplicationproperties()

17
explainaccess.py

@ -54,6 +54,14 @@
# limitations under the License. # limitations under the License.
# #
# Import Python modules
import argparse
import subprocess
import json
import sys
from sharedfunctions import getfolderid,callrestapi,getapplicationproperties
# get python version # get python version
version=int(str(sys.version_info[0])) version=int(str(sys.version_info[0]))
@ -73,15 +81,6 @@ default_permissions=['read','update','delete','secure','add','remove']
direct_permission_suffix='*' 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 # 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): def exception_handler(exception_type, exception, traceback, debug_hook=sys.excepthook):
if debug: if debug:

2
snapshotreports.py

@ -40,7 +40,7 @@
# Import Python modules # Import Python modules
import argparse, sys, subprocess, uuid, time, os, glob import argparse, sys, subprocess, uuid, time, os, glob
from datetime import datetime as dt, timedelta as td 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 # get python version
version=int(str(sys.version_info[0])) version=int(str(sys.version_info[0]))

2
testfolderaccess.py

@ -44,7 +44,7 @@ import subprocess
import json import json
import sys 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 # 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): def exception_handler(exception_type, exception, traceback, debug_hook=sys.excepthook):

Loading…
Cancel
Save