--- a/.hgignore Tue Jun 17 10:25:33 2014 +0200
+++ b/.hgignore Tue Jun 17 10:32:57 2014 +0200
@@ -4,8 +4,7 @@
*.pyc
syntax: regexp
-^web/hdabo/config\.py$
-^web/hdabo/.htaccess$
+^web/.htaccess$
syntax: regexp
^web/static/site$
--- a/.pydevproject Tue Jun 17 10:25:33 2014 +0200
+++ b/.pydevproject Tue Jun 17 10:32:57 2014 +0200
@@ -2,7 +2,7 @@
<?eclipse-pydev version="1.0"?>
<pydev_project>
-<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">hdabo_python</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/hdabo/web</path>
--- a/src/hdabo/config.py.tmpl Tue Jun 17 10:25:33 2014 +0200
+++ b/src/hdabo/config.py.tmpl Tue Jun 17 10:32:57 2014 +0200
@@ -1,7 +1,7 @@
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
-BASE_URL = '/~ymh/hdabo/'
+BASE_URL = '/hdabo/'
WEB_URL = 'http://localhost'
# Absolute filesystem path to the directory that will hold user-uploaded files.
@@ -42,6 +42,14 @@
}
}
-HAYSTACK_SEARCH_ENGINE = 'whoosh'
-HAYSTACK_WHOOSH_PATH = os.path.abspath(BASE_DIR + "../index/").rstrip("/")+"/"
+#HAYSTACK_SEARCH_ENGINE = 'whoosh'
+#HAYSTACK_WHOOSH_PATH = os.path.abspath(BASE_DIR + "../index/").rstrip("/")+"/"
+HAYSTACK_CONNECTIONS = {
+ 'default': {
+ #'ENGINE': 'hdabo.search.french_whoosh_backend.SearchBackend',
+ 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
+ 'URL': '',
+ 'INDEX_NAME': ''
+ },
+}
--- a/src/hdabo/django_wsgi.py Tue Jun 17 10:25:33 2014 +0200
+++ b/src/hdabo/django_wsgi.py Tue Jun 17 10:32:57 2014 +0200
@@ -1,5 +1,7 @@
import os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'spel.settings'
+
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
--- a/src/hdabo/management/commands/order_tags.py Tue Jun 17 10:25:33 2014 +0200
+++ b/src/hdabo/management/commands/order_tags.py Tue Jun 17 10:32:57 2014 +0200
@@ -69,7 +69,7 @@
try:
for i, ds in enumerate(queryset):
- show_progress(i + 1, total, ds.title, 60)
+ self.show_progress(i + 1, total, 60)
reorder_datasheet_tags(ds)
transaction.commit()
except:
--- a/src/hdabo/models.py Tue Jun 17 10:25:33 2014 +0200
+++ b/src/hdabo/models.py Tue Jun 17 10:32:57 2014 +0200
@@ -1,12 +1,17 @@
# -*- coding: utf-8 -*-
from django.conf import settings
-from django.contrib.auth.models import User
+from django.contrib.auth.models import AbstractUser
from django.db import models
from hdabo.utils import Property, normalize
import datetime
+# User Class, due to migration to django 1.6.5
+class User(AbstractUser):
+ class Meta:
+ db_table = 'auth_user'
+
class SortedModelManager(models.Manager):
use_for_related_fields = True
@@ -399,6 +404,3 @@
class Datasheet_primary_themes(SortedDatasheetLink):
domain = models.ForeignKey(Domain, db_index=True, null=False, blank=False)
-
-
-
\ No newline at end of file
Binary file src/hdalab/static/hdalab/img/facettes-preview.jpg has changed
Binary file virtualenv/res/src/lxml-2.3.tar.bz2 has changed
Binary file virtualenv/res/src/pylucene-4.8.0-1-src.tar.gz has changed