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

#206 closed defect (fixed)

Exception thrown when trying to add subcontribution

Reported by: pferreir Owned by: pferreir
Priority: critical Milestone: v0.97.0
Component: General Version: 0.97.0
Keywords: Cc:

Description

Apparently because the user is logged in with a modification key, and has no "user basket".

Error details

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

  File "/usr/lib/python2.4/site-packages/cds_indico-0.97b2-py2.4.egg/MaKaC/webinterface/rh/contribMod.py", line 308, in _process
    return p.display(**params)

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

  File "/usr/lib/python2.4/site-packages/cds_indico-0.97b2-py2.4.egg/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/cds_indico-0.97b2-py2.4.egg/MaKaC/webinterface/pages/conferences.py", line 2202, in _getBody
    return self._applyFrame( self._getPageContent( params ) )

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

  File "/usr/lib/python2.4/site-packages/cds_indico-0.97b2-py2.4.egg/MaKaC/webinterface/pages/contributions.py", line 1077, in _getTabContent
    params["presenter"] = wpresenter.getHTML(params)

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

  File "/usr/lib/python2.4/site-packages/cds_indico-0.97b2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 4351, in getVars
    vars["personOptions"] = self.__addBasketPeople("")

  File "/usr/lib/python2.4/site-packages/cds_indico-0.97b2-py2.4.egg/MaKaC/webinterface/wcomponents.py", line 4326, in __addBasketPeople
    basket = self._rh._getUser().getPersonalInfo().getBasket().getUsers()

request handler => <class 'MaKaC.webinterface.rh.contribMod.RHContributionAddSC'>
url => http://indicobeta.cern.ch/contributionModifSubCont.py/add

Change History (3)

comment:1 Changed 6 years ago by pferreir

  • Status changed from new to accepted

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

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

commit f78b0c460ccb471fbedf6895431d052f51e53812
Author: Pedro Ferreira <jose.pedro.ferreira@…>
Date: Thu Feb 18 18:21:33 2010 +0100

[FIX] Added verification to user basket listing


  • so that it doesn't fail when people are using access keys;
  • fixes #206
  • made the timetable access key-enabled - slight refactoring of the services;

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

In [f78b0c460ccb471fbedf6895431d052f51e53812]:

[FIX] Added verification to user basket listing

  • so that it doesn't fail when people are using access keys;
  • fixes #206
  • made the timetable access key-enabled - slight refactoring of the services;
Note: See TracTickets for help on using tickets.