Changeset 3162 for exist


Ignore:
Timestamp:
18/12/07 15:50:37 (12 years ago)
Author:
lawrence
Message:

This is actually a bit broken, but committed because it will do what Sue needs
for now ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ndgDirectory.py

    r3161 r3162  
    4545        return self.members 
    4646         
    47     def __loadxml(self,id,i): 
     47    def __loadxml(self,id,i,created=0): 
    4848        ''' Returns the i'th xml document name in result set id ''' 
    4949        r=self.xmldb.retrieve(id,i) 
     
    5151        fn=e.findtext('{%s}fileName'%self.ns) 
    5252        eid=e.findtext('{%s}repositoryID'%self.ns) 
    53         return {'fileName':fn,'EntryID':eid} 
     53        c=e.findtext('created') 
     54        #if created: 
     55        #    return {'fileName':fn,'EntryID':eid,'created':self.created(fn)} 
     56        #else: return {'fileName':fn,'EntryID':eid} 
     57        return {'fileName':fn,'EntryID':eid,'created':c} 
    5458    
    5559    def get(self,fileName): 
Note: See TracChangeset for help on using the changeset viewer.