Compare commits
	
		
			2 Commits
		
	
	
		
			164d6a806e
			...
			a22702be1f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a22702be1f | |||
| abd4b73829 | 
							
								
								
									
										12
									
								
								confdump.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								confdump.py
									
									
									
									
									
								
							@ -40,6 +40,7 @@ DUMP_TRIVIAL = ["FinancialType",
 | 
			
		||||
                "OptionValue",
 | 
			
		||||
                "Domain"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# "ContributionPage", needs payment processors & payment_processor column formatted correctly.
 | 
			
		||||
# 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
 | 
			
		||||
@ -61,7 +62,8 @@ LOAD_TRIVIAL = ["FinancialType",
 | 
			
		||||
                "CustomGroup",
 | 
			
		||||
                "OptionGroup",
 | 
			
		||||
                "OptionValue",
 | 
			
		||||
                "Domain"]
 | 
			
		||||
                "Domain",
 | 
			
		||||
                "Contact"]
 | 
			
		||||
 | 
			
		||||
# 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.
 | 
			
		||||
@ -203,6 +205,14 @@ def main() -> int:
 | 
			
		||||
                with output.open("w") as of:
 | 
			
		||||
                    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 (not args.input.exists()):
 | 
			
		||||
            print("input directory does not exist")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user