kate_r's profile - activity

6 years ago received badge Popular Question (source)
7 years ago received badge Notable Question (source)
7 years ago received badge Popular Question (source)
7 years ago received badge Famous Question (source)
7 years ago asked a question Sign in via oauth2 and API

Sign in via oauth2 I'm trying to give Askbot support for signing in via API. I guess it'd be via oauth2. My take is that

7 years ago asked a question Can both password and oauth2 be supported simultaneously?

Can both password and oauth2 be supported simultaneously? I wonder if 'password' and oauth2 can be supported simultaneou

7 years ago commented answer Does Askbot support Python 3?

@Evgeny Is there any plan to support Python 3?

7 years ago received badge Critic (source)
8 years ago received badge Notable Question (source)
8 years ago received badge Famous Question (source)
8 years ago received badge Famous Question (source)
8 years ago received badge Popular Question (source)
8 years ago received badge Popular Question (source)
8 years ago received badge Nice Question (source)
9 years ago received badge Notable Question (source)
9 years ago marked best answer Why "must add revision before saving the answer"?

Hi

In models.post, there's the following:

    #must add revision before saving the answer
    self.add_revision(
        author = edited_by,
        revised_at = edited_at,
        text = text,
        comment = comment,
        by_email = by_email
    )

How come the revision has to be saved before the answer?

Thanks

9 years ago marked best answer How scalable is askbot nowadays?

A similar question was asked before in 2011 http://askbot.org/en/question/3249/how-scalable-is-askbot/ and it seems back then caching support was rather weak. Has the caching support been improved since then? Can Askbot handle 40 pageviews per second now?

9 years ago marked best answer How come user-following doesn't work?

I'm trying to follow someone on askbot.org, but clicking on 'follow X' doesn't give a response. The user doesn't appear in my network either. Is user-following supposed to work here?

Thanks

9 years ago marked best answer Is user-following a new feature?

I see that this site supports user-following. Is a new feature in 0.7.39? Was it available in 0.7.22?

Thanks

9 years ago marked best answer Removing footer messages

Hi

If I amend the code, can I remove from the footer "Powered by Askbot version 0.7.39" and the license message?

Thanks

10 years ago marked best answer Why does Askbot use South?

Hi

How come Askbot uses South? Would it be better off without it?

Thanks!

10 years ago received badge Enthusiast
10 years ago asked a question How come there's create() and create_new()?

Hi

I'm somewhat confused about the naming scheme for instance creation. In ThreadManager, create() raises NotImplementedError whereas there's a method create_new() which creates a new thread. In TagManager, there's create() but no create_new(). So what are the intended differences between create() and create_new()?

Thanks

10 years ago asked a question How come there's create() and create_new()?

Hi

I'm somewhat confused about the naming scheme for instance creation. In ThreadManager, create() raises NotImplementedError whereas there's a method create_new() which creates a new thread. In TagManager, there's create() but no create_new(). So what are the intended differences between create() and create_new()?

Thanks

10 years ago asked a question Can users send private messages?

I believe this feature was talked about some years ago, but is it available currently? If so, is it enabled here?

Thanks

10 years ago received badge Popular Question (source)
11 years ago received badge Notable Question (source)
11 years ago received badge Famous Question (source)
11 years ago received badge Nice Question (source)
11 years ago marked best answer What is the default Celery broker?

Hi

I see that Celery is used to handle slow tasks, but BROKER_URL doesn't seem to be set in settings.py. Does anyone know what is the default broker? There's a variable called DOMAIN_NAME in settings.py, but what is its purpose? Is it related to Celery?

Thanks

11 years ago received badge Famous Question (source)
11 years ago received badge Famous Question (source)
11 years ago received badge Famous Question (source)
12 years ago commented question MaybeEncodingError when RabbitMQ is used

I've figured out the problem: TransactionMiddleware is enabled, which makes each view function commit_on_response. Basically, nothing gets committed if a response is not created. I think the task should only be fired off after a response.

12 years ago commented question MaybeEncodingError when RabbitMQ is used

This comes from the non-modified version of askbot-devel's master branch. I can't quite see why the post matching ID doesn't exist though. The "post_updated" signal is sent after post.parse_and_save() in models.post, so the post ID should already exists by the time the task kicks off.

12 years ago asked a question MaybeEncodingError when RabbitMQ is used

Hi

The task record_post_update_celery_task always gives a MaybeEncodingError when RabbitMQ is used. It seems to work fine for djkombu though. Is it potentially a problem with race conditions? Here's my celery.log:

[2013-06-16 17:09:57,603: INFO/MainProcess] Got task from broker: askbot.tasks.record_post_update_celery_task[68e380d4-2ad4-4025-a8ff-0287933072eb]
[2013-06-16 17:09:57,794: ERROR/MainProcess] Task askbot.tasks.record_post_update_celery_task[68e380d4-2ad4-4025-a8ff-0287933072eb] raised exception: <MaybeEncodingError: Error sending result: '"<ExceptionInfo: ObjectDoesNotExist('Post matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'askbot.models.post.DoesNotExist\'>: attribute lookup askbot.models.post.DoesNotExist failed",)''.>
Traceback (most recent call last):
  File "/home/projects/askbot-test/local/lib/python2.7/site-packages/billiard-2.7.3.28-py2.7-linux-x86_64.egg/billiard/pool.py", line 317, in worker
    put((READY, (job, i, result)))
  File "/home/projects/askbot-test/local/lib/python2.7/site-packages/billiard-2.7.3.28-py2.7-linux-x86_64.egg/billiard/queues.py", line 353, in put
    return send(obj)
MaybeEncodingError: Error sending result: '"<ExceptionInfo: ObjectDoesNotExist('Post matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'askbot.models.post.DoesNotExist\'>: attribute lookup askbot.models.post.DoesNotExist failed",)''.

Could anyone reproduce it? The problem arises whether it's a question or an answer that is submitted.

12 years ago commented answer Why "must add revision before saving the answer"?

Thanks. I agree that it all works, and works brilliantly. However, just for education, since the post object already exists, the comment "#must add revision before saving the answer" above the call is too strong though. There's no reason for it to not work if the revision is added after saving the answer, as the post object already exists. Just for education. :)

12 years ago commented answer Why "must add revision before saving the answer"?

Sure. Thanks for the pointers. So does that mean that comment in the edit function doesn't actually hold?