First time here? Check out the FAQ!

Olloff's profile - activity

2019-06-30 14:22:12 -0500 received badge Famous Question (source)
2019-06-30 14:22:12 -0500 received badge Popular Question (source)
2017-12-19 13:12:26 -0500 received badge Notable Question (source)
2016-02-04 17:03:19 -0500 received badge Notable Question (source)
2015-10-05 10:58:35 -0500 marked best answer FieldError: Cannot resolve keyword 'answer' into field.

Hello, all!

Next is error I've got after selecting any of the previous versions of my edits. How can I fix it?

Traceback (most recent call last):

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/contrib/auth/decorators.py", line 23, in _wrapped_view
   return view_func(request, *args, **kwargs)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/utils/decorators.py", line 93, in _wrapped_view
   response = view_func(request, *args, **kwargs)

 File "/var/src/askbot-devel/askbot/utils/decorators.py", line 217, in wrapper
   return view_func(request, *args, **kwargs)

 File "/var/src/askbot-devel/askbot/views/writers.py", line 427, in edit_answer
   revision = rev

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/query.py", line 341, in get
   clone = self.filter(*args, **kwargs)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/query.py", line 550, in filter
   return self._filter_or_exclude(False, *args, **kwargs)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/query.py", line 568, in _filter_or_exclude
   clone.query.add_q(Q(*args, **kwargs))

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/sql/query.py", line 1194, in add_q
   can_reuse=used_aliases, force_having=force_having)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/sql/query.py", line 1069, in add_filter
   negate=negate, process_extras=process_extras)

 File "/var/src/askbot-devel/askbot_env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/db/models/sql/query.py", line 1260, in setup_joins
   "Choices are: %s" % (name, ", ".join(names)))

**FieldError: Cannot resolve keyword 'answer' into field. Choices are: author, id, is_anonymous, post, revised_at, revision, revision_type, summary, tagnames, text, title**

Python: 2.5, Askbot: git-6e44222a68bc9edb506ab6598621532cbe6f5ced, Mysql-python: 1.2.3, MySQL: Ver 14.12 Distrib 5.0.51a

2013-08-07 15:49:12 -0500 received badge Famous Question (source)
2013-07-12 06:46:20 -0500 received badge Famous Question (source)
2013-05-06 17:48:59 -0500 received badge Popular Question (source)
2013-05-06 17:48:59 -0500 received badge Famous Question (source)
2013-04-02 11:50:18 -0500 received badge Notable Question (source)
2012-11-27 14:36:16 -0500 received badge Taxonomist
2012-10-18 02:55:05 -0500 received badge Popular Question (source)
2012-09-25 08:32:58 -0500 received badge Popular Question (source)
2012-07-16 15:21:41 -0500 received badge Nice Answer
2012-07-15 14:23:19 -0500 received badge Famous Question (source)
2012-07-03 21:39:33 -0500 received badge Famous Question (source)
2012-06-27 14:01:20 -0500 received badge Famous Question (source)
2012-06-18 07:41:32 -0500 received badge Famous Question (source)
2012-06-09 07:45:41 -0500 received badge Popular Question (source)
2012-05-28 03:01:11 -0500 answered a question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

Problem related to incorrect activity records - some object_id in column 'activity' was filled with nonexistent objects. Probably this happened when I restored site from backup after crush. I was need to execute next query to find broken ids:

SELECT activity.id as aid FROM activity LEFT JOIN askbot_post ON activity.object_id=askbot_post.id WHERE askbot_post.id IS NULL;
2012-05-28 02:56:35 -0500 commented question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

Well, it really was broken activities: some object_id in column 'activity' was filled with nonexistent objects. Probably this happened when I restored site from backup after crush.

2012-05-16 01:05:14 -0500 commented question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

Yes, I already use most recent build. How can I find broken record? I tried to check every activity record for few users (both from mysql console and from livesettings) and all records seems readable. Edit: I've added grouped listing of activity_type to question

