First time here? Check out the FAQ!

bgenevaux's profile - activity

2022-08-26 09:52:12 -0600 received badge Famous Question (source)
2022-08-26 09:52:12 -0600 received badge Notable Question (source)
2022-08-26 09:52:12 -0600 received badge Popular Question (source)
2012-09-15 05:22:50 -0600 received badge Famous Question (source)
2012-09-03 08:54:17 -0600 received badge Nice Answer ( source )
2012-09-03 08:35:31 -0600 received badge Self-Learner ( source )
2012-09-03 06:36:07 -0600 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 -0600 answered a question User opted out of email notifications, but is still receiving them.

I found what was wrong : In models/posts.py, 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
    )
    subscriber_set.update(global_subscribers)

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'
        )
        subscriber_set.update(instant_subscribers)

and it works well.

2012-09-03 02:42:20 -0600 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 -0600 received badge Good Question (source)
2012-08-31 09:47:35 -0600 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 -0600 received badge Commentator
2012-08-31 09:03:51 -0600 received badge Nice Question (source)
2012-08-31 08:51:34 -0600 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 -0600 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 -0600 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 -0600 received badge Citizen Patrol
2012-08-27 04:08:30 -0600 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 -0600 received badge Critic
2012-08-18 18:19:52 -0600 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 -0600 received badge Nice Question (source)
2012-08-16 02:44:01 -0600 received badge Scholar ( source )
2012-08-14 04:52:23 -0600 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 -0600 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 -0600 received badge Good Answer ( source )
2012-08-10 00:53:47 -0600 received badge Nice Answer ( source )
2012-08-09 08:42:15 -0600 received badge Necromancer ( source )
2012-08-09 03:19:17 -0600 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 -0600 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/__init__.py b/askbot/const/__init__.py
index e693a63..48a477a 100644
--- a/askbot/const/__init__.py
+++ b/askbot/const/__init__.py
@@ -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/question.py b/askbot/models/question.py
index 2bb9e80..cf8633f 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -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,
+            )
+        }}
     </div>
 </div>
2012-08-09 02:57:57 -0600 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>

by

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

and

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

by

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

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

2012-08-02 02:38:08 -0600 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 -0600 commented question Sorting the question list by popularity (number of views)
2012-08-01 05:25:25 -0600 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 -0600 received badge Supporter ( source )
2012-07-31 06:20:08 -0600 commented question Two domains pointing to one server with askbot

Do you have another virtualhost for port 80?

2012-07-30 11:23:40 -0600 received badge Good Question (source)
2012-07-30 10:23:32 -0600 received badge Necromancer ( source )
2012-07-30 10:19:46 -0600 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 -0600 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 -0600 received badge Nice Question (source)
2012-07-30 09:50:13 -0600 answered a question how to disable requests to gravatar.com?

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

In this function, we have :

            ...
            logging.critical(message)
            raise django_exceptions.ImproperlyConfigured(message)
    else:
        return self.get_gravatar_url(size)
else:
    ...

But shouldn't it be

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

in order to entirely disable requests to gravatar website?