From 2a6726356f43599014a74540c23115a3f2a61a0e Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 6 Feb 2013 14:03:08 +0100 Subject: [PATCH 1/1] no audience change in parts --- apps/catalogue/management/commands/make_master.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.20.1