fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cotnent indexing - bugs.
[wolnelektury.git]
/
apps
/
catalogue
/
models.py
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
78e6b0b
..
fbae111
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-33,6
+33,7
@@
from os import path
import search
import search
+# Those are hard-coded here so that makemessages sees them.
TAG_CATEGORIES = (
('author', _('author')),
('epoch', _('epoch')),
TAG_CATEGORIES = (
('author', _('author')),
('epoch', _('epoch')),
@@
-687,8
+688,8
@@
class Book(models.Model):
result = create_zip.delay(paths, "%s_%s" % (self.slug, format_))
return result.wait()
result = create_zip.delay(paths, "%s_%s" % (self.slug, format_))
return result.wait()
- def search_index(self, book_info=None):
- if
settings.CELERY_ALWAYS_EAGER
:
+ def search_index(self, book_info=None
, reuse_index=False
):
+ if
reuse_index
:
idx = search.ReusableIndex()
else:
idx = search.Index()
idx = search.ReusableIndex()
else:
idx = search.Index()