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

Closed 4 years ago

#964 closed defect (fixed)

object has no attribute 'insert'

Reported by: plove Owned by:
Priority: normal Milestone: v0.98.1
Component: General Version:
Keywords: Cc:

Description

This traceback occurs for 0.98_rc1 (fresh DB) when trying to 'create meeting'.

Exception type: 	<type 'exceptions.AttributeError'>
Exception message: 	'dict' object has no attribute 'insert'
Traceback: 	

  File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/base.py", line 566, in process
    res = self._process()

  File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/categoryDisplay.py", line 203, in _process
    c = self._createEvent( self._params )

  File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/webinterface/rh/categoryDisplay.py", line 240, in _createEvent
    c = self._target.newConference( self._getUser() )

  File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/conference.py", line 1107, in newConference
    self._addConference( conf )

  File "/usr/lib/python2.6/site-packages/indico-0.98_rc1-py2.6.egg/MaKaC/conference.py", line 1080, in _addConference
    self.conferences.insert(newConf)

Request handler: 	RHConferencePerformCreation

Change History (5)

comment:1 Changed 4 years ago by arescope

Hello,

I cannot reproduce it...I started with a fresh DB, and i can create events. Could you please give me more details?

Best Regards,

Alberto R.

comment:2 Changed 4 years ago by plove

I checked OOTreeSet and it's fine (not a dict object):
# python26 -c 'from BTrees.OOBTree import OOTreeSet; a=OOTreeSet(); print a'
<BTrees.OOBTree.OOTreeSet object at 0x2b48f29aa6d0>

The installation wasn't without issues so I should reset the DB. How can I re-fresh the DB?

Peter

comment:3 Changed 4 years ago by arescope

You can delete it and when you restart the DB server, it will be created again.

comment:4 Changed 4 years ago by plove

I re-ran indico_initial_setup and things are fine now. I assume it was a DB issue. Thanks for the suggestion. BTW, the setup script for 0.98_rc1 links to an old page for configuring Apache and also mentions the redundant taskDaemon.

comment:5 Changed 4 years ago by arescope

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