First time here? Check out the FAQ!

Fabien Meghazi's profile - activity

2017-10-09 19:57:09 -0500 received badge Good Question (source)
2017-10-05 16:57:17 -0500 received badge Notable Question (source)
2017-10-05 16:57:17 -0500 received badge Popular Question (source)
2016-11-21 08:17:10 -0500 received badge Famous Question (source)
2016-08-20 20:55:32 -0500 received badge Notable Question (source)
2016-08-20 20:55:32 -0500 received badge Popular Question (source)
2015-06-17 08:25:33 -0500 received badge Popular Question (source)
2015-06-17 08:25:33 -0500 received badge Famous Question (source)
2014-11-25 05:08:45 -0500 received badge Notable Question (source)
2014-10-02 03:16:56 -0500 received badge Notable Question (source)
2014-08-06 13:44:01 -0500 received badge Popular Question (source)
2014-01-13 05:15:12 -0500 received badge Famous Question (source)
2013-06-10 15:20:10 -0500 received badge Popular Question (source)
2013-02-07 03:24:59 -0500 asked a question How to use real_name instead of username in screens ?

In an askbot customization, I ensured that the real_name field is always filled in, the username field contains the email address and is used as login.

Is there a way to use the real_name field instead of username in the screens ?

If possible I'd prefer not to change the templates because I manage to do all my customization in the askbot instance without touching to the templates.

2013-02-07 02:43:40 -0500 commented question DoesNotExist exception on some users profile page

Replying to myself, I could trace the id of the thread causing problem at File "/usr/local/lib/python2.7/dist-packages/askbot/models/question.py", line 586, I used the admin in order to delete the thread and now the user pages are ok. So it was a relation missing. Not sure how it could happen as they are foreign key checks in postgres, ...

2013-02-06 04:47:34 -0500 received badge Famous Question (source)
2013-02-04 03:45:29 -0500 asked a question DoesNotExist exception on some users profile page

On an askbot running pip version 0.7.48, I've got an exception on the profile page of 3 users. I don't get the relation between those three user, I guess they have a broken relation or something but I don't know how to trace it.

