Ask Your Question

bgenevaux's profile - activity

2012-09-15 05:22:50 -0500 received badge  Famous Question (source)
2012-09-03 08:54:17 -0500 received badge  Nice Answer (source)
2012-09-03 08:35:31 -0500 received badge  Self-Learner (source)
2012-09-03 06:36:07 -0500 commented answer User opted out of email notifications, but is still receiving them.

Btw, on the tag filter, how do a user choose which tags are used for the filter ?

2012-09-03 06:34:12 -0500 answered a question User opted out of email notifications, but is still receiving them.

I found what was wrong : In models/, in get_global_instant_notification_subscribers, you used the q_all feed type with i frequency filter only for exclude ignored tags and for only interesting tags, but NOT for show all tags tag filter.

Just have to change the part :

    #segment of users who have tag filter turned off
    global_subscribers = User.objects.filter(
        email_tag_filter_strategy = const.INCLUDE_ALL

to :

    #segment of users who have tag filter turned off
    global_subscribers = User.objects.filter(
        email_tag_filter_strategy = const.INCLUDE_ALL
    if global_subscribers:
        instant_subscribers = EmailFeedSetting.objects.filter_subscribers(
            potential_subscribers = global_subscribers,
            feed_type = 'q_all',
            frequency = 'i'

and it works well.

2012-09-03 02:42:20 -0500 commented answer User opted out of email notifications, but is still receiving them.

No, can't happen, I disabled alternative logins providers, my users can only sign in through ldap.

2012-09-02 14:33:39 -0500 received badge  Good Question (source)
2012-08-31 09:47:35 -0500 commented question User opted out of email notifications, but is still receiving them.

I'll check this out, thanks !

2012-08-31 09:47:35 -0500 received badge  Commentator
2012-08-31 09:03:51 -0500 received badge  Nice Question (source)
2012-08-31 08:51:34 -0500 commented question User opted out of email notifications, but is still receiving them.

He isn't admin nor moderator. Apparently he once was notified instantly, and since he set all notifications on "no emails", he apparently still receives notifications as when it was instantly.

2012-08-31 07:18:25 -0500 asked a question User opted out of email notifications, but is still receiving them.

One of my user continue to receive notifications email even if he chose to not receive any emails.

Does it ever happened for you ?

If it has, how did you fix it ?

2012-08-30 02:26:12 -0500 answered a question Where is the Poll?

I think it's not really made into askbot (or I never found it)

One suggestion to do it as askbot is now is to post the poll's possible answers by yourself and make people up/down-vote

2012-08-30 02:23:41 -0500 received badge  Citizen Patrol
2012-08-27 04:08:30 -0500 commented question Open links in other page or new TAB

I think a new tab instead of a new page could be also great

2012-08-24 05:58:05 -0500 received badge  Critic
2012-08-18 18:19:52 -0500 commented answer Does Askbot support multiple sites on the same server with the same code base?

Done just as you said, and it works

2012-08-16 23:05:28 -0500 received badge  Nice Question (source)
2012-08-16 02:44:01 -0500 received badge  Scholar (source)
2012-08-14 04:52:23 -0500 asked a question Can't vote after answering

Right now, after we answered a question, we can't vote anymore on this question.

The reason is that javascript used a label present only on the answer form before binding the buttons (question-subscribe-updates) and this label doesn't appear with the "Edit your previous answer" button (and of course, when javascript fails, you won't know it ...)

There is 2 solutions to fix this :

  • Removing the wrong javascript part when user already answered the question (doesn't require a lot of work)
  • Always add the missing label (requires some more work, but may be more relevant ...)
2012-08-10 07:02:36 -0500 commented question The current commenting system

You can remove the enter behavior in settings -> Data entry and display rules -> Save comment by pressing <Enter> key

2012-08-10 01:55:13 -0500 received badge  Good Answer (source)
2012-08-10 00:53:47 -0500 received badge  Nice Answer (source)
2012-08-09 08:42:15 -0500 received badge  Necromancer (source)
2012-08-09 03:19:17 -0500 answered a question Browse questions by badge

Badges are for users, not for questions, if you want to sort questions, just do it in the home page.

For what you want to do, you can go to the badges page, click on the badge to see who got it, see their profile and find which one of their questions make them get this badge.

Btw, I just post a way to sort questions by view here

2012-08-09 03:17:24 -0500 answered a question sort questions by number of views

For those who still want to sort their question by view, I made it, here is my git diff for this feature (maybe I'll do a pull request for it ...)

diff --git a/askbot/const/ b/askbot/const/
index e693a63..48a477a 100644
--- a/askbot/const/
+++ b/askbot/const/
@@ -50,6 +50,8 @@ POST_SORT_METHODS = (
     ('answers-asc', _('coldest')),
     ('votes-desc', _('most voted')),
     ('votes-asc', _('least voted')),
+    ('views-desc', _('most viewed')),
+    ('views-asc', _('least viewed')),
     ('relevance-desc', _('relevance')),

diff --git a/askbot/models/ b/askbot/models/
index 2bb9e80..cf8633f 100644
--- a/askbot/models/
+++ b/askbot/models/
@@ -290,7 +290,8 @@ class ThreadManager(models.Manager):
             'answers-asc': 'answer_count',
             'votes-desc': '-score',
             'votes-asc': 'score',
+           'views-desc': '-view_count',
+           'views-asc': 'view_count',
             'relevance-desc': '-relevance', # special Postgresql-specific ordering, 'relevance' quaso-column is added by get_for_query()
         orderby = QUESTION_ORDER_BY_MAP[search_state.sort]
diff --git a/askbot/skins/default/templates/main_page/tab_bar.html b/askbot/skins/default/templates/main_page/tab_bar.html
index 17ab810..9620d32 100644
--- a/askbot/skins/default/templates/main_page/tab_bar.html
+++ b/askbot/skins/default/templates/main_page/tab_bar.html
@@ -75,6 +75,15 @@
                 search_state = search_state,
+        {{macros.reversible_sort_button(
+                button_sort_criterium = 'views',
+                label = gettext('by views'),
+                asc_tooltip = gettext('click to see least viewed questions'),
+                desc_tooltip = gettext('click to see most viewed questions'),
+                current_sort_method = sort,
+                search_state = search_state,
+            )
+        }}
2012-08-09 02:57:57 -0500 answered a question How to make answers private on user's profile

Try to edit askbot/skins/default/templates/user_profile/user_stats.html, replacing

{% include "user_profile/users_questions.html" %}
<a name="answers"></a>


{% include "user_profile/users_questions.html" %}
{% if request.user == view_user or request.user|can_moderate_user(view_user) %}
<a name="answers"></a>


<a name="votes"></a>


{% endif %}
<a name="votes"></a>

I haven't tested it, but normally it'll do what you want.

2012-08-02 02:38:08 -0500 commented answer GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404

Did you run pip install askbot (or pip install <path-to-askbot-src>/) ? btw even installing a basic python environment add sth to the site-package folder for me ...

2012-08-02 02:30:03 -0500 commented question Sorting the question list by popularity (number of views)
2012-08-01 05:25:25 -0500 answered a question GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404

Try to add these two lines :

Alias /m/admin/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
Alias /m/ /usr/local/lib/python2.6/site-packages/askbot/skins/

just before

Alias /static/ /srv/askbotDjango/static/
Alias /upfiles/ /srv/askbotDjango/askbot/upfiles/
2012-07-31 08:53:14 -0500 received badge  Supporter (source)
2012-07-31 06:20:08 -0500 commented question Two domains pointing to one server with askbot

Do you have another virtualhost for port 80?

2012-07-30 11:23:40 -0500 received badge  Good Question (source)
2012-07-30 10:23:32 -0500 received badge  Necromancer (source)
2012-07-30 10:19:46 -0500 answered a question Internal Server Error after Newest Update.

I had this problem some time ago during a migration, it came from psycopg2 (the transaction began, but was neither commited nor rollbacked because there was a problem)

For me, it solved itself with another migration with some sql manipulations (but it was because the db I had to migrate was from 1 year ago with mysql ...)

Actually, I can't say anything other than try to find what failed in your queries, sorry ...

2012-07-30 09:57:34 -0500 commented question Internal Server Error after Newest Update.

Can you try with the debug mode on, and post your stacktrace ?

2012-07-30 09:56:11 -0500 received badge  Nice Question (source)
2012-07-30 09:50:13 -0500 answered a question how to disable requests to

Well the matter I want to point is in the user_get_avatar_url function from models/

In this function, we have :

            raise django_exceptions.ImproperlyConfigured(message)
        return self.get_gravatar_url(size)

But shouldn't it be

            raise django_exceptions.ImproperlyConfigured(message)
        if askbot_settings.ENABLE_GRAVATAR:
            return self.get_gravatar_url(size)
            return self.get_default_avatar_url(size)

in order to entirely disable requests to gravatar website?

2012-07-30 09:28:52 -0500 received badge  Student (source)
2012-07-30 09:26:03 -0500 asked a question permissions on closed and deleted question

Actually, on closed and deleted question, users can still answer, retag, flag, ... do almost everything. We can even close a deleted question ...

I think it would be great to limit these permissions, and make sure that no one can do anything on deleted or closed questions (excepting undelete a deleted question and unclosed and delete a closed question) (At least let's be clear on these permissions)

2012-07-24 05:58:20 -0500 commented answer Installation error while migrate askbot

ok thanks.