Skip to content

Commit

Permalink
display fields values in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed May 14, 2019
1 parent 57db5f7 commit fa76aa2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyforms_terminal/basewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def load_form(self, data, path=None):

def __parse_terminal_parameters(self):

logger.debug('--------- LOADING TERMINAL PARAMS ---------')
for fieldname, var in self.controls.items():
name = var._name
args = self._args.__dict__
Expand Down Expand Up @@ -122,7 +123,9 @@ def __parse_terminal_parameters(self):
elif isinstance(var, ControlBoundingSlider):
var.value = eval(value) if isinstance(value, str) and value else value

logger.debug("[%30s]: [%s]", var.label, var.value)

logger.debug('--------- END LOADING TERMINAL PARAMS ---------')

if self._args.load:
logger.debug('--------- LOADING CONFIG JSON ---------')
Expand All @@ -138,7 +141,10 @@ def __parse_terminal_parameters(self):
self.load_form(self._conf, '.')
logger.debug('--------- END LOADING DEFAULT CONFIG ---------')


logger.debug('--------- FIELDS FINAL VALUES ---------')
for fieldname, var in self.controls.items():
logger.debug("[%30s]: [%s]", fieldname, var.value)
logger.debug('--------- END FIELDS FINAL VALUES ---------')


def __execute_events(self):
Expand Down

0 comments on commit fa76aa2

Please sign in to comment.