--- a/src/ldt/ldt/indexation/__init__.py Thu May 19 16:13:55 2011 +0200
+++ b/src/ldt/ldt/indexation/__init__.py Fri May 20 14:18:25 2011 +0200
@@ -12,7 +12,7 @@
def get_writer():
lucene.getVMEnv().attachCurrentThread()
- return lucene.IndexWriter(STORE, ANALYZER, True, lucene.IndexWriter.MaxFieldLength.UNLIMITED)
+ return lucene.IndexWriter(STORE, ANALYZER, False, lucene.IndexWriter.MaxFieldLength.UNLIMITED)
def get_searcher():
lucene.getVMEnv().attachCurrentThread()
--- a/src/ldt/ldt/ldt_utils/admin.py Thu May 19 16:13:55 2011 +0200
+++ b/src/ldt/ldt/ldt_utils/admin.py Fri May 20 14:18:25 2011 +0200
@@ -55,7 +55,7 @@
index_projects = form.cleaned_data["index_projects"]
if index_projects:
- projectList = Project.objects.filter(contents__in=contentList).distinct() #filter(contents__in=contentList) @UndefinedVariable
+ projectList = Project.objects.filter(contents__in=contentList, state=2).distinct() #filter(contents__in=contentList) @UndefinedVariable
indexer = ProjectIndexer(projectList, writer)
indexer.index_all()
finally:
--- a/src/ldt/ldt/templates/base.html Thu May 19 16:13:55 2011 +0200
+++ b/src/ldt/ldt/templates/base.html Fri May 20 14:18:25 2011 +0200
@@ -5,7 +5,7 @@
<head>
<title>{% if user.is_authenticated %}Hello {{ user }}{% else %}Please login{% endif %}</title>
- <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/socialauth.css" />
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ LDT_MEDIA_PREFIX }}css/socialauth.css" />
{% block extra_head %}
{% endblock %}
</head>