(self, context, global_dict = None)
This object must be initiated in the beginning of each db service
This object must be initiated in the beginning of each db service
This object must be initiated in the beginning of each db service
def __init__(self, context, global_dict = None):
        """ This object must be initiated in the beginning of each db service
        """
        rec = skytools.db_urldecode(context)
        self._context = context             # used to run dbservice in retval
        self.global_dict = global_dict      # used for cacheing query plans
        self._retval = []                   # used to collect return resultsets
        self._is_test = 'is_test' in rec    # used to convert output into human readable form

        self.sqls = None                    # if sqls stays None then no recording of sqls is done
        if "show_sql" in rec:               # api must add exected sql to resultset
            self.sqls = []                  # sql's executed by dbservice, used for dubugging

        self.can_save = True                # used to keep value most severe error found so far
        self.messages = []
def __init__ ( self , context , global_dict = None ) : rec = skytools . db_urldecode ( context ) self . _context = context # used to run dbservice in retval self . global_dict = global_dict # used for cacheing query plans self . _retval = [ ] # used to collect return resultsets self . _is_test = 'is_test' in rec # used to convert output into human readable form self . sqls = None # if sqls stays None then no recording of sqls is done if "show_sql" in rec : # api must add exected sql to resultset self . sqls = [ ] # sql's executed by dbservice, used for dubugging self . can_save = True # used to keep value most severe error found so far self . messages = [ ]