First time here? Check out the FAQ!

Benoit's profile - activity

2023-08-01 04:17:33 -0500 received badge Popular Question (source)
2023-08-01 04:17:33 -0500 received badge Notable Question (source)
2023-08-01 04:17:33 -0500 received badge Famous Question (source)
2023-03-09 01:32:41 -0500 received badge Notable Question (source)
2022-11-16 23:36:42 -0500 received badge Popular Question (source)
2022-11-16 23:36:42 -0500 received badge Famous Question (source)
2022-03-30 05:03:05 -0500 received badge Famous Question (source)
2022-03-21 19:26:06 -0500 received badge Popular Question (source)
2022-03-21 19:26:06 -0500 received badge Notable Question (source)
2022-03-15 01:55:31 -0500 received badge Popular Question (source)
2020-07-19 22:51:41 -0500 received badge Popular Question (source)
2020-07-19 22:51:21 -0500 received badge Popular Question (source)
2019-11-15 01:24:13 -0500 received badge Famous Question (source)
2018-11-27 01:13:46 -0500 received badge Famous Question (source)
2018-06-05 11:32:22 -0500 received badge Popular Question (source)
2018-04-27 06:59:18 -0500 received badge Famous Question (source)
2018-04-24 04:00:12 -0500 received badge Notable Question (source)
2017-10-30 12:30:54 -0500 received badge Famous Question (source)
2017-09-12 07:42:06 -0500 received badge Famous Question (source)
2016-12-02 16:30:11 -0500 received badge Famous Question (source)
2016-12-02 16:30:11 -0500 received badge Popular Question (source)
2016-12-02 16:30:11 -0500 received badge Notable Question (source)
2016-08-08 06:54:58 -0500 received badge Notable Question
2016-02-01 18:28:53 -0500 received badge Popular Question (source)
2016-02-01 04:57:33 -0500 received badge Notable Question (source)
2016-02-01 04:57:33 -0500 received badge Popular Question (source)
2016-01-28 05:39:50 -0500 received badge Popular Question (source)
2016-01-22 03:21:48 -0500 received badge Famous Question (source)
2016-01-08 05:04:56 -0500 received badge Famous Question (source)
2015-12-16 09:41:49 -0500 received badge Popular Question
2015-10-05 10:58:33 -0500 marked best answer Problem with long lines in body of question

I encountered a problem that is probably related to the Css style.

If we have a long entry without spaces such as /an/extremely/long/path/which/does/not/end/in/any/reasonable/amount/of/space/that/a/sane/person/would/consider/realistic/but/that/unix/likes we get a run-over in the right-hand-column.

2015-10-05 10:58:33 -0500 marked best answer Selecting the "unanswered" filter should not show closed questions

On the main questions page, if one selects "unanswered" questions, it currently shows closed questions. It might also show deleted questions if you are an admin.

If a question has been closed, it should be removed from the unanswered list since you can't provide an answer anyway...

2015-10-05 10:58:33 -0500 marked best answer Problem with CSRF setting

Tried to login, and got the following exception. Looks like there needs to be a 'CSRF_FAILURE_VIEW' variable in settings.py

AttributeError at /account/signin/
'Settings' object has no attribute 'CSRF_FAILURE_VIEW'
Request Method: POST
Request URL:    http://test.com:8000/account/signin/
Exception Type: AttributeError
Exception Value:    
'Settings' object has no attribute 'CSRF_FAILURE_VIEW'
Exception Location: /usr/local/lib/python2.6/site-packages/django/utils/functional.py in __getattr__, line 276
Python Executable:  /usr/local/bin/python
Python Version: 2.6.6
2015-10-05 10:58:32 -0500 marked best answer How to roll-back a setup.py install

I don't think this is specific to askbot, but maybe people know. Is there an easy way to "roll-back" to a previous deployed askbot installation?

When I do my setup.py install, I get a new /local/usr/lib/pyshon-site/askbot-x.y.z which contains whatever version of askbot is being deployed.

The previous version is also there. If something is messed up in the new version, is there a quick way to revert to the old version?

2015-10-05 10:58:32 -0500 marked best answer translation for up or down vote?

i'm doing a translation, and I have changes "question(s)/" to "requirement(s)/" However, the up/down vote still uses a POST to "/questions", which fails.

Is there another file that needs to be changed for the voting to work?

2015-10-05 10:58:32 -0500 marked best answer Is there a way to purge unused tags from the DB?

If I miss-tagged a question with "perview" instead of "preview". I go back and fix the tag.

