3878: Private option and filter on Exporter

svn: r15402
This commit is contained in:
Doug Blank
2010-05-13 12:11:22 +00:00
parent 7da7919b78
commit d134be8d2e
3 changed files with 30 additions and 30 deletions

View File

@ -85,13 +85,6 @@ 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)
@ -101,6 +94,13 @@ def writeData(database, filename, msg_callback, option_box=None, callback=None):
database = gen.proxy.FilterProxyDb(
database, note_filter=option_box.nfilter)
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 ReferencedProxyDb to remove any objects not referenced
# after any of the other proxies have been applied
if option_box.unlinked: