comparison castclient.py @ 35:aee742cdd604

Update castclient to use same url for template rendering and conversion
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 16 Oct 2014 11:47:46 +0200
parents c04edbd52967
children 349d49bb69f4
comparison
equal deleted inserted replaced
34:89ffa12bd48d 35:aee742cdd604
18 18
19 if len(args) < 2: 19 if len(args) < 2:
20 parser.print_usage() 20 parser.print_usage()
21 sys.exit(1) 21 sys.exit(1)
22 22
23 if options.json: 23 url = "http://%s:%s/convert/" % (options.host, options.port)
24 service = "template"
25 else:
26 service = "convert"
27
28 url = "http://%s:%s/%s/" % (options.host, options.port, service)
29 infilename = args[0] 24 infilename = args[0]
30 outfilename = args[1] 25 outfilename = args[1]
31 format = options.format 26 format = options.format
32 27
33 files = {'file': open(infilename, 'rb')} 28 files = {'file': open(infilename, 'rb')}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)