fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support for spaces in fixed wluri-s
[redakcja.git]
/
apps
/
catalogue
/
management
/
commands
/
fixdc.py
diff --git
a/apps/catalogue/management/commands/fixdc.py
b/apps/catalogue/management/commands/fixdc.py
index
80b341c
..
a80352d
100644
(file)
--- a/
apps/catalogue/management/commands/fixdc.py
+++ b/
apps/catalogue/management/commands/fixdc.py
@@
-18,7
+18,8
@@
class FixDC(XmlUpdater):
try:
WLURI.strict(elem.text)
except ValidationError:
try:
WLURI.strict(elem.text)
except ValidationError:
- correct_field = unicode(WLURI.from_slug(WLURI(elem.text).slug))
+ correct_field = unicode(WLURI.from_slug(
+ WLURI(elem.text.strip()).slug))
if verbose:
print "Changing %s from %s to %s" % (
elem.tag, elem.text, correct_field
if verbose:
print "Changing %s from %s to %s" % (
elem.tag, elem.text, correct_field