Ignore:
Timestamp:
20/10/06 09:44:19 (13 years ago)
Author:
lawrence
Message:

Modifications to discovery (and browse) to support ndgDoc as an interim
measure ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/browse/portal/cgi/browse/DIF.py

    r1592 r1615  
    3636        helper=nsdumb(self.tree) 
    3737        self.type='DIF' 
     38        if self.tree.tag!=self.type: self.tree=self.tree.find('.//%s'%self.type) 
     39        if self.tree is None: raise TypeError, self.xml 
    3840        self.entryID=helper.getText(self.tree,'Entry_ID') 
    3941        self.abstract=helper.getText(self.tree,'Summary') 
Note: See TracChangeset for help on using the changeset viewer.