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

Ticket #622: abstract_xml.patch

File abstract_xml.patch, 1.5 KB (added by makub, 5 years ago)

a better patch for both individual and mass export

  • /usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/rh/abstractModif.py

    old new  
    210210        for f in afm.getFields(): 
    211211            id = f.getId() 
    212212            if f.isActive() and self._target.getField(id).strip() != "": 
    213                 x.writeTag(id.replace(" ","_"),self._target.getField(id)) 
     213                #x.writeTag(id.replace(" ","_"),self._target.getField(id)) 
     214                x.writeTag("field",self._target.getField(id),[("id",id)]) 
    214215        x.writeTag("Conference", self._target.getConference().getTitle()) 
    215216        l = [] 
    216217        for au in self._target.getAuthorList(): 
  • /usr/lib/python2.5/site-packages/cds_indico-0.97_rc2-py2.5.egg/MaKaC/webinterface/rh/conferenceModif.py

    old new  
    44794479            x.writeTag("Content", abstract.getField("content")) 
    44804480            for f in self._conf.getAbstractMgr().getAbstractFieldsMgr().getFields(): 
    44814481                id = f.getId() 
    4482                 x.writeTag(id, abstract.getField(id)) 
     4482                x.writeTag("field",abstract.getField(id),[("id",id)]) 
    44834483            l = [] 
    44844484            for au in abstract.getAuthorList(): 
    44854485                if abstract.isPrimaryAuthor(au):