Remove unused options for GeneWeb export.

svn: r12496
This commit is contained in:
Brian Matherly 2009-04-30 03:49:03 +00:00
parent 8a3c2cc4c2
commit 5e5fc02115
2 changed files with 1 additions and 49 deletions

View File

@ -52,26 +52,6 @@
<property name="y_options"></property> <property name="y_options"></property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkCheckButton" id="private">
<property name="label" translatable="yes">_Do not include records marked private</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="border_width">3</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options"></property>
</packing>
</child>
<child> <child>
<object class="GtkCheckButton" id="restrict"> <object class="GtkCheckButton" id="restrict">
<property name="label" translatable="yes">_Restrict data on living people</property> <property name="label" translatable="yes">_Restrict data on living people</property>
@ -119,25 +99,6 @@
<property name="y_options"></property> <property name="y_options"></property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkCheckButton" id="sources">
<property name="label" translatable="yes">Exclude _sources</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options"></property>
</packing>
</child>
<child> <child>
<object class="GtkCheckButton" id="living"> <object class="GtkCheckButton" id="living">
<property name="label" translatable="yes">Use _Living as first name</property> <property name="label" translatable="yes">Use _Living as first name</property>

View File

@ -82,7 +82,6 @@ class GeneWebWriterOptionBox:
def get_option_box(self): def get_option_box(self):
self.restrict = 1 self.restrict = 1
self.private = 1
glade_file = os.path.join( glade_file = os.path.join(
os.path.split(__file__)[0], os.path.split(__file__)[0],
@ -139,8 +138,7 @@ class GeneWebWriterOptionBox:
def on_restrict_toggled(self, restrict): def on_restrict_toggled(self, restrict):
active = restrict.get_active () active = restrict.get_active ()
for x in [self.topDialog.get_object("living"), for x in [self.topDialog.get_object("living"),
self.topDialog.get_object("notes"), self.topDialog.get_object("notes")]:
self.topDialog.get_object("sources")]:
x.set_sensitive(active) x.set_sensitive(active)
def parse_options(self): def parse_options(self):
@ -149,10 +147,6 @@ class GeneWebWriterOptionBox:
self.topDialog.get_object("living").get_active()) self.topDialog.get_object("living").get_active())
self.exclnotes = (self.restrict and self.exclnotes = (self.restrict and
self.topDialog.get_object("notes").get_active()) self.topDialog.get_object("notes").get_active())
self.exclsrcs = (self.restrict and
self.topDialog.get_object("sources").get_active())
self.private = self.topDialog.get_object("private").get_active()
self.cfilter = self.filter_menu[self.filters.get_active()][1] self.cfilter = self.filter_menu[self.filters.get_active()][1]
self.images = self.topDialog.get_object ("images").get_active () self.images = self.topDialog.get_object ("images").get_active ()
@ -183,7 +177,6 @@ class GeneWebWriter:
if not option_box: if not option_box:
self.restrict = 0 self.restrict = 0
self.private = 0
self.copy = 0 self.copy = 0
self.images = 0 self.images = 0
else: else:
@ -192,8 +185,6 @@ class GeneWebWriter:
self.restrict = self.option_box.restrict self.restrict = self.option_box.restrict
self.living = self.option_box.living self.living = self.option_box.living
self.exclnotes = self.option_box.exclnotes self.exclnotes = self.option_box.exclnotes
self.exclsrcs = self.option_box.exclsrcs
self.private = self.option_box.private
self.copy = self.option_box.copy self.copy = self.option_box.copy
self.images = self.option_box.images self.images = self.option_box.images
self.images_path = self.option_box.images_path self.images_path = self.option_box.images_path