bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Enkelmann <dominik.enkelm...@infocube.it>
Subject AttributeError: 'Ticket' object has no attribute 'duplicate'
Date Wed, 15 Jan 2014 08:09:46 GMT
When i try to "*reject*" a ticket in "assigned" state, setting the 
reason "*duplicate*", i get this error.
When rejecting with another reason, for example "invalid" everything 
works fine.

Any ideas?
Dominik


I have the following workflow defined:

reassign = new,assigned,accepted,reopened -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reject = new,assigned, accepted -> closed
reject.operations = set_resolution
reject.permissions = TICKET_MODIFY


Request parameters:
{{{
{'__FORM_TOKEN': u'94ca7d05eb05732286c165fd',
  'action': u'reject',
  'action_reject_resolve_resolution': u'duplicate',
  'comment': u'',
  'edit-comment': u'',
  'field_cc': u'',
  'field_component': u'component1',
  'field_description': u'',
  'field_keywords': u'',
  'field_milestone': u'',
  'field_priority': u'major',
  'field_reporter': u'vpuzio@gmail.com',
  'field_summary': u'Non funziona il reject con causa: duplicate',
  'field_type': u'defect',
  'field_version': u'1.0',
  'id': u'104',
  'start_time': u'1389772418764191',
  'submit': u'Submit changes',
  'view_time': u'1389772418764191'}
}}}

User agent: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) 
Gecko/20100101 Firefox/26.0`

==== System Information ====
|| '''`Trac`''' || `1.0.1` [[br]] `` ||
|| '''`Babel`''' || `0.9.6` ||
|| '''`Bloodhound Trac`''' || `1.0.1` ||
|| '''`Genshi`''' || `0.6.1 (without speedups)` ||
|| '''`Pygments`''' || `1.6` ||
|| '''`pysqlite`''' || `2.4.1` ||
|| '''`Python`''' || `2.6.6 (r266:84292, Nov 22 2013, 12:16:22) ` [[br]] 
`[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]` ||
|| '''`pytz`''' || `2013b` ||
|| '''`setuptools`''' || `0.9.8` ||
|| '''`SQLite`''' || `3.6.20` ||
|| '''`Subversion`''' || `1.8.5 (r1542147)` ||
|| '''`jQuery`''' || `1.7.2` ||

==== Enabled Plugins ====
|| '''`BloodhoundDashboardPlugin`''' || `0.7.0` ||
|| '''`BloodhoundMultiProduct`''' || `0.7.0` ||
|| '''`BloodhoundRelationsPlugin`''' || `0.7.0` ||
|| '''`BloodhoundSearchPlugin`''' || `0.7.0` ||
|| '''`BloodhoundTheme`''' || `0.7.0` ||
|| '''`TracAccountManager`''' || `0.4` ||
|| '''`TracPermRedirect`''' || `3.0` ||
|| '''`TracThemeEngine`''' || `2.2.1` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/trac/web/main.py",

line 477, in _dispatch_request
     dispatcher.dispatch(req)
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/trac/web/main.py",

line 214, in dispatch
     resp = chosen_handler.process_request(req)
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/multiproduct/ticket/web_ui.py",

line 64, in process_request
     return self._process_ticket_request(req)
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/trac/ticket/web_ui.py",

line 614, in _process_ticket_request
     self._do_save(req, ticket, action)
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/trac/ticket/web_ui.py",

line 1328, in _do_save
     replyto=req.args.get('replyto'))
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/trac/ticket/model.py",

line 366, in save_changes
     listener.ticket_changed(self, comment, author, old_values)
   File 
"/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.6/site-packages/bhrelations/api.py",

line 503, in ticket_changed
     self.rls.add(ticket, ticket.duplicate,
AttributeError: 'Ticket' object has no attribute 'duplicate'
}}}

Mime
View raw message