Package parpg :: Module dialogueparsers :: Class OldYamlDialogueParser
[hide private]
[frames] | no frames]

Class OldYamlDialogueParser

source code

            object --+        
                     |        
AbstractDialogueParser --+    
                         |    
        YamlDialogueParser --+
                             |
                            OldYamlDialogueParser

YAMLDialogueParser that can read and write dialogues in the old Techdemo1 dialogue file format.


Warning: This class is deprecated and likely to be removed in a future version.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
load(self, stream)
Parse a YAML stream and attempt to construct a new Dialogue instance.
source code
 
_constructDialogue(self, loader, yaml_node) source code
 
_constructDialogueSection(self, loader, id_node, section_node) source code
 
_constructDialogueResponse(self, loader, response_node) source code
 
_constructDialogueAction(self, loader, action_node) source code

Inherited from YamlDialogueParser: dump

Inherited from AbstractDialogueParser: validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  logger = logging.getLogger('dialogueparser.OldYamlDialoguePars...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

load(self, stream)

source code 

Parse a YAML stream and attempt to construct a new Dialogue instance.

Parameters:
  • stream - stream containing the serialized YAML representation of a Dialogue.
  • loader_class - PyYAML loader class to use for reading the serialization.
Overrides: AbstractDialogueParser.load
(inherited documentation)

_constructDialogue(self, loader, yaml_node)

source code 
Overrides: YamlDialogueParser._constructDialogue

_constructDialogueSection(self, loader, id_node, section_node)

source code 
Overrides: YamlDialogueParser._constructDialogueSection

_constructDialogueResponse(self, loader, response_node)

source code 
Overrides: YamlDialogueParser._constructDialogueResponse

_constructDialogueAction(self, loader, action_node)

source code 
Overrides: YamlDialogueParser._constructDialogueAction

Class Variable Details [hide private]

logger

Value:
logging.getLogger('dialogueparser.OldYamlDialogueParser')