示例#1
0
 def argument_provider(self, query_fields, **kwargs):
     if query_fields:
         date_from = query_fields['date_from']
         date_to = query_fields['date_to']
         username_ = query_fields['username_']
         tablename_ = query_fields['tablename_']
         key_value_ = query_fields['key_value_']
         detail_ = query_fields['detail_']
         search_path_ = query_fields['search_path_']
     else:
         date_from = pd.dval(None)
         date_to = pd.dval(None)
         username_ = pd.sval(None)
         tablename_ = pd.sval(None)
         key_value_ = pd.sval(None)
         detail_ = pd.sval(None)
         search_path_ = pd.sval(None)
     return {
         'date_from': date_from,
         'date_to': date_to,
         'username_': username_,
         'tablename_': tablename_,
         'key_value_': key_value_,
         'detail_': detail_,
         'search_path_': search_path_
     }
示例#2
0
 def argument_provider(self, query_fields, **kwargs):
     if query_fields:
         date_from = query_fields['date_from']
         date_to = query_fields['date_to']
         username_ = query_fields['username_']
         tablename_ = query_fields['tablename_']
         key_value_ = query_fields['key_value_']
         detail_ = query_fields['detail_']
         search_path_ = query_fields['search_path_']
     else:
         date_from = pd.dval(None)
         date_to = pd.dval(None)
         username_ = pd.sval(None)
         tablename_ = pd.sval(None)
         key_value_ = pd.sval(None)
         detail_ = pd.sval(None)
         search_path_ = pd.sval(None)
     return {
         'date_from': date_from,
         'date_to': date_to,
         'username_': username_,
         'tablename_': tablename_,
         'key_value_': key_value_,
         'detail_': detail_,
         'search_path_': search_path_}
示例#3
0
 def show_changes_in_row(key_value, tablename=None):
     CHANGE_LOG_SPEC = 'logging.ChangesLog'
     arguments = {"date_from": pd.dval(datetime.date(year=2000, month=1, day=1)),
                  "date_to": pd.dval(datetime.date(year=2100, month=1, day=1)),
                  "key_value_": pd.sval(key_value.export()),
                  "search_path_": pd.sval(config.dbschemas)}
     if tablename is not None:
         arguments["tablename_"] = pd.sval(tablename)
     return run_form(BrowseForm, CHANGE_LOG_SPEC, arguments=arguments)
示例#4
0
 def show_changes_in_row(key_value, tablename=None):
     CHANGE_LOG_SPEC = 'logging.ChangesLog'
     arguments = {
         "date_from": pd.dval(datetime.date(year=2000, month=1, day=1)),
         "date_to": pd.dval(datetime.date(year=2100, month=1, day=1)),
         "key_value_": pd.sval(key_value.export()),
         "search_path_": pd.sval(config.dbschemas)
     }
     if tablename is not None:
         arguments["tablename_"] = pd.sval(tablename)
     return run_form(BrowseForm, CHANGE_LOG_SPEC, arguments=arguments)