Hmm that line is part of an iterator that constructs all gtk.Labels in the info dialog. And for me it works like a charm so for now I presume the fault is in the description string.
That string is obtained as

repository._format.get_format_description()

Do you happen to know if 'Packs containing knits with rich root
support' is the full string that should be returned by a bzrlib repository object? It's a workingtree.branch.repository._format.get_format_description() to be precise.
Currently it just parses the description string in the label as

"exec gtk.Label('%s')"%descriptionstring

which goes well, except if the string has quotation marks as well I guess..

Jasper

Russel Winder wrote:
... can't get to Launchpad just now but this seems a bit a) critical;
and b) trivial.

Start Olive-GTK in a branch and then select Statistics|Info and:


Traceback (most recent call last):
  File "/home/users/russel/.bazaar/plugins/gtk/olive/__init__.py", line
680, in on_menuitem_stats_infos_activate
    info = InfoDialog(self.wt.branch)
  File "/home/users/russel/.bazaar/plugins/gtk/olive/info.py", line 220,
in __init__
    self._generate_info(infokeylist)
  File "/home/users/russel/.bazaar/plugins/gtk/olive/info.py", line 257,
in _generate_info
    exec "%s_%s = gtk.Label('%s')"%(key, subkey,
str(self.ret[key][subkey]))
  File "<string>", line 1
    format_repository = gtk.Label('Packs containing knits with rich root
support

^
SyntaxError: EOL while scanning single-quoted string



This is with bzr.dev and bzr-gtk from the latest branches as at
2008-07-28 12:44.


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
bzr-gtk mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.canonical.com/mailman/listinfo/bzr-gtk

Reply via email to