<%doc>
- Copyright (C) 2014, 2015, 2018, 2021 The Meme Factory, Inc.
+ Copyright (C) 2014, 2015, 2018, 2021, 2024 The Meme Factory, Inc.
http://www.karlpinc.com/
This file is part of PGWUI_Copy.
havecreds Already logged in
crfs_token
user
- db_changed (used by base.mk)
+ report_success (used by base.mk)
schema
from_db
-# Copyright (C) 2015, 2018, 2020, 2021 The Meme Factory, Inc.
+# Copyright (C) 2015, 2018, 2020, 2021, 2024 The Meme Factory, Inc.
# http://www.karlpinc.com/
# This file is part of PGWUI_Copy.
Returns:
Dict pyramid will use to render the resulting form
Reserved keys:
- errors A list of UploadError exceptions.
- db_changed Boolean. Whether the db was changed.
+ errors A list of UploadError exceptions.
+ report_success Boolean. Whether the copy succeeded.
'''
response = super().write(result, errors)
- response['db_changed'] = (not response['errors']
- and self.uf['action'] != '')
+ response['report_success'] = (not response['errors']
+ and self.uf['action'] != '')
return response
drop_handler = DropSchemaHandler(request)
drop_handler.init()
response, errors = ToDBEngine(drop_handler).run()
- if response['db_changed']:
+ if response['report_success']:
# Copy schema to target db.
try:
copy_schema(from_handler.uf, settings['pgwui'])
from_handler.uf['schema']),
db=markupsafe.escape(from_handler.uf['to_db']))))
response['errors'].extend(copyerrors)
- response['db_changed'] = False
+ response['report_success'] = False
else:
schema = markupsafe.escape(from_handler.uf['schema'])
to_db = markupsafe.escape(from_handler.uf['to_db'])