def __init__(self, json_data):
        # The RA_ExampleModule becomes the prefix for the Job when it is logged by the system
        FSWebTierBaseWorkItem.__init__(self, "RA_ExampleModule", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_input_key                        = json_data["This is an Input Key"]

            # OUTPUTS:
            self.m_results["Status"]                = "FAILED"
            self.m_results["Error"]                 = ""
            self.m_results["This is an Output Key"] = "NO OUTPUT"

            # MEMBERS:
        
        # Return the exact Error with the failure:
        except Exception,e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_FlowStacks_CreateUserDatabase", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_db_host_endpoint                 = json_data["Database Host Endpoint"]
            self.m_db_port                          = json_data["Database Port"]
            self.m_db_name                          = str(json_data["Database Name"]).replace("-", "").replace("_", "")
            self.m_db_type                          = json_data["Database Type"]
            self.m_db_debug                         = json_data["Database Debug"]
            self.m_db_auto_commit                   = json_data["Database Auto Commit"] == "True"
            self.m_db_auto_flush                    = json_data["Database Auto Flush"] == "True"
            self.m_db_FS_user_name                  = json_data["Database FlowStacks User Name"]
            self.m_db_FS_user_password              = json_data["Database FlowStacks User Password"]
            self.m_db_user_name                     = json_data["Database New User Name"]
            self.m_db_user_password                 = json_data["Database New User Password"]

            # OUTPUTS:
            self.m_results["Status"]                = "FAILED"
            self.m_results["Error"]                 = ""

            # MEMBERS:
            self.m_debug                            = False

        # Return the exact Error with the failure:
        except Exception,e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
コード例 #3
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self,
                                       "RA_FlowStacks_DeleteUserDatabase",
                                       json_data)

        # INPUTS:
        self.m_db_host_endpoint = json_data["Database Host Endpoint"]
        self.m_db_port = json_data["Database Port"]
        self.m_db_name = json_data["Database Name"]
        self.m_db_type = json_data["Database Type"]
        self.m_db_debug = json_data["Database Debug"]
        self.m_db_auto_commit = json_data["Database Auto Commit"] == "True"
        self.m_db_auto_flush = json_data["Database Auto Flush"] == "True"
        self.m_db_FS_user_name = json_data["Database FlowStacks User Name"]
        self.m_db_FS_user_password = json_data[
            "Database FlowStacks User Password"]
        self.m_db_user_name = json_data["Database New User Name"]
        self.m_db_user_password = json_data["Database New User Password"]

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
        self.m_results["Error"] = ""

        # MEMBERS:
        self.m_debug = False
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_DBF_GUS", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_db_app_name                  = str(json_data["DB To Use"])
            self.m_get_id                       = str(json_data["DB Record ID"])
            self.m_get_status                   = str(json_data["User Status"])
            self.m_query_type                   = str(json_data["Query Type"])

            # OUTPUTS:
            self.m_results["Status"]            = "FAILED"
            self.m_results["Error"]             = ""
            self.m_results["Record"]            = {}

            # MEMBERS:
            self.m_db_record                    = None

            if "Debug" in json_data:
                self.m_debug                    = bool(str(json_data["Debug"]) == "True")

        except Exception,e:
            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_DSUV", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_storage_key_id                   = str(json_data["Storage Key ID"])

            # OUTPUTS:
            self.m_results["Status"]                = "FAILED"
            self.m_results["Error"]                 = ""
            self.m_results["Stored Value"]          = ""
            self.m_results["Storage Key ID"]        = self.m_storage_key_id

            # MEMBERS:
            self.m_debug                            = False
            self.m_hash_to_store                    = {}
        
        # Return the exact Error with the failure:
        except Exception,e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_SETTU", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_user_name                        = str(json_data["User Name"])
            self.m_user_email                       = str(json_data["User Email Address"])
            self.m_from                             = str(json_data["From"])
            self.m_subject                          = str(json_data["Subject"])
            self.m_email_template                   = str(json_data["Email Template"])
            self.m_gmail_user                       = str(json_data["Gmail User"])
            self.m_gmail_password                   = str(json_data["Gmail Password"])
        
            # OUTPUTS:
            self.m_results["Status"]                = "FAILED"
            self.m_results["Error"]                 = ""
        
            # MEMBERS:
            self.m_debug                            = False

        # Return the exact Error with the failure:
        except Exception,e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
