# HG changeset patch # User paulb # Date 1130803000 0 # Node ID 851e8ae4a4a1fcf37fbd0a7bf0de7ee265e4dd4c # Parent d24aa73692ee14a223e1259c2319f6ca868e4f1e [project @ 2005-10-31 23:56:40 by paulb] Added a get_document convenience method. diff -r d24aa73692ee -r 851e8ae4a4a1 XSLForms/Fields.py --- a/XSLForms/Fields.py Mon Oct 31 23:55:51 2005 +0000 +++ b/XSLForms/Fields.py Mon Oct 31 23:56:40 2005 +0000 @@ -385,6 +385,16 @@ return self.documents + def get_document(self, name): + + """ + Get the form data document with the given 'name' from the container, + returning a DOM-style document object if such a document exists, or None + if no such document can be found. + """ + + return self.documents.get(name) + def get_selectors(self): """