Compare commits
No commits in common. "a22702be1f303a01b79add832f3b7f26977bb0f1" and "164d6a806e46dbd9869ec8cbcd0e233d1dc00065" have entirely different histories.
a22702be1f
...
164d6a806e
12
confdump.py
12
confdump.py
@ -40,7 +40,6 @@ DUMP_TRIVIAL = ["FinancialType",
|
|||||||
"OptionValue",
|
"OptionValue",
|
||||||
"Domain"]
|
"Domain"]
|
||||||
|
|
||||||
|
|
||||||
# "ContributionPage", needs payment processors & payment_processor column formatted correctly.
|
# "ContributionPage", needs payment processors & payment_processor column formatted correctly.
|
||||||
# the payment_processor column is a string with an integer id in it
|
# the payment_processor column is a string with an integer id in it
|
||||||
# create a stand-in payment processor, and set the payment_processor column to its id
|
# create a stand-in payment processor, and set the payment_processor column to its id
|
||||||
@ -62,8 +61,7 @@ LOAD_TRIVIAL = ["FinancialType",
|
|||||||
"CustomGroup",
|
"CustomGroup",
|
||||||
"OptionGroup",
|
"OptionGroup",
|
||||||
"OptionValue",
|
"OptionValue",
|
||||||
"Domain",
|
"Domain"]
|
||||||
"Contact"]
|
|
||||||
|
|
||||||
# This is a payment processor we can assign contribution pages to in order for them to work.
|
# This is a payment processor we can assign contribution pages to in order for them to work.
|
||||||
# FIXME this seems to produce a non-working setup.
|
# FIXME this seems to produce a non-working setup.
|
||||||
@ -205,14 +203,6 @@ def main() -> int:
|
|||||||
with output.open("w") as of:
|
with output.open("w") as of:
|
||||||
of.write(json.dumps(data))
|
of.write(json.dumps(data))
|
||||||
|
|
||||||
# dump org contacts
|
|
||||||
output = args.output / ("Contact.json")
|
|
||||||
data = api.get("Contact", where=[["contact_sub_type", "=", "Political_Party"]])
|
|
||||||
if data:
|
|
||||||
print("dumping parties")
|
|
||||||
with output.open("w") as of:
|
|
||||||
of.write(json.dumps(data))
|
|
||||||
|
|
||||||
if (args.command in ("load", "mysql")):
|
if (args.command in ("load", "mysql")):
|
||||||
if (not args.input.exists()):
|
if (not args.input.exists()):
|
||||||
print("input directory does not exist")
|
print("input directory does not exist")
|
||||||
|
Loading…
Reference in New Issue
Block a user