OpenOffice fix for spaces in filenames, translation extraction improvements

svn: r1202
This commit is contained in:
Don Allingham 2002-11-24 15:28:31 +00:00
parent 0d94f69dbc
commit 52da7e9caa
9 changed files with 283 additions and 240 deletions

View File

@ -758,7 +758,9 @@ class GenericFilterList:
try: try:
parser = make_parser() parser = make_parser()
parser.setContentHandler(FilterParser(self)) parser.setContentHandler(FilterParser(self))
parser.parse('file://' + self.file) if self.file[0:7] != "file://":
self.file = "file://" + self.file
parser.parse(self.file)
except (IOError,OSError,SAXParseException): except (IOError,OSError,SAXParseException):
pass pass

View File

@ -98,6 +98,8 @@ class Marriage:
"on_marriageUpdateBtn_clicked" : self.on_update_clicked, "on_marriageUpdateBtn_clicked" : self.on_update_clicked,
"on_photolist_button_press_event" : self.gallery.on_button_press_event, "on_photolist_button_press_event" : self.gallery.on_button_press_event,
"on_photolist_select_icon" : self.gallery.on_photo_select_icon, "on_photolist_select_icon" : self.gallery.on_photo_select_icon,
"on_event_button_press" : self.event_double_click,
"on_attr_button_press" : self.attr_double_click,
"on_update_attr_clicked" : self.on_update_attr_clicked, "on_update_attr_clicked" : self.on_update_attr_clicked,
}) })
@ -447,6 +449,10 @@ class Marriage:
EventEdit.EventEditor(self,name,const.marriageEvents, EventEdit.EventEditor(self,name,const.marriageEvents,
const.save_pevent,None,None,0,self.cb) const.save_pevent,None,None,0,self.cb)
def event_double_click(self,obj,event):
if event.button == 1 and event.type == _2BUTTON_PRESS:
self.on_update_clicked(obj)
def on_update_clicked(self,obj): def on_update_clicked(self,obj):
import EventEdit import EventEdit
if len(obj.selection) <= 0: if len(obj.selection) <= 0:
@ -491,6 +497,10 @@ class Marriage:
self.attr_src_field.set_text('') self.attr_src_field.set_text('')
self.attr_conf_field.set_text('') self.attr_conf_field.set_text('')
def attr_double_click(self,obj,event):
if event.button == 1 and event.type == _2BUTTON_PRESS:
self.on_update_attr_clicked(obj)
def on_update_attr_clicked(self,obj): def on_update_attr_clicked(self,obj):
import AttrEdit import AttrEdit
if len(obj.selection) > 0: if len(obj.selection) > 0:

View File

@ -4,5 +4,5 @@ then
mv po/template.po po/template.po.bak mv po/template.po po/template.po.bak
fi fi
./get_strings -o po/template.po *.py */*.py *.glade */*.glade ./get_strings -o po/template.po `cat filelist`

View File

@ -531,6 +531,12 @@ French
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_src_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00
GMT</last_modification_time>
</signal>
<widget> <widget>
<class>GtkHBox</class> <class>GtkHBox</class>
@ -1109,6 +1115,12 @@ French
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_src_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00
GMT</last_modification_time>
</signal>
<widget> <widget>
<class>GtkHBox</class> <class>GtkHBox</class>
@ -2289,6 +2301,12 @@ French
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_src_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00
GMT</last_modification_time>
</signal>
<widget> <widget>
<class>GtkHBox</class> <class>GtkHBox</class>
@ -3297,6 +3315,12 @@ French
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_src_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00
GMT</last_modification_time>
</signal>
<widget> <widget>
<class>GtkHBox</class> <class>GtkHBox</class>

View File

@ -142,8 +142,8 @@ class OpenDrawDoc(DrawDoc):
if os.path.isfile(self.filename): if os.path.isfile(self.filename):
os.unlink(self.filename) os.unlink(self.filename)
os.system("cd " + self.tempdir + "; " + const.zipcmd + " " \ os.system("cd '" + self.tempdir + "'; " + const.zipcmd + " '" \
+ self.filename + " .") + self.filename + "' .")
os.unlink(self.tempdir + os.sep + "META-INF" + os.sep + "manifest.xml") os.unlink(self.tempdir + os.sep + "META-INF" + os.sep + "manifest.xml")
os.unlink(self.tempdir + os.sep + "content.xml") os.unlink(self.tempdir + os.sep + "content.xml")

View File

@ -307,7 +307,7 @@ class OpenOfficeDoc(TextDoc):
if os.path.isfile(self.filename): if os.path.isfile(self.filename):
os.unlink(self.filename) os.unlink(self.filename)
os.system("cd %s; %s %s ." % (self.tempdir,const.zipcmd,self.filename)) os.system("cd '%s'; %s '%s' ." % (self.tempdir,const.zipcmd,self.filename))
os.unlink(self.tempdir + os.sep + "META-INF" + os.sep + "manifest.xml") os.unlink(self.tempdir + os.sep + "META-INF" + os.sep + "manifest.xml")
os.unlink(self.tempdir + os.sep + "content.xml") os.unlink(self.tempdir + os.sep + "content.xml")

View File

@ -895,6 +895,11 @@
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_event_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00 GMT</last_modification_time>
</signal>
<child> <child>
<padding>0</padding> <padding>0</padding>
<expand>True</expand> <expand>True</expand>
@ -1395,6 +1400,11 @@
<name>select_row</name> <name>select_row</name>
<handler>on_attr_list_select_row</handler> <handler>on_attr_list_select_row</handler>
<last_modification_time>Sat, 02 Jun 2001 18:58:35 GMT</last_modification_time> <last_modification_time>Sat, 02 Jun 2001 18:58:35 GMT</last_modification_time>
</signal>
<signal>
<name>button_press_event</name>
<handler>on_attr_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00 GMT</last_modification_time>
</signal> </signal>
<columns>3</columns> <columns>3</columns>
<column_widths>200,250,50</column_widths> <column_widths>200,250,50</column_widths>

File diff suppressed because it is too large Load Diff

View File

@ -770,6 +770,12 @@ Very High
<selection_mode>GTK_SELECTION_SINGLE</selection_mode> <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles> <show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type> <shadow_type>GTK_SHADOW_IN</shadow_type>
<signal>
<name>button_press_event</name>
<handler>on_src_button_press</handler>
<last_modification_time>Thu, 14 Nov 2002 20:51:00
GMT</last_modification_time>
</signal>
<widget> <widget>
<class>GtkHBox</class> <class>GtkHBox</class>