Hello,
I installed the latest discussion plugin from this location 
http://trac-hacks.org/wiki/DiscussionPlugin#Download 
I am able to see the plugin, create a topic and enter the first message. 
But when I click the reply button of a second level message I get an error 
dump. I have attached the screenshot highlighting the click from where I 
get the error message. Also pasting the trace below.Can you please help me 
here?



==== How to Reproduce ====

While doing a GET operation on `/discussion/topic/3`, Trac issued an 
internal error.

''(please provide additional details here)''

Request parameters:
{{{
{'discussion_action': u'add', 'message': u'5', 'topic': u'3'}
}}}

User agent: `Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/35.0.1916.114 Safari/537.36`

==== System Information ====
|| '''`Trac`''' || `1.0.1` ||
|| '''`Babel`''' || `0.9.6` ||
|| '''`Genshi`''' || `0.6 (without speedups)` ||
|| '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup  WSGIApplicationGroup 
%{GLOBAL})` ||
|| '''`MySQL`''' || `server: "5.5.25", client: "6.0.0", thread-safe: 1` ||
|| '''`MySQLdb`''' || `1.2.4b4` ||
|| '''`Python`''' || `2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 
bit (Intel)]` ||
|| '''`RPC`''' || `1.1.2` ||
|| '''`setuptools`''' || `0.6c11` ||
|| '''`Subversion`''' || `1.7.5 (r1336830)` ||
|| '''`Subversion`''' || `1.7.5 (r1336830)` ||
|| '''`jQuery`''' || `1.7.2` ||

==== Enabled Plugins ====
|| '''`estimationtools`''' || `0.4.6` ||
|| '''`hudsontrac`''' || `0.5` ||
|| '''`jqchart`''' || `1.0dev` ||
|| '''`macro`''' || `N/A` ||
|| '''`MilestoneCompactMacro`''' || `N/A` ||
|| '''`svnsyncplugin`''' || `0.1.2` ||
|| '''`ticket-clone`''' || `N/A` ||
|| '''`ticket-clone-bk-12032014`''' || `N/A` ||
|| '''`ticketimport`''' || `0.8.3` ||
|| '''`ticketsidebarprovider`''' || `0.0` ||
|| '''`ticketvalidator`''' || `0.2dev` ||
|| '''`tracaccountmanager`''' || `0.3.2` ||
|| '''`tracaddcommentmacro`''' || `0.3` ||
|| '''`traccustomfieldadmin`''' || `0.2.8` ||
|| '''`tracdatefield`''' || `1.1.0` ||
|| '''`tracdiscussion`''' || `0.9dev` ||
|| '''`trachoursplugin`''' || `0.6.0dev` ||
|| '''`tracmacropost`''' || `0.2` ||
|| '''`tracserverdownmacro`''' || `1.0` ||
|| '''`tracsubticketsplugin`''' || `0.2.0.dev-20130717` ||
|| '''`tracsumfields`''' || `1.0.1` ||
|| '''`tracticketcharts`''' || `0.2dev` ||
|| '''`tracworkflowadmin`''' || `0.12.0.2` ||
|| '''`tracxmlrpc`''' || `1.1.2` ||
|| '''`wikicalendarmacro`''' || `2.0.0dev` ||
|| '''`YumlPreprocessor`''' || `N/A` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File "build\bdist.win32\egg\trac\web\main.py", line 497, in 
_dispatch_request
    dispatcher.dispatch(req)
  File "build\bdist.win32\egg\trac\web\main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win-amd64\egg\tracdiscussion\core.py", line 119, in 
process_request
    template, data = api.process_discussion(context)
  File "build\bdist.win-amd64\egg\tracdiscussion\api.py", line 274, in 
process_discussion
    self._do_actions(context, actions)
  File "build\bdist.win-amd64\egg\tracdiscussion\api.py", line 1391, in 
_do_actions
    self._prepare_message_list(context, context.topic)
  File "build\bdist.win-amd64\egg\tracdiscussion\api.py", line 1566, in 
_prepare_message_list
    .attachment_data(context)
  File "build\bdist.win32\egg\trac\attachment.py", line 559, in 
attachment_data
    context.href),
  File "build\bdist.win32\egg\trac\resource.py", line 297, in 
get_resource_url
    return manager.get_resource_url(resource, href, **kwargs)
  File "build\bdist.win32\egg\trac\attachment.py", line 650, in 
get_resource_url
    resource.parent(version=None), Href('')))
  File "build\bdist.win32\egg\trac\resource.py", line 297, in 
get_resource_url
    return manager.get_resource_url(resource, href, **kwargs)
  File "build\bdist.win-amd64\egg\tracdiscussion\api.py", line 209, in 
get_resource_url
    (self.get_resource_url(resource.parent, href),
  File "build\bdist.win-amd64\egg\tracdiscussion\api.py", line 204, in 
get_resource_url
    if resource.id:
AttributeError: 'NoneType' object has no attribute 'id'
}}}

Regards,
Ram

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to