3878: Private option and filter on Exporter; adds proxy order, browse of proxy data, referenced proxy, update of all exports (except csv)

svn: r15502
This commit is contained in:
Doug Blank
2010-05-30 04:07:50 +00:00
parent ba2d5d503d
commit a9ac340110
12 changed files with 552 additions and 603 deletions

View File

@ -84,27 +84,7 @@ def writeData(database, filename, msg_callback, option_box=None, callback=None):
if option_box:
option_box.parse_options()
if option_box.private:
database = gen.proxy.PrivateProxyDb(database)
if option_box.restrict:
database = gen.proxy.LivingProxyDb(
database, gen.proxy.LivingProxyDb.MODE_INCLUDE_LAST_NAME_ONLY)
# Apply the Person Filter
if not option_box.cfilter.is_empty():
database = gen.proxy.FilterProxyDb(database, option_box.cfilter)
# Apply the Note Filter
if not option_box.nfilter.is_empty():
database = gen.proxy.FilterProxyDb(
database, note_filter=option_box.nfilter)
# Apply the ReferencedProxyDb to remove any objects not referenced
# after any of the other proxies have been applied
if option_box.unlinked:
database = gen.proxy.ReferencedProxyDb(database)
database = option_box.get_filtered_database(database)
writer = PackageWriter(database, filename, msg_callback, callback)
return writer.export()