コード例 #7
0
    def __init__(self, json_data):
        # The RA_ExampleModule becomes the prefix for the Job when it is logged by the system
        FSWebTierBaseWorkItem.__init__(self, "RA_ExampleModule", json_data)
        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_input_key = json_data["This is an Input Key"]

            # OUTPUTS:
            self.m_results["Status"] = "FAILED"
            self.m_results["Error"] = ""
            self.m_results["This is an Output Key"] = "NO OUTPUT"

            # MEMBERS:

        # Return the exact Error with the failure:
        except Exception, e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({
                "Module":
                str(self.__class__.__name__),
                "Error Type":
                str(exc_type.__name__),
                "Line Number":
                exc_tb.tb_lineno,
                "Error Message":
                str(exc_obj.message),
                "File Name":
                str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1])
            })
            raise Exception(reason)
コード例 #8
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_FB_DBR_GUA", json_data)
        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_db_connection_str = str(json_data["DB Conn Str"])
            self.m_query_type = str(json_data["Query Type"])

            self.m_first_name = ""
            self.m_last_name = ""
            self.m_user_name = ""
            self.m_user_status_id = int(0)
            self.m_password = ""
            self.m_email = ""

            if "First Name" in json_data:
                self.m_first_name = str(json_data["First Name"])

            if "Last Name" in json_data:
                self.m_last_name = str(json_data["Last Name"])

            if "Password" in json_data:
                self.m_password = str(json_data["Password"])

            if "Email" in json_data:
                self.m_email = str(json_data["Email"])

            if "User Name" in json_data:
                self.m_user_name = str(json_data["User Name"])

            if "User Status ID" in json_data:
                self.m_user_status_id = int(json_data["User Status ID"])

            # OUTPUTS:
            self.m_results["Status"] = "FAILED"
            self.m_results["Error"] = ""
            self.m_results["Records"] = []

            # MEMBERS:
            self.m_debug = False
            self.m_db_records = []

        except Exception, e:
            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({
                "Module":
                str(self.__class__.__name__),
                "Error Type":
                str(exc_type.__name__),
                "Line Number":
                exc_tb.tb_lineno,
                "Error Message":
                str(exc_obj.message),
                "File Name":
                str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1])
            })
            raise Exception(reason)
コード例 #9
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_PTF", json_data)

        # INPUTS:
        self.m_user_token                       = str(json_data['User Token'])
        self.m_post_text                        = str(json_data['Post Text'])
        
        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
コード例 #10
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_GSUV", json_data)

        # INPUTS:
        self.m_storage_key_id = str(json_data["Storage Key ID"])

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
        self.m_results["Storage Key ID"] = self.m_storage_key_id
        self.m_results["Stored Value"] = "NO VALUE FOUND"
コード例 #11
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_GSUV", json_data)

        # INPUTS:
        self.m_storage_key_id = str(json_data["Storage Key ID"])

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
        self.m_results["Storage Key ID"] = self.m_storage_key_id
        self.m_results["Stored Value"] = "NO VALUE FOUND"
コード例 #12
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_PTT", json_data)

        # INPUTS:
        self.m_consumer_key                     = str(json_data["Consumer Key"])
        self.m_consumer_secret                  = str(json_data["Consumer Secret"])
        self.m_access_token                     = str(json_data["Access Token"])
        self.m_access_token_secret              = str(json_data["Access Token Secret"])
        self.m_tweet_text                       = str(json_data["Tweet Text"])
        
        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
コード例 #13
0
    def __init__(self, json_data):
        # The RA_ExampleModule becomes the prefix for the Module when it is logged to the system
        FSWebTierBaseWorkItem.__init__(self, "RA_ExampleModule", json_data)

        # INPUTS:
        self.m_input_key                        = json_data["This is an Input Key"]

        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
        self.m_results["This is an Output Key"] = "NO OUTPUT"

        # MEMBERS:
        self.m_debug                            = False
コード例 #14
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_DSUV", json_data)

        # INPUTS:
        self.m_storage_key_id = str(json_data["Storage Key ID"])

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
        self.m_results["Stored Value"] = ""
        self.m_results["Storage Key ID"] = self.m_storage_key_id

        # MEMBERS:
        self.m_hash_to_store = {}
コード例 #15
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_DSUV", json_data)

        # INPUTS:
        self.m_storage_key_id                   = str(json_data["Storage Key ID"])

        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
        self.m_results["Stored Value"]          = ""
        self.m_results["Storage Key ID"]        = self.m_storage_key_id

        # MEMBERS:
        self.m_hash_to_store                    = {}
