Message1498

Author nkinkade
Recipients alex, jedoig, nathan, nkinkade
Date 2009-11-11.16:11:25
Content
Fail.  Because mkdeeds never returns (it's necessary to Ctrl-z then kill %1)
looping over the jurisdictions doesn't work.  It just hangs after Deeds are
generated for first jurisdiction in the list.  I had been hoping that the
following little script would work.  Nathan, any ideas on how to proceed?  It'd
be nice if mkdeeds actually returned:

#!/usr/bin/python

from xml.dom import minidom
import subprocess

dom = minidom.parse('./cc.license_/cc/license/license_xsl/licenses.xml')
elems = dom.getElementsByTagName('jurisdiction-info')
jurisdictions = [elem.attributes['id'].value for elem in elems]

for jurisdiction in jurisdictions[1:]:
	print "Generating Deeds for " + jurisdiction
	subprocess.call(['./bin/mkdeeds', '-j %s' % jurisdiction, '-o
../../../license.rdf/trunk/licenses/'])
History
Date User Action Args
2009-11-11 16:11:26nkinkadesetrecipients: + nkinkade, nathan, alex, jedoig
2009-11-11 16:11:26nkinkadesetmessageid: <1257955886.13.0.0983584942035.issue372@creativecommons.org>
2009-11-11 16:11:25nkinkadelinkissue372 messages
2009-11-11 16:11:25nkinkadecreate