Re: PyYAML: YAMLObject subclasses are ignored
Matthew Wilson <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat 11 Oct 2008 11:12:31 AM EDT, Matthew Wilson wrote: > I suspect the solution to my problem is something really trivial. > > I wrote a module called pitz that contains a class Issue: > > >>> pitz.Issue.yaml_tag > u'ditz.rubyforge.org,2008-03-06/issue' > > Then I try to load a document with that same tag, but I get a > ConstructorError: > > ConstructorError: could not determine a constructor for the tag > '!ditz.rubyforge.org,2008-03-06/issue' > I figured out my problem. I forgot the "!" character in front of my yaml_tag attribute. Whoops! ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/