コード例 #16
0
    def __init__(self, json_data):
        # The RA_ExampleModule becomes the prefix for the Module when it is logged to the system
        FSWebTierBaseWorkItem.__init__(self, "RA_ExampleModule", json_data)

        # INPUTS:
        self.m_input_key = json_data["This is an Input Key"]

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
        self.m_results["This is an Output Key"] = "NO OUTPUT"

        # MEMBERS:
        self.m_debug = False
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_FB_DBR_GUA", json_data)

        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_db_connection_str            = str(json_data["DB Conn Str"])
            self.m_query_type                   = str(json_data["Query Type"])

            self.m_first_name                   = ""
            self.m_last_name                    = ""
            self.m_user_name                    = ""
            self.m_user_status_id               = int(0)
            self.m_password                     = ""
            self.m_email                        = ""

            if "First Name" in json_data:
                self.m_first_name               = str(json_data["First Name"])
        
            if "Last Name" in json_data:
                self.m_last_name                = str(json_data["Last Name"])
        
            if "Password" in json_data:
                self.m_password                 = str(json_data["Password"])
            
            if "Email" in json_data:
                self.m_email                    = str(json_data["Email"])
        
            if "User Name" in json_data:
                self.m_user_name                = str(json_data["User Name"])
        
            if "User Status ID" in json_data:
                self.m_user_status_id           = int(json_data["User Status ID"])
        
            # OUTPUTS:
            self.m_results["Status"]            = "FAILED"
            self.m_results["Error"]             = ""
            self.m_results["Records"]           = []

            # MEMBERS:
            self.m_debug                        = False
            self.m_db_records                   = []

        except Exception,e:
            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({ "Module" : str(self.__class__.__name__), "Error Type" : str(exc_type.__name__), "Line Number" : exc_tb.tb_lineno, "Error Message" : str(exc_obj.message), "File Name" : str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]) })
            raise Exception(reason)
コード例 #18
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_SETTU", json_data)

        # INPUTS:
        self.m_user_name = str(json_data["User Name"])
        self.m_user_email = str(json_data["User Email Address"])
        self.m_from = str(json_data["From"])
        self.m_subject = str(json_data["Subject"])
        self.m_email_template = str(json_data["Email Template"])
        self.m_gmail_user = str(json_data["Gmail User"])
        self.m_gmail_password = str(json_data["Gmail Password"])

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
コード例 #19
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_USUV", json_data)

        # INPUTS:
        self.m_access_token                     = str(json_data["Access Token"])
        self.m_storage_key_id                   = str(json_data["Storage Key ID"])
        self.m_value_to_store                   = str(json_data["Value To Update"])

        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
        self.m_results["Storage Key ID"]        = self.m_storage_key_id

        # MEMBERS:
        self.m_hash_to_store                    = {}
コード例 #20
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_SETTU", json_data)

        # INPUTS:
        self.m_user_name = str(json_data["User Name"])
        self.m_user_email = str(json_data["User Email Address"])
        self.m_from = str(json_data["From"])
        self.m_subject = str(json_data["Subject"])
        self.m_email_template = str(json_data["Email Template"])
        self.m_gmail_user = str(json_data["Gmail User"])
        self.m_gmail_password = str(json_data["Gmail Password"])

        # OUTPUTS:
        self.m_results["Status"] = "FAILED"
コード例 #21
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self,
                                       "RA_FlowStacks_ApplySchemaChanges",
                                       json_data)
        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_project_schema_file = str(json_data["Schema File"])
            self.m_db_host_endpoint = str(json_data["Database Host Endpoint"])
            self.m_db_port = str(json_data["Database Port"])
            self.m_db_name = str(json_data["Database Name"])
            self.m_db_type = str(json_data["Database Type"])
            self.m_db_debug = str(json_data["Database Debug"])
            self.m_db_auto_commit = bool(
                json_data["Database Auto Commit"] == "True")
            self.m_db_auto_flush = bool(
                json_data["Database Auto Flush"] == "True")
            self.m_db_user_name = str(json_data["Database New User Name"])
            self.m_db_user_password = str(
                json_data["Database New User Password"])

            # OUTPUTS:
            self.m_results["Status"] = "FAILED"
            self.m_results["Error"] = ""

            # MEMBERS:
            self.m_debug = False

        # Return the exact Error with the failure:
        except Exception, e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({
                "Module":
                str(self.__class__.__name__),
                "Error Type":
                str(exc_type.__name__),
                "Line Number":
                exc_tb.tb_lineno,
                "Error Message":
                str(exc_obj.message),
                "File Name":
                str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1])
            })
            raise Exception(reason)
