Trees | Indices | Help |
|
---|
|
XML tools; so far just conversion between object attributes and xml.
Copyright 2007-2011 Research Foundation State University of New York This file is part of QUB Express.
QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.
|
|||
Field Field(name, default, accept=str, format=str): an attribute for <properties>. |
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|||
e = 2.71828182846
|
|||
pi = 3.14159265359
|
|||
rdbk =
|
|||
rdbreak =
|
|||
rdname =
|
|
Returns a DOM element representing specified fields of obj.
example: >>> obj = object() >>> obj.name = 'x' >>> obj.length = obj.volume = 0.0 >>> fields = [Field(name='name', accept=str, default='untitled'), ... Field(name='length', accept=float, format=str, default=2.3), ... Field(name='volume', accept=float, format='%9g', default=2.3)] >>> print PropertiesToXML(obj, doc, ns, fields) <properties> <property name='name'>x</property> <property name='length'>0.0</property> <property name='volume'>0.0</property> </properties> |
Sets attributes of obj from xml.dom element <properties>.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Dec 15 19:07:38 2017 | http://epydoc.sourceforge.net |