The-WebOps-Club / fest-api

An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface
12 stars 11 forks source link

Bug in create_comment #97

Closed shahidhk closed 10 years ago

shahidhk commented 10 years ago

Tagging users is causing a bug

Traceback (most recent call last):
  File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/dajaxice/views.py", line 52, in dispatch
    response = function.call(request, **data)
  File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/dajaxice/core/Dajaxice.py", line 18, in call
    return self.function(*args, **kwargs)
  File "/home/shahidh/works/fest-api/apps/walls/ajax.py", line 361, in create_comment
    comment_text, notification_list = parse_atwho(comment_text)
  File "/home/shahidh/works/fest-api/apps/walls/utils.py", line 61, in parse_atwho
    _type, _id = i[2].split("#", 1)
ValueError: need more than 1 value to unpack
AbdealiLoKo commented 10 years ago

Its been fixed in latest commits On Jun 7, 2014 12:53 PM, "Shahidh K Muhammed" notifications@github.com wrote:

Tagging users is causing a bug

Traceback (most recent call last): File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, _callback_args, _callback_kwargs) File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, _args, _kwargs) File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/dajaxice/views.py", line 52, in dispatch response = function.call(request, *_data) File "/home/shahidh/works/fest-api/venv/local/lib/python2.7/site-packages/dajaxice/core/Dajaxice.py", line 18, in call return self.function(_args, **kwargs) File "/home/shahidh/works/fest-api/apps/walls/ajax.py", line 361, in create_comment comment_text, notification_list = parse_atwho(comment_text) File "/home/shahidh/works/fest-api/apps/walls/utils.py", line 61, in parse_atwho _type, _id = i[2].split("#", 1) ValueError: need more than 1 value to unpack

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/97.

shahidhk commented 10 years ago

Nope, I am in master only. i[2] seems to be the issue

shahidhk commented 10 years ago

what is 2 doing there?

shahidhk commented 10 years ago

Okay, this happens in experimental mode only

shahidhk commented 10 years ago

Tagging in experimental mode is different