Table of Contents

Class: getDirInfoParser ui/userData.py

getDirInfoParser is a private Sax Parser designed to rapidly parse a <username>.xml file for directory/filter names.

This Sax parser is designed to return a list of MadrigalDirectory classes found in a given file. This list is presently used to support the isprint selection web page, which needs to know about all user directories and filters.

For usage information for any Python Sax parser, see Python Sax tutorial

This parser assumes the username.xml is of the form of the following format:

<?xml version='1.0'?>

<userInfo>

<directory>

<dirname>jmh_public</dirname>

<dirtype>public</dirtype>

<filter>

<filtername>jmh_pub1</filtername>

more filter elements ...

</filter>

possibly more filters...

</directory>

possibly more directories...

</userInfor>

Non-standard Python modules used:

PyXML

Exceptions thrown:

Exception possibly thrown by sax module

Change history:

Written by Bill Rideout Dec. 11, 2001

Base Classes   
xml.sax.handler.ContentHandler
Methods   
__init__
characters
endElement
startElement
  __init__ 
__init__ ( self )

Override of saxutils.DefaultHandler __init__ function to support parsing <username>.xml.

  characters 
characters ( self,  ch )

Override of saxutils.DefaultHandler characters function to support parsing <username>.xml.

  endElement 
endElement ( self,  name )

Override of saxutils.DefaultHandler endElement function to support parsing <username>.xml.

  startElement 
startElement (
        self,
        name,
        attrs,
        )

Override of saxutils.DefaultHandler startElement function to support parsing <username>.xml.


Table of Contents

This document was automatically generated on Thu Oct 20 16:51:50 2011 by HappyDoc version r1_5