fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fix
[redakcja.git]
/
apps
/
toolbar
/
management
/
commands
/
fixbuttons.py
diff --git
a/apps/toolbar/management/commands/fixbuttons.py
b/apps/toolbar/management/commands/fixbuttons.py
index
ea797fc
..
79169d2
100644
(file)
--- a/
apps/toolbar/management/commands/fixbuttons.py
+++ b/
apps/toolbar/management/commands/fixbuttons.py
@@
-7,7
+7,7
@@
from django.core.management.base import NoArgsCommand
from toolbar.models import Button, ButtonGroup
from django.core.management.base import NoArgsCommand
from toolbar.models import Button, ButtonGroup
-
from django.utils import simplejson as
json
+
import
json
import re
import re
@@
-27,7
+27,7
@@
class Command(NoArgsCommand):
if params[-1] == u')':
params = params[:-1]
try:
if params[-1] == u')':
params = params[:-1]
try:
- v = son.loads(re.sub(u'([\\w-]+)\\s*:', u'"\\1": ', params).encode('utf-8'))
+ v =
j
son.loads(re.sub(u'([\\w-]+)\\s*:', u'"\\1": ', params).encode('utf-8'))
except ValueError, e:
print "Unable to fix '%s' " % b.params
print "Try to fix this button manually and rerun the script."
except ValueError, e:
print "Unable to fix '%s' " % b.params
print "Try to fix this button manually and rerun the script."