Ticket #3148 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

[PATCH] Create main() function so script can be called from python modules

Reported by: alberto@toscat.net Assigned to: pacopablo
Priority: normal Component: SqliteToPgScript
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Attached is a patch that creates a main() function entry point so the script can be easily called programatically from other python modules.

It also "fixes" some accesses to global variable "opts" instead of instance attribute inside MigrateTable which have surfaced when opts is no longer declared in module scope.

Alberto

Attachments

main_ep.diff (1.8 kB) - added by alberto@toscat.net on 06/09/08 13:19:21.
The patch

Change History

06/09/08 13:19:21 changed by alberto@toscat.net

  • attachment main_ep.diff added.

The patch

06/12/08 00:06:58 changed by pacopablo

  • status changed from new to closed.
  • resolution set to fixed.

(In [3826])

  • Accepted patch to create a main() function that is easily callable from other python modules. Thanks to alberto Closes #3148
  • Accepted patch to check for presence of arguments before checking value. Closes #3138

Add/Change #3148 ([PATCH] Create main() function so script can be called from python modules)




Change Properties
Action