コード例 #22
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_FlowStacks_DeleteUserDatabase", json_data)

        # INPUTS:
        self.m_db_host_endpoint                 = json_data["Database Host Endpoint"]
        self.m_db_port                          = json_data["Database Port"]
        self.m_db_name                          = json_data["Database Name"]
        self.m_db_type                          = json_data["Database Type"]
        self.m_db_debug                         = json_data["Database Debug"]
        self.m_db_auto_commit                   = json_data["Database Auto Commit"] == "True"
        self.m_db_auto_flush                    = json_data["Database Auto Flush"] == "True"
        self.m_db_FS_user_name                  = json_data["Database FlowStacks User Name"]
        self.m_db_FS_user_password              = json_data["Database FlowStacks User Password"]
        self.m_db_user_name                     = json_data["Database New User Name"]
        self.m_db_user_password                 = json_data["Database New User Password"]

        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
        self.m_results["Error"]                 = ""

        # MEMBERS:
        self.m_debug                            = False
コード例 #23
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_FlowStacks_ApplySchemaChanges", json_data)

        # INPUTS:
        self.m_FS_project_token                 = str(json_data["FlowStacks Project Token"])
        self.m_project_schema_file              = str(json_data["Schema File"])
        self.m_db_host_endpoint                 = str(json_data["Database Host Endpoint"])
        self.m_db_port                          = str(json_data["Database Port"])
        self.m_db_name                          = str(json_data["Database Name"])
        self.m_db_type                          = str(json_data["Database Type"])
        self.m_db_debug                         = str(json_data["Database Debug"])
        self.m_db_auto_commit                   = bool(json_data["Database Auto Commit"] == "True")
        self.m_db_auto_flush                    = bool(json_data["Database Auto Flush"] == "True")
        self.m_db_user_name                     = str(json_data["Database New User Name"])
        self.m_db_user_password                 = str(json_data["Database New User Password"])

        # OUTPUTS:
        self.m_results["Status"]                = "FAILED"
        self.m_results["Error"]                 = ""

        # MEMBERS:
        self.m_debug                            = False
コード例 #24
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_SSUV", json_data)
        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_access_token = str(json_data["Access Token"])
            self.m_value_to_store = str(json_data["Value To Store"])

            # OUTPUTS:
            self.m_results["Status"] = "FAILED"
            self.m_results["Error"] = ""
            self.m_results["Storage Key ID"] = ""

            # MEMBERS:
            self.m_debug = False
            self.m_storage_key_id = ""
            self.m_storage_type = "SIMPLE"
            self.m_hash_to_store = {}

        # Return the exact Error with the failure:
        except Exception, e:

            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({
                "Module":
                str(self.__class__.__name__),
                "Error Type":
                str(exc_type.__name__),
                "Line Number":
                exc_tb.tb_lineno,
                "Error Message":
                str(exc_obj.message),
                "File Name":
                str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1])
            })
            raise Exception(reason)
コード例 #25
0
    def __init__(self, json_data):
        FSWebTierBaseWorkItem.__init__(self, "RA_DBF_GUS", json_data)
        """ Constructor Serialization taking HTTP Post-ed JSON into Python members """
        # Define Inputs and Outputs for the Job to serialize over HTTP
        try:

            # INPUTS:
            self.m_db_app_name = str(json_data["DB To Use"])
            self.m_get_id = str(json_data["DB Record ID"])
            self.m_get_status = str(json_data["User Status"])
            self.m_query_type = str(json_data["Query Type"])

            # OUTPUTS:
            self.m_results["Status"] = "FAILED"
            self.m_results["Error"] = ""
            self.m_results["Records"] = []

            # MEMBERS:
            self.m_db_record = None

            if "Debug" in json_data:
                self.m_debug = bool(str(json_data["Debug"]) == "True")

        except Exception, e:
            import os, traceback
            exc_type, exc_obj, exc_tb = sys.exc_info()
            reason = json.dumps({
                "Module":
                str(self.__class__.__name__),
                "Error Type":
                str(exc_type.__name__),
                "Line Number":
                exc_tb.tb_lineno,
                "Error Message":
                str(exc_obj.message),
                "File Name":
                str(os.path.split(exc_tb.tb_frame.f_code.co_filename)[1])
            })
            raise Exception(reason)