Package: pydf
Version: 9
Severity: normal

This works fine:

normal_colour = 'default'

And this:

normal_colour = 'white'

But this:

normal_colour = 'white', 'on_black'

Causes crash:

% pydf -h
Filesystem                 | Size| Used|Avail|Use%||Mounted on      Traceback 
(most recent call last):
  File "/usr/bin/pydf", line 644, in <module>
    display_table(table, terminal_width)
  File "/usr/bin/pydf", line 548, in display_table
    out(colours[normal_colour])
KeyError: ('white', 'on_black')
[1]    22736 exit 1     pydf -h


This works fine:

header_colour = 'yellow', 'on_black'

But any attributes (for exmaple bolding and underlining) added to any
setting makes that attribute to leak to every line after that line it
affect. Just try out, what happens with this:

header_colour = 'yellow', 'on_black', 'bold', 'underline'

It makes all lines underlined and bolded.


-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-proposed-updates'), (500, 
'proposed-updates'), (101, 'testing'), (99, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pydf depends on:
ii  python                        2.5.4-9    An interactive high-level object-o

pydf recommends no packages.

pydf suggests no packages.

-- no debconf information

-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to