# HG changeset patch # User verrierj # Date 1329313959 -3600 # Node ID 361ecea621e05798748e111b1157228cb6bb5c6c # Parent 715f117b0415716e856b97a073edce42a38997b4 Little clean up for search diff -r 715f117b0415 -r 361ecea621e0 src/ldt/ldt/ldt_utils/forms.py --- a/src/ldt/ldt/ldt_utils/forms.py Mon Feb 13 18:04:28 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/forms.py Wed Feb 15 14:52:39 2012 +0100 @@ -32,6 +32,7 @@ search = forms.CharField(label=_("Search")) field = forms.ChoiceField([(u"all", _("all")), (u"title", _("title")), (u"abstract", _("resume")), (u"tags", _("tags"))], label=_("Fields")) ldt_pres = forms.BooleanField(required=False, initial=True, label=_("Display the results in Lignes De Temps")) + page = forms.IntegerField(required=False, widget=forms.HiddenInput()) class AddProjectForm (ShareForm): title = forms.CharField(widget=forms.TextInput(attrs={'class':'inputbox required'})) diff -r 715f117b0415 -r 361ecea621e0 src/ldt/ldt/ldt_utils/models.py --- a/src/ldt/ldt/ldt_utils/models.py Mon Feb 13 18:04:28 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/models.py Wed Feb 15 14:52:39 2012 +0100 @@ -674,7 +674,10 @@ polemics = models.IntegerField(null=True, blank=True, default=0) - # Mask is 0000, representing OK|KO|Q|REF, 1 if the syntax is in the segment, 0 else + # All combinations of polemic hashtags can be represented by a combination of + # 4 bits, 1 if the hashtag is in the tweet, 0 else. We use the order OK, KO, Q, REF + # and convert the resulting string into an integer to store the polemic values. + # mask contains all possible polemic values mask = { 'OK': set([8,9,10,11,12,13,14,15]), 'KO': set([4,5,6,7,12,13,14,15]), diff -r 715f117b0415 -r 361ecea621e0 src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Mon Feb 13 18:04:28 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Wed Feb 15 14:52:39 2012 +0100 @@ -16,7 +16,6 @@ {% block js_import %} {{block.super}} - {% endblock %} diff -r 715f117b0415 -r 361ecea621e0 src/ldt/ldt/ldt_utils/templates/front/front_base.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_base.html Mon Feb 13 18:04:28 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_base.html Wed Feb 15 14:52:39 2012 +0100 @@ -10,27 +10,47 @@ {% block title %}Lignes de temps{% endblock %} - {% block js_import %}{% endblock %} + {% block js_import %} + + + {% endblock %} {% block css_declaration %}{% endblock %} {% block css_import %} {% endblock %} - {% block js_declaration %}{% endblock %} + {% block js_declaration %} + + {% endblock %} {% endblock %} + +
{% if user.is_authenticated %}
-
+ - {% csrf_token %} - +
{% endif %}