This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 5 years ago

Closed 4 years ago

#613 closed defect (fixed)

'NoneType' object has no attribute 'getOwner'

Reported by: makub Owned by: acastill
Priority: high Milestone: v0.97.1
Component: Paper reviewing Version: 0.97-dev
Keywords: Cc:

Description

The following error is reported when I try to delete a contribution:

2011-01-06 09:31:20,010 indico.requestHandler - ERROR base.py:332 -- Request 52425936 failed: "'NoneType' object has no attribute 'getOwner'"

url: https://www.egi.eu/indico/contributionModification.py?contribId=0&confId=207

parameters: {'contribId': '0', 'days': 'all', 'confId': '207'}

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/rh/base.py", line 486, in process
    res = self._process()
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/rh/contribMod.py", line 159, in _process
    return p.display(**params)
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/base.py", line 165, in display
    self._display( params ), \
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/main.py", line 159, in _display
    body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(),
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/conferences.py", line 2229, in _getBody
    return self._applyFrame( self._getPageContent( params ) )
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/contributions.py", line 423, in _getPageContent
    body = wcomponents.WTabControl( self._tabCtrl, self._getAW() ).getHTML( self._getTabContent( params ) )
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/contributions.py", line 770, in _getTabContent
    return wc.getHTML()
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/wcomponents.py", line 190, in getHTML
    vars = self.getVars()
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/contributions.py", line 736, in getVars
    vars["abstract"] = self._getAbstractHTML()
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/pages/contributions.py", line 569, in _getAbstractHTML
    """)%( quoteattr(str(urlHandlers.UHAbstractManagment.getURL(abs))),\
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/urlHandlers.py", line 83, in getURL
    url.addParams( target.getLocator() )
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/review.py", line 1736, in getLocator
    loc = self.getConference().getLocator()
  File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/review.py", line 1496, in getConference
    return self.getOwner().getOwner()
AttributeError: 'NoneType' object has no attribute 'getOwner'

The contribution is on the Contributions page of a conference event.

I do not know who have created it, but the listing shows:

Found contributions (1)
 
	down Id 	Date 	Duration 	Type 	Title 	Presenter 	Session 	Track 	Status 	Material
	0 	  	  	Poster 	Abstract Title 	Mr. ESTRELLA, Florida 	  	  	W 	 

Change History (8)

comment:1 Changed 5 years ago by jbenito

  • Owner set to jmonnich
  • Status changed from new to assigned

comment:2 Changed 5 years ago by jbenito

  • Milestone changed from v0.97.1 to v0.98
  • Priority changed from normal to high
  • Version set to 0.97-dev

comment:3 Changed 5 years ago by jbenito

  • Milestone changed from v0.98 to v0.97.1

comment:4 Changed 5 years ago by jbenito

  • Owner changed from jmonnich to acastill

comment:5 Changed 5 years ago by acastill

  • Status changed from assigned to in_work

comment:6 Changed 5 years ago by acastill

  • Status changed from in_work to awaiting_merge

Fixed in commit: e3b5ce60d626767b84c0ff3a606b03694ab0ada2
log:
[FIX] Link of contribution with a removed abstract

  • It is mandatory to remove the contribution before the abstract if the abstract status is W
  • Fixed an error report

It is already integrated

comment:7 Changed 4 years ago by jbenito

  • Status changed from awaiting_merge to merging

comment:8 Changed 4 years ago by jbenito

  • Resolution set to fixed
  • Status changed from merging to closed
Note: See TracTickets for help on using tickets.