However, I now have a tag "perview" in the system.
Is there a way to purge those unused tags? It would be ok if I had to explicitly do it.

something like: "python manage.py purge_tag perview"

If the in tag was used, I should get an error:

 "Error: Tag 'perview' is in use (in 2 questions: [148, 172])"

Showing the # of questions and the question number would be a nice bonus.

2015-10-05 10:58:31 -0500 marked best answer Exception 'taxonomist' unknown key

In 0.6.17, I have a user with the "taxonomist" badge. Just migrated to 0.6.49 (or thereabout). When displaying the user, I get a KeyError exception (u'taxonomist' exception). The bottom of the stack has:

/ala-windanswer1/qa/wrqa_dev/askbot/models/repute.py in description
        return badges.get_badge(self.slug).description ...
▼ Local vars
Variable    Value
badges  <module 'askbot.models.badges' from '/ala-windanswer1/qa/wrqa_dev/askbot/models/badges.pyc'>
self   Error in formatting: u'taxonomist'  
/ala-windanswer1/qa/wrqa_dev/askbot/models/badges.py in get_badge
    return BADGES [key]() ...
▼ Local vars
Variable    Value
key u'taxonomist'
name    u'taxonomist'

Turns out there are a number of badges that have disapeared: Alpha, Beta, Expert, Stunk & White, Taxonomist, Yearling.

Looks like we need code to deal with badges that have been dropped so we don't get an exception.

2015-10-05 10:58:31 -0500 marked best answer Is there a specific version of PostgreSQL required?

What is the minimum version requirement for postgresSQL?

2015-10-05 10:58:31 -0500 marked best answer Question missing from question_revision table!

I don't know how it could have gotten in this state, but I have 3 questions in my database that do not have an entry in the question_revision table.

The questions display fine, but whenever I try to edit the question, I get an exception in query.py in __getitem__

Note that the ID in the table are sequential. There is no hole...

A few questions:

  • Any idea why this happened?
  • Easy way to fix?
  • Should there be code to catch an empty revision? (I would think not...This is a DB issue)
2015-10-05 10:58:31 -0500 marked best answer Exception: EmailFeedSetting matching query does not exist

I get an EmailFeedSetting exception in models/__init__.py: user_get_q_sel_email_feed_frequency This happened when I went to the user profile and clicked on the user's answer.

The user's email field is empty. There is also no entry in the askbot_emailfeedsetting for this user.

Note that the user was created with a call to User.object.get_or_create(username=xxx, first_name=xxx, last_name=xxx, email=xxx)

If I go to the profile's subscription tab and select "update", this exception disappears. Is there another call I need to make the I use User.object.get_or_create to set the email feed settings?

2015-10-05 10:58:31 -0500 marked best answer How to use two different askbot code bases?

Is there a way to have two different askbot versions installed on the same server?
For example, a www.server.com/release and a www.server.com/beta where the "release" would use 1 version of askbot (let's say 0.6.14) and the "beta" would use the latest out of the repository?

Note that instead of /release & beta, it would be just as good to have www.server.com as a regular apache port 80 deployed system and have www.server.com:8000 running the webBRICK server.

Basically, is there a variable I can set that indicates to an askbot installation: use .../site-packages/askbot-0.6.14 or use .../site-packages/askbot-beta?

2015-10-05 10:58:31 -0500 marked best answer Is there a way to escape the < character?

I'm trying to have some text bracketed with <> like: < option >
However, if I don't put a space between the first < and the word, it is interpreted as an html tag.

Is there a way to escape the < ?

It's not a big deal, just a cosmetic issue.

2015-10-05 10:57:10 -0500 marked best answer Internet Explorer Javascript Error on Ask a question

Turns out that IE javascript interpreter is extremely pedantic... This causes the ask a question page to not display the tag list or the pre-search results.
In template/media/js/ the following lines are causing errors because there is a hanging comma.

post.js 116: },
post.js 691: delay: 10,
tag_selector.js 358: delay: 10,
live_search.js (479 in my branch): delay: 10,

removing the extra comma solved the errors.

2015-09-21 06:17:49 -0500 received badge Famous Question (source)
2015-08-07 16:13:28 -0500 received badge Popular Question (source)
2015-07-29 14:59:17 -0500 received badge Popular Question (source)
2015-06-23 15:18:10 -0500 received badge Famous Question (source)
2015-06-15 10:05:08 -0500 received badge Notable Question (source)
2015-05-08 15:06:33 -0500 received badge Famous Question (source)
2015-04-20 15:07:40 -0500 received badge Famous Question