Modify ↓
Opened 16 years ago
Closed 16 years ago
#7778 closed defect (invalid)
AttributeError: 'DiscussionApi' object has no attribute 'get_item'
Reported by: | preetham | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11b1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a POST operation on /discussion
, Trac issued an internal error.
Request parameters:
{'__FORM_TOKEN': u'a9f6219dc294f894c1c5bf82', 'description': u'Test', 'discussion_action': u'post-add', 'group': u'0', 'moderators': u'preetham', 'name': u'Test', 'subject': u'Test', 'submit': u'Submit'}
System Information
Trac | 0.11b1
|
Python | 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
|
setuptools | 0.6c7
|
SQLite | 3.3.4
|
pysqlite | 2.3.2
|
Genshi | 0.5dev-r799
|
Subversion | 1.4.6 (r28521)
|
Python Traceback
Traceback (most recent call last): File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\web\main.py", line 398, in _dispatch_request dispatcher.dispatch(req) File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5-win32.egg\trac\web\main.py", line 195, in dispatch resp = chosen_handler.process_request(req) File "build\bdist.win32\egg\tracdiscussion\core.py", line 77, in process_request return api.process_discussion(context) + (None,) File "build\bdist.win32\egg\tracdiscussion\api.py", line 85, in process_discussion group, forum, topic, message = self._get_context(context) File "build\bdist.win32\egg\tracdiscussion\api.py", line 174, in _get_context group = self.get_group(context, group_id) File "build\bdist.win32\egg\tracdiscussion\api.py", line 889, in get_group return self.get_item(context, 'group', ('id', 'name', 'description'), AttributeError: 'DiscussionApi' object has no attribute 'get_item'
Attachments (0)
Note:
See TracTickets
for help on using tickets.
/discussion does not belong to Trac, but to a plugin.
Please report the error to the plugin maintainer.