File tree 4 files changed +44
-1
lines changed
4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 56
56
'search' ,
57
57
'url'
58
58
)
59
+
Original file line number Diff line number Diff line change
1
+ VERSION=1.4.20
2
+
3
+ # prepare
4
+ mkdir $VIRTUAL_ENV /packages && cd $VIRTUAL_ENV /packages
5
+
6
+ CORE=xapian-core-$VERSION
7
+ BINDINGS=xapian-bindings-$VERSION
8
+
9
+ # download
10
+ echo " Downloading source..."
11
+ curl -O https://oligarchy.co.uk/xapian/$VERSION /${CORE} .tar.xz
12
+ curl -O https://oligarchy.co.uk/xapian/$VERSION /${BINDINGS} .tar.xz
13
+
14
+ # extract
15
+ echo " Extracting source..."
16
+ tar xf ${CORE} .tar.xz
17
+ tar xf ${BINDINGS} .tar.xz
18
+
19
+ # install
20
+ echo " Installing Xapian-core..."
21
+ cd $VIRTUAL_ENV /packages/${CORE}
22
+ ./configure --prefix=$VIRTUAL_ENV && make && make install
23
+
24
+ PYV=` python -c " import sys;t='{v[0]}'.format(v=list(sys.version_info[:1]));sys.stdout.write(t)" ; `
25
+
26
+ if [ $PYV = " 2" ]; then
27
+ PYTHON_FLAG=--with-python
28
+ else
29
+ PYTHON_FLAG=--with-python3
30
+ fi
31
+
32
+ echo " Installing Xapian-bindings..."
33
+ cd $VIRTUAL_ENV /packages/${BINDINGS}
34
+ ./configure --prefix=$VIRTUAL_ENV $PYTHON_FLAG XAPIAN_CONFIG=$VIRTUAL_ENV /bin/xapian-config && make && make install
35
+
36
+ # clean
37
+ # rm -rf $VIRTUAL_ENV/packages
38
+
39
+ # test
40
+ python -c " import xapian"
Original file line number Diff line number Diff line change 353
353
'ENGINE' : SEARCH_ENGINES_MAP [search_engine ],
354
354
},
355
355
}
356
+
357
+ HAYSTACK_SIGNAL_PROCESSOR = 'papermerge.search.signals.SignalProcessor'
Original file line number Diff line number Diff line change 4
4
from papermerge .core .models import DocumentVersion , Document , Folder
5
5
6
6
7
- class UserOnlySignalProcessor (signals .BaseSignalProcessor ):
7
+ class SignalProcessor (signals .BaseSignalProcessor ):
8
8
def setup (self ):
9
9
for klass in (DocumentVersion , Document , Folder ):
10
10
models .signals .post_save .connect (self .handle_save , sender = klass )
You can’t perform that action at this time.
0 commit comments