[pybliographer] Display year only in GnomeUI.Index listview



commit 44a4ca160c91688ce551b43b375c8059172d48f4
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Apr 23 17:27:44 2013 -0700

    Display year only in GnomeUI.Index listview
    
    Signed-off-by: Germán Poo-Caamaño <gpoo gnome org>

 Pyblio/GnomeUI/Index.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Index.py b/Pyblio/GnomeUI/Index.py
index 8a35d03..ab9d2bb 100644
--- a/Pyblio/GnomeUI/Index.py
+++ b/Pyblio/GnomeUI/Index.py
@@ -349,6 +349,8 @@ class Index (Connector.Publisher):
                     
                     if Types.get_field (f).type == Fields.AuthorGroup:
                         text = join (map (lambda a: str (a.last), entry [f]), ', ')
+                    elif Types.get_field (f).type == Fields.Date:
+                        text = str (entry [f].year)
                     else:
                         text = str (entry [f])
                         


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]