Changeset 46 for page.py

Show
Ignore:
Timestamp:
07/21/06 11:14:01 (2 years ago)
Author:
ploum
Message:

Statusbar now displays the number of results.
Warning : staging.launchpad has changed and protocol is no more compatible

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • page.py

    r33 r46  
    2222        # needed when reading bookmarks from file 
    2323        print "to implement" 
     24 
     25def read_title(string) : 
     26        #return the title from a descriptive string 
     27        doc2 = xml.dom.minidom.parseString(string) 
     28        bmark = doc2.getElementsByTagName("bookmark")[0] 
     29        title =  bmark.getAttribute("title") 
     30        return title 
     31 
     32def read_type(string) : 
     33        #return the type from a descriptive string 
     34        doc2 = xml.dom.minidom.parseString(string) 
     35        bmark = doc2.getElementsByTagName("bookmark")[0] 
     36        zetype =  int(bmark.getAttribute("type")) 
     37        return zetype 
    2438 
    2539class page :