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 6 years ago

Closed 6 years ago

Last modified 5 years ago

#22 closed defect (fixed)

Retrieving "Favorite users" causes traceback when accessing using a modification key

Reported by: pferreir Owned by: pferreir
Priority: normal Milestone: v0.97.0
Component: General Version: 0.97.0
Keywords: Cc: keith.morgan.edmonds@…

Description

Error details

exception message => 'NoneType' object has no attribute 'getPersonalInfo'
exception type => exceptions.AttributeError
traceback => 
  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/rh/base.py", line 444, in process
    res = self._process()

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/rh/contribMod.py", line 865, in _process
    return p.display(**self._getRequestParams())

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/pages/base.py", line 139, in display
    return "%s%s%s"%( self._getHTMLHeader(), \

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/pages/main.py", line 160, in _display
    body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(),

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/pages/conferences.py", line 2209, in _getBody
    return self._applyFrame( self._getPageContent( params ) )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/pages/contributions.py", line 419, in _getPageContent
    body = wcomponents.WTabControl( self._tabCtrl, self._getAW() ).getHTML( self._getTabContent( params ) )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/pages/contributions.py", line 492, in _getTabContent
    return wc.getHTML( params )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 4039, in getHTML
    return WTemplated.getHTML( self, pars )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 188, in getHTML
    vars = self.getVars()

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 4070, in getVars
    vars["searchResultsTable"] = WUserSearchResultsTable(self._multi).getHTML( res )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 2511, in getHTML
    return WTemplated.getHTML( self, {} )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 188, in getHTML
    vars = self.getVars()

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 2520, in getVars
    l.append( self.__getItemClass(principal)(self._multi).getHTML( principal, selected ) )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 1880, in getHTML
    return WTemplated.getHTML( self, {} )

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 188, in getHTML
    vars = self.getVars()

  File "/usr/lib/python2.4/site-packages/MaKaC/webinterface/wcomponents.py", line 1896, in getVars
    vars["currentUserBasket"] = self._rh._getUser().getPersonalInfo().getBasket()

request handler => <class 'MaKaC.webinterface.rh.contribMod.RHSearchSpeakers'>
url => http://indicobeta.cern.ch/contributionModification.py/searchSpk

Whoever fixes this could also change the "favorite" icon style. Right now people who are favorites seem exactly not to be. Maybe a 'greyed out' kind of thing would be better.

Change History (2)

comment:1 Changed 6 years ago by jose.pedro.ferreira@…

  • Resolution set to fixed
  • Status changed from new to closed

commit a8943745f2652920800ce6d68673cbab1e751d2e
Author: Pedro Ferreira <jose.pedro.ferreira@…>
Date: Wed Nov 4 17:11:04 2009 +0100

[FIXED] Bug in 'favorite' buttons


  • fixed #22
  • also changed a bit the style of the 'star' buttons;
  • some JS refactoring;

comment:2 Changed 5 years ago by Pedro Ferreira <jose.pedro.ferreira@…>

In [a8943745f2652920800ce6d68673cbab1e751d2e]:

[FIXED] Bug in 'favorite' buttons

  • fixed #22
  • also changed a bit the style of the 'star' buttons;
  • some JS refactoring;
Note: See TracTickets for help on using tickets.