* src/EditPlace.py: Add url_edit_callback() and pass it on to UrlEdit

when clicked on Add or Edit in Place's Url list.


svn: r1712
This commit is contained in:
Alex Roitman 2003-06-12 03:20:05 +00:00
parent 6ffc56ad15
commit e25bd4561c
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,8 @@
2003-06-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/EditPlace.py (on_switch_page): Fix page numbers to enable proper
loading of gallery and references.
* src/EditPlace.py: Add url_edit_callback() and pass it on to UrlEdit
when clicked on Add or Edit in Place's Url list.
2003-06-11 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/BookReport.py (Book.pop_item): Add missing return

View File

@ -297,7 +297,7 @@ class EditPlace:
name = _("Internet Address Editor for %s") % self.place.get_title()
else:
name = _("Internet Address Editor")
UrlEdit.UrlEditor(self,name,url)
UrlEdit.UrlEditor(self,name,url,self.url_edit_callback)
def on_update_loc_clicked(self,obj):
import LocEdit
@ -324,7 +324,10 @@ class EditPlace:
name = _("Internet Address Editor for %s") % self.place.get_title()
else:
name = _("Internet Address Editor")
UrlEdit.UrlEditor(self,name,None)
UrlEdit.UrlEditor(self,name,None,self.url_edit_callback)
def url_edit_callback(self,url):
self.redraw_url_list()
def on_add_loc_clicked(self,obj):
import LocEdit