2012-05-15 07:58:05 -0500 commented question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

@Evgeny, sorry for my importunity, but is this bug fixed by recent commits? I still receive these messages.

2012-05-14 00:12:52 -0500 commented question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

Thanks, Evgeny.

2012-05-12 00:54:15 -0500 asked a question AttributeError: 'NoneType' object has no attribute 'get_absolute_url'

Hello again!

Next error shows every time when I try to view my Inbox (http://localhost/users/1/support/?sort=inbox&section=forum)

Traceback (most recent call last):

 File "/var/src/askbot-devel/askbot_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/var/src/askbot-devel/askbot/views/users.py", line 824, in user
   return user_view_func(request, profile_owner, context)

 File "/var/src/askbot-devel/askbot/views/users.py", line 55, in wrapped_func
   return f(request, profile_owner, context)

 File "/var/src/askbot-devel/askbot/views/users.py", line 602, in user_responses
   'response_url': memo.activity.get_absolute_url(),

 File "/var/src/askbot-devel/askbot_env/lib/python2.6/site-packages/django/utils/functional.py", line 55, in _curried
   return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))

 File "/var/src/askbot-devel/askbot_env/lib/python2.6/site-packages/django/db/models/base.py", line 887, in get_absolute_url
   return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)

 File "/var/src/askbot-devel/askbot/models/user.py", line 209, in get_absolute_url
   return self.content_object.get_absolute_url()

AttributeError: 'NoneType' object has no attribute 'get_absolute_url'


<WSGIRequest
GET:<QueryDict: {u'sort': [u'inbox'], u'section': [u'forum']}>,
POST:<QueryDict: {}>,
COOKIES:{'askbot_visitor': 'False',
 'help.sunline.ua_csrf': '62dd351bd315bb8e3bc556353e995e62',
 'help_csrf': '70f00bfa211d743a9b34d112c214d483',
 'sessionid': '68c54d825d903f9aa423b25079b18b18'},
