|
|
@ -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: |
|
|
|