# HG changeset patch # User verrierj # Date 1329470624 -3600 # Node ID 0f892a78b75c9cb67f142d9760553ae9a1541acc # Parent 361ecea621e05798748e111b1157228cb6bb5c6c# Parent fe5289a8d8290a85e20f8623ecd2b620baf77866 Merge with fe5289a8d8290a85e20f8623ecd2b620baf77866 diff -r fe5289a8d829 -r 0f892a78b75c src/ldt/ldt/ldt_utils/forms.py --- a/src/ldt/ldt/ldt_utils/forms.py Mon Feb 13 21:53:36 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/forms.py Fri Feb 17 10:23:44 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 fe5289a8d829 -r 0f892a78b75c src/ldt/ldt/ldt_utils/models.py --- a/src/ldt/ldt/ldt_utils/models.py Mon Feb 13 21:53:36 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/models.py Fri Feb 17 10:23:44 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 fe5289a8d829 -r 0f892a78b75c 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 21:53:36 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Fri Feb 17 10:23:44 2012 +0100 @@ -16,7 +16,6 @@ {% block js_import %} {{block.super}} - {% endblock %} diff -r fe5289a8d829 -r 0f892a78b75c src/ldt/ldt/ldt_utils/templates/front/front_base.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_base.html Mon Feb 13 21:53:36 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_base.html Fri Feb 17 10:23:44 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 %}