META:{'DOCUMENT_ROOT': '/var/www/localhost',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru,en-US;q=0.9,en;q=0.9,en-gb;q=0.9,bg-BG;q=0.9,bg;q=0.8,uk-UA;q=0.8,uk;q=0.8,nl-NL;q=0.7,nl;q=0.7,de-DE;q=0.7,de;q=0.7,fr-FR;q=0.6,fr;q=0.6,es-ES;q=0.6,es;q=0.5,ar-AE;q=0.5,ar;q=0.5,zh-CN;q=0.5,zh;q=0.4,th-TH;q=0.4,th;q=0.4,ru-RU-lite;q=0.3,ja-JP;q=0.3,ja;q=0.3,pt-PT;q=0.3,pt;q=0.2,en-EN;q=0.2,eo-EO;q=0.2,eo;q=0.1,pt-BR;q=0.1,ru-x-mtfrom-et;q=0.1,vi-VN;q=0.1,vi;q=0.0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'localhost_csrf=62dd351bd315bb8e3bc556353e995e62; sessionid=68c54d825d903f9aa423b25079b18b18; help_csrf=70f00bfa211d743a9b34d112c214d483; askbot_visitor=False',
 'HTTP_HOST': 'localhost',
 'HTTP_REFERER': 'http://localhost/questions/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/15.0 Firefox/15.0a1',
 'PATH_INFO': u'/users/1/support/',
 'PATH_TRANSLATED': '/var/www/localhost/django.wsgi/users/1/support/',
 'QUERY_STRING': 'sort=inbox&section=forum',
 'REMOTE_ADDR': '10.10.6.166',
 'REMOTE_PORT': '59932',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/users/1/support/?sort=inbox&section=forum',
 'SCRIPT_FILENAME': '/var/www/localhost/django.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '10.100.100.1',
 'SERVER_ADMIN': 'support@slocalhost',
 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze8 with Suhosin-Patch mod_wsgi/3.3 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian ...
(more)
2012-04-27 02:42:29 -0500 asked a question Mandatory tags list didn't show up

Hello again.

About a month ago I noticed that mandatory tags list didn't show up in "Ask Question" form. Am I alone who faced this issue? Can it result of this commit?

For clarification: I use own fork of default skin, but also reproduced this on default skin.

2012-04-24 13:42:31 -0500 received badge Good Question (source)
2012-04-24 10:11:27 -0500 received badge Nice Question (source)
2012-04-24 08:43:12 -0500 commented answer Can type of message be changed freely?

Thank you, Evgeny!

2012-04-24 08:10:54 -0500 commented answer Can type of message be changed freely?

Ehm, next question is how to invalidate thread cache manually? Does Askbot have existent function for that?

2012-04-23 23:21:07 -0500 asked a question Can type of message be changed freely?

For example, user posted message as "answer" but I want to change its type to "comment" or even pick out some messages as questions.

I know I can change type of post in django-livesettings/posts but "comment -> answer" works fine and "answer -> comment" works only after I add another comment (possibly this can be cache issue).

EDIT: Works only on lastest posts. Cant explain this.

Transformation "answer/comment -> question" not works at all and drops error 500 each time.

Can this be possible?

2012-04-20 04:48:37 -0500 commented question Request: Get user ip address

Thank you and author of mod @rtnpro for your time.

2012-04-19 01:50:17 -0500 commented question do you have a plan to implement the tag wiki feature?

Joined to the question, these or similar function can be useful to implement KB (knowledge base) function.

2012-04-17 16:39:58 -0500 received badge Self-Learner ( source )
2012-04-17 15:14:11 -0500 answered a question Ghost migrations 0.7.40

My bad, some files was deleted/broken. Strange, but neither "git pull" nor "git clean" can't solve problem or even alert me about it.

Note to yourself:
if installer says "migrations are not on disk", try to search them for the start. Feel like an idiot.

2012-04-17 11:47:44 -0500 commented answer Problems installing with mysql

Em, isn't askbot do pip install from mercury-repo of South? I mean it requires mercury and setuptools-hg in order to install..

2012-04-17 07:18:21 -0500 asked a question Ghost migrations 0.7.40

Hello again.

After I tried to reinstall existing Askbot installation, I found strange error on database migrate:

! These migrations are in the database but not on disk:
<askbot: 0108_auto__add_field_thread_score>
<askbot: 0109_denormalize_question_vote_to_thread>
<askbot: 0110_auto__add_field_thread_added_at>
<askbot: 0111_populate__thread__added_at>
<askbot: 0112_add_model_ReplyAddress>
<askbot: 0113_auto__add_field_thread_added_at__add_field_thread_score__add_field_rep>

Askbot: dev;
Python: 2.6.6
South: 2.7.4
MySQL: 5.1.61

Can it be fixed?

2012-04-17 05:35:06 -0500 commented answer Request: Get user ip address

I didin't know about bugtracker, my bad. Much appreciated @paulus_almighty

2012-04-13 07:47:34 -0500 received badge Citizen Patrol
2012-04-09 00:26:14 -0500 edited question Request: Get user ip address

This one is feature I missing most of all.

Can Askbot log current user ip-address? Somtimes it can be really helpful.


Update:

My request is not about analytic system. I use askbot to build a small q&a community accessible mostly from my ISP network and currently I need to view user IP-address in user posts or profiles.


Update 2:

Accidentally found Askbot branch with prob. all desired functionality: possibility to display and block certain IP - askbot-blockip

2012-04-09 00:05:09 -0500 commented answer Request: Get user ip address

I already use a traffic analytic system, but thats not what I'm looking. I use askbot to build a small q&a community accessible mostly from my ISP network and currently I need to view user IP-address in user posts or profiles. Pretty sure, my case isn't only one.