Revision 4024
Added by Aaron Marcuse-Kubitza about 12 years ago
xml_func.py | ||
---|---|---|
63 | 63 |
|
64 | 64 |
funcs = {} |
65 | 65 |
|
66 |
structural_funcs = set() |
|
67 |
|
|
68 | 66 |
##### Public functions |
69 | 67 |
|
70 | 68 |
def is_func_name(name): |
... | ... | |
111 | 109 |
try: value = sql_io.put(db, name, dict(items)) # evaluate using DB |
112 | 110 |
except sql.DoesNotExistException: return # preserve unknown funcs |
113 | 111 |
# possibly a built-in function of db_xml.put() |
114 |
elif (column_mode and not name in structural_funcs) or func == None:
|
|
112 |
elif column_mode or func == None:
|
|
115 | 113 |
# local XML function can't be used or does not exist |
116 | 114 |
if column_mode and is_rel_func(name): return # preserve relational funcs |
117 | 115 |
# otherwise XML-only in column mode, or DB-only in XML output mode |
Also available in: Unified diff
xml_func.py: process(): Removed support for no longer used structural functions