To convert a virtual attribute we must understand that it has
been put into "obj" under the name including the ;format= part
and so we must look it back up with that name when looking to
covert it from (say) NTTIME to a unix time.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
continue
if ra["vformat"] != fm:
continue
+
srcattr = get_src_attrname(ra["attr"])
+ if srcattr is not None:
+ an = "%s;format=%s" % (srcattr, fm)
+ else:
+ srcattr = an = get_src_attrname(ra["raw_attr"])
if srcattr is None:
continue
- an = "%s;format=%s" % (srcattr, fm)
if an in generated_formats:
continue
generated_formats[an] = fm