import logging
import pgwui_core.core
+import pgwui_core.utils
from pgwui_common.view import auth_base_view
from ${component.lower()} import exceptions as ${short_name}_ex
response['pgwui']['${component.lower()}'] = settings['pgwui']['${component.lower()}']
if response['report_success']:
- if pgwui_core.core.is_checked(response['csv_checked']):
+ if pgwui_core.utils.is_checked(response['csv_checked']):
upload_fmt = 'CSV'
else:
upload_fmt = 'TAB'
.format(filename=response['filename'],
lines=response['lines'],
format=upload_fmt,
- null=pgwui_core.core.is_checked(
+ null=pgwui_core.utils.is_checked(
response['upload_null']),
- null_rep=pgwui_core.core.escape_eol(
+ null_rep=pgwui_core.utils.escape_eol(
response['null_rep']),
- trim=pgwui_core.core.is_checked(
+ trim=pgwui_core.utils.is_checked(
response['trim_upload']),
db=response['db'],
table=response['table'],