This commit is contained in:
Kovid Goyal 2010-08-22 09:31:23 -06:00
parent e322371900
commit ae62027732
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class PluginWidget(QWidget, Ui_Form):
('bib_entry', 0), #mixed ('bib_entry', 0), #mixed
('bibfile_enc', 0), #utf-8 ('bibfile_enc', 0), #utf-8
('bibfile_enctag', 0), #strict ('bibfile_enctag', 0), #strict
('impcit', True) ] ('impcit', True) ]
sync_enabled = False sync_enabled = False
formats = set(['bib']) formats = set(['bib'])
@ -52,7 +52,7 @@ class PluginWidget(QWidget, Ui_Form):
getattr(self, opt[0]).setText(opt_value) getattr(self, opt[0]).setText(opt_value)
def options(self): def options(self):
# Save the currently activated fields # Save the currently activated fields
fields = [] fields = []
for x in xrange(self.db_fields.count()): for x in xrange(self.db_fields.count()):
@ -66,7 +66,7 @@ class PluginWidget(QWidget, Ui_Form):
opts_dict = {'fields':[unicode(item.text()) for item in self.db_fields.selectedItems()]} opts_dict = {'fields':[unicode(item.text()) for item in self.db_fields.selectedItems()]}
else: else:
opts_dict = {'fields':['all']} opts_dict = {'fields':['all']}
# Save/return the current options # Save/return the current options
# bib_cit stores as text # bib_cit stores as text
# 'bibfile_enc','bibfile_enctag' stores as int (Indexes) # 'bibfile_enc','bibfile_enctag' stores as int (Indexes)
@ -78,7 +78,7 @@ class PluginWidget(QWidget, Ui_Form):
else : else :
opt_value = unicode(getattr(self, opt[0]).text()) opt_value = unicode(getattr(self, opt[0]).text())
gprefs.set(self.name + '_' + opt[0], opt_value) gprefs.set(self.name + '_' + opt[0], opt_value)
opts_dict[opt[0]] = opt_value opts_dict[opt[0]] = opt_value
return opts_dict return opts_dict

View File

@ -112,6 +112,6 @@ class cmd_commit(_cmd_commit):
server = xmlrpclib.ServerProxy(url) server = xmlrpclib.ServerProxy(url)
server.ticket.update(int(bug), msg, server.ticket.update(int(bug), msg,
{'status':'closed', 'resolution':'fixed'}, {'status':'closed', 'resolution':'fixed'},
False) notify=True)
bzrlib.commands.register_command(cmd_commit) bzrlib.commands.register_command(cmd_commit)