Here's the traceback:

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot/views/users.py", line 1123, in user
    return user_view_func(request, profile_owner, context)

  File "/usr/local/lib/python2.7/dist-packages/askbot/views/users.py", line 531, in user_stats
    return render(request, 'user_profile/user_stats.html', context)

  File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py", line 44, in render
    return HttpResponse(loader.render_to_string(*args, **kwargs),

  File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 176, in render_to_string
    return t.render(context_instance)

  File "/usr/local/lib/python2.7/dist-packages/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)

  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
    return self.environment.handle_exception(exc_info, True)

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/user_profile/user_stats.html", line 3, in top-level template code
    {% import "user_profile/macros.html" as user_profile_macros %}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/user_profile/user.html", line 1, in top-level template code
    {% extends "one_column_body.html" %}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/one_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/base.html", line 53, in top-level template code
    {% block body %}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/one_column_body.html", line 5, in block "body"
    {% block content%}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/user_profile/user.html", line 17, in block "content"
    {% block usercontent %}

  File "/usr/local/lib/python2.7/dist-packages/askbot/templates/user_profile/user_stats.html", line 131, in block "usercontent"
    href="{{ award.content_object.get_absolute_url() }}"

  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 11, in _curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 883, in get_absolute_url
    return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot/models/post.py", line 759, in get_absolute_url
    question_post = self.thread._question_post()

  File "/usr/local/lib/python2.7/dist-packages/askbot/models/question.py", line 586, in _question_post
    self._question_cache = Post.objects.get(post_type='question', thread=self)

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 131, in get
    return self.get_query_set().get(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 367, in get
    % self.model._meta.object_name)

DoesNotExist: Post matching query does not exist.
2013-02-03 14:53:34 -0500 received badge Scholar ( source )
2013-02-03 14:53:27 -0500 received badge Commentator
2013-02-03 14:53:27 -0500 commented answer retag option throws an exception

Yes, I confirm. I migrated to 0.7.48 and the problem has gone. Thanks !

2013-02-02 14:15:01 -0500 received badge Nice Question (source)
2013-01-31 14:17:58 -0500 received badge Organizer (source)
2013-01-31 10:21:39 -0500 asked a question Is askbot 0.7.48 a stable version ?

At the time of writing, askbot 0.7.48 is available on pypi but it is not mentioned in the changelog [1]. I checked the diff between 0.7.47 and 0.7.48 and saw javascript debugger statements in the code [2].

I am currently testing 0.7.47 and I'm experiencing some troubles that doesn't seem to be fixed in 0.7.48 but I can't be 100% sure without migrating.

Is 0.7.48 supposed to be stable besides those debugger leftovers ?

[1] http://askbot.org/doc/changelog.html

[2] https://github.com/ASKBOT/askbot-devel/compare/0.7.47...0.7.48#L45R2079

2013-01-31 09:52:52 -0500 asked a question retag option throws an exception

Using askbot 0.7.47 installed from pip.

Whenever someone tries to retag a question, a "Sorry, something is not right here" overlay appears and I can notice this traceback on the server :

/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py TIME: 2013-01-31 16:57:53,083 MSG: base.py:handle_uncaught_exception:215 Internal Server Error: /questions/64/retag/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/askbot/views/writers.py", line 326, in retag_question
    if request.user.message_set.count() > 0:
AttributeError: 'RelatedObjectSimulator' object has no attribute 'count'

Is this a known problem ? If true, is there a way to solve it ?

2013-01-31 09:18:30 -0500 received badge Famous Question (source)
2013-01-31 09:18:27 -0500 received badge Famous Question (source)
2013-01-24 09:48:23 -0500 commented answer Custom web controller in askbot instance

Ok, what I was searching for was not backend specific at all. I found the answer here : http://stackoverflow.com/questions/2787650/manually-logging-in-a-user-without-password

2013-01-24 09:48:21 -0500 commented answer Custom web controller in askbot instance

Ok, what I was searching for was not backend specific at all. I found the answer here : http://stackoverflow.com/questions/2787650/manually-logging-in-a-user-without-password

2013-01-24 03:29:22 -0500 commented answer Custom web controller in askbot instance

In fact, all the code I need is in the openid backend included in askbot. I just need to figure out how to call some parts from my view directly plugged in url.py. No, I don't come from rails.

2013-01-23 09:49:12 -0500 received badge Editor (source)
2013-01-23 09:48:43 -0500 asked a question Custom web controller in askbot instance

Is it possible to add a custom web controller in an askbot instance in order to respond to an url and login users using a custom login scheme.

I'm currently trying to add the code in url.py, is there a better place to put the controller's code ?

Also, how can I programmatically create a user and/or authenticate users from a custom controller ?

2013-01-21 06:47:18 -0500 commented answer ASKBOT_EXTRA_SKINS_DIR usage

You're right. I forgot about running in strandalone in order to have helpful debug information. This topic helped me too : http://askbot.org/en/question/7499/askbot_extra_skins_dir-settings-stalls-model/

2013-01-21 05:45:17 -0500 received badge Famous Question (source)
2013-01-21 04:28:28 -0500 received badge Supporter ( source )
2013-01-21 04:27:57 -0500 commented answer Database IntegrityError in admin

Sorry about my previous message, it is incomplete. Running the group_messaging migration command actually solved the first error (relation does not exists). Thanks ! I still experience the second problem when updating a user (Key (id)=(xxx) is still referenced from table "askbot_groupmembership").

2013-01-21 04:27:55 -0500 commented answer Database IntegrityError in admin

I ran manage.py migrate [...] with the following listed commands : group_messaging, longerusername, robots. Those were the missing migrations according to migrate --list. According to the message I guess only group_messaging was relevant. Anyway, I restarted the server and I still have the exact same errors. Running python manage.py migrate --all --fake reports nothing to migrate for all targets. Any idea ?

2013-01-18 14:41:51 -0500 received badge Nice Question (source)
2013-01-18 01:04:25 -0500 received badge Student (source)
2013-01-17 18:17:43 -0500 asked a question How can I add an oauth2 custom login provider to askbot ?

How can I add an oauth2 custom login provider to askbot ?

I grepped askbot code and it seems that it supports oauth2, right ?

askbot/deps/django_authopenid/util.py:import oauth2 as oauth
2013-01-17 18:05:15 -0500 commented question How to fix "UndefinedError: 'settings' is undefined" in git branch

Previous comment is true. I had the same traceback and when enabling the debug mode in settings.py it revealed another problem. See http://askbot.org/en/question/9815/database-integrityerror-in-admin/

2013-01-17 18:05:14 -0500 commented question How to fix "UndefinedError: 'settings' is undefined" in git branch

Previous comment is true. I had the same traceback and when enabling the debug mode in settings.py it revealed another problem. See http://askbot.org/en/question/9815/database-integrityerror-in-admin/

2013-01-17 18:03:48 -0500 commented question UndefinedError: 'settings' is undefined

I have exactly the very same traceback when saving or deleting a user from the admin panel. I enabled the debug mode in settings.py and it revealed a completely different problem when doing the same operation (updating/deleting users). See http://askbot.org/en/question/9815/database-integrityerror-in-admin/