fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
40a3882
)
remove jvm leftovers, gaa!
author
Marcin Koziej
<marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Nov 2012 15:57:53 +0000
(16:57 +0100)
committer
Marcin Koziej
<marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Nov 2012 15:57:53 +0000
(16:57 +0100)
apps/catalogue/models/listeners.py
patch
|
blob
|
history
apps/pdcounter/models.py
patch
|
blob
|
history
apps/search/__init__.py
patch
|
blob
|
history
wolnelektury/settings/custom.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/models/listeners.py
b/apps/catalogue/models/listeners.py
index
93ad2d7
..
41c974a
100644
(file)
--- a/
apps/catalogue/models/listeners.py
+++ b/
apps/catalogue/models/listeners.py
@@
-61,7
+61,6
@@
if not settings.NO_SEARCH_INDEX:
def _remove_book_from_index_handler(sender, instance, **kwargs):
""" remove the book from search index, when it is deleted."""
import search
def _remove_book_from_index_handler(sender, instance, **kwargs):
""" remove the book from search index, when it is deleted."""
import search
- search.JVM.attachCurrentThread()
idx = search.Index()
idx.open(timeout=10000) # 10 seconds timeout.
try:
idx = search.Index()
idx.open(timeout=10000) # 10 seconds timeout.
try:
diff --git
a/apps/pdcounter/models.py
b/apps/pdcounter/models.py
index
35cbe29
..
50eb43e
100644
(file)
--- a/
apps/pdcounter/models.py
+++ b/
apps/pdcounter/models.py
@@
-92,7
+92,6
@@
if not settings.NO_SEARCH_INDEX:
def update_index(sender, instance, **kwargs):
import search
print "update pd index %s [update %s]" % (instance, 'created' in kwargs)
def update_index(sender, instance, **kwargs):
import search
print "update pd index %s [update %s]" % (instance, 'created' in kwargs)
- search.JVM.attachCurrentThread()
idx = search.Index()
idx.open()
try:
idx = search.Index()
idx.open()
try:
diff --git
a/apps/search/__init__.py
b/apps/search/__init__.py
index
279d281
..
8081416
100644
(file)
--- a/
apps/search/__init__.py
+++ b/
apps/search/__init__.py
@@
-1,4
+1,2
@@
-#import lucene
-#from index import Index, Search, ReusableIndex, SearchResult, JVM, IndexChecker, IndexStore
from index import Index, Search, SearchResult
from index import Index, Search, SearchResult
diff --git
a/wolnelektury/settings/custom.py
b/wolnelektury/settings/custom.py
index
446c730
..
a0bab7a
100644
(file)
--- a/
wolnelektury/settings/custom.py
+++ b/
wolnelektury/settings/custom.py
@@
-16,6
+16,3
@@
CATALOGUE_CUSTOMPDF_RATE_LIMIT = '1/m'
# set to 'new' or 'old' to skip time-consuming test
# for TeX morefloats library version
LIBRARIAN_PDF_MOREFLOATS = None
# set to 'new' or 'old' to skip time-consuming test
# for TeX morefloats library version
LIBRARIAN_PDF_MOREFLOATS = None
-
-# Max memory used by search
-JVM_MAXHEAP = '256m'