From: Marcin Koziej Date: Wed, 6 Feb 2013 13:03:08 +0000 (+0100) Subject: no audience change in parts X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/2a6726356f43599014a74540c23115a3f2a61a0e?ds=inline no audience change in parts --- diff --git a/apps/catalogue/management/commands/make_master.py b/apps/catalogue/management/commands/make_master.py index 821def6e..4bca3834 100644 --- a/apps/catalogue/management/commands/make_master.py +++ b/apps/catalogue/management/commands/make_master.py @@ -59,11 +59,11 @@ class Command(BaseCommand): print "type is '%s', setting to '%s'" % (typ.text, typ_) changed = True typ.text = typ_ - audience = t.xpath("//dc:audience", namespaces=dc_namespaces)[0] - if audience.text != audience_: - print "audience is '%s', setting to '%s'" % (audience.text, audience_) - changed = True - audience.text = audience_ + #audience = t.xpath("//dc:audience", namespaces=dc_namespaces)[0] + #if audience.text != audience_: + # print "audience is '%s', setting to '%s'" % (audience.text, audience_) + # changed = True + # audience.text = audience_ if changed: print "will commit." fc.commit(etree.tostring(t, encoding=unicode), **commit_args)