Package pyfics :: Package parser
[hide private]

Source Code for Package pyfics.parser

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # vim: set sw=4 ts=4 sts=4 et tw=79 : 
 4  # Copyright 2006-2007 Ali Polatel <polatel@gmail.com> 
 5  # Distributed under the terms of the GNU General Public License v3 
 6   
 7  """Pyfics parser module 
 8   
 9  The aim of this module is to provide necessary objects for parsers. 
10  """ 
11   
12  __all__ = [ 'InvalidUsername', 'InvalidPassword', 'protocol' ] 
13   
14  import pyparsing 
15   
16 -class InvalidUsername(pyparsing.ParseFatalException):
17 """ Invalid username """ 18 pass
19 -class InvalidPassword(pyparsing.ParseFatalException):
20 """ Invalid password """ 21 pass
22 23 protocol = None 24 """This is set by L{InteractiveIcsParsingProtocol} and provides access to 25 protocol object. 26 @type: C{twisted.internet.protocol}""" 27