fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodanie możliwości zmiany stopki w panelu administracyjnym serwisu.
[wolnelektury.git]
/
scripts
/
import_links.py
diff --git
a/scripts/import_links.py
b/scripts/import_links.py
index
ea4380f
..
671212d
100644
(file)
--- a/
scripts/import_links.py
+++ b/
scripts/import_links.py
@@
-13,7
+13,7
@@
setup_environ(settings)
from catalogue.models import Book, Tag
from catalogue.models import Book, Tag
-def import_
tag
s(file_name, attribute):
+def import_
link
s(file_name, attribute):
for line in file(file_name):
slug, link = line.split()
link = link.strip('\n')
for line in file(file_name):
slug, link = line.split()
link = link.strip('\n')
@@
-32,5
+32,5
@@
def import_tags(file_name, attribute):
print 'Invalid slug %s!' % slug
print 'Invalid slug %s!' % slug
-import_
tag
s('gazeta-links', 'gazeta_link')
-
+import_
link
s('gazeta-links', 'gazeta_link')
+import_links('wiki-links', 'wiki_link')