Legacy API

These are pieces of the coil API are deprecated pieces left over from 0.2.2. See Coil 0.2.2 Migration in the Dev Guide for more information. New code should not use this API.

Parser

Compatibility with <= 0.2.2, do not use in new code!

coil.text.fromSequence(iterOfStrings, filePath=None)

Load a Struct from a sequence of strings.

@param filePath: path the strings were loaded from. Required for relative @file arguments to work.

coil.text.fromString(st, filePath=None)

Load a Struct from a string.

@param filePath: path the string was loaded from. Required for relative @file arguments to work.

coil.text.fromFile(path)

Load a struct from a file, given a path on the filesystem.

Struct

class coil.struct.StructNode(struct, container=None)

For compatibility with Coil <= 0.2.2, use Struct instead.

has_key(attr)
get(attr, default=<object object at 0x7f83c1725370>)
attributes()
iteritems()

Errors

coil.struct.StructAttributeError

Alias for coil.errors.KeyMissingError

Table Of Contents

Previous topic

Core API

Next topic

Change Log

This Page