Your message dated Mon, 01 Feb 2010 19:18:46 +0000
with message-id <[email protected]>
and subject line Bug#562612: fixed in luma 2.4-3
has caused the Debian Bug report #562612,
regarding luma: addressbook plugin unusable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
562612: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562612
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: luma
Version: 2.4-2
Severity: normal
Tags: patch

Hi,

when trying to use the addressbook plugin in luma 2.4-2, luma throws an 
unhandled exception:

  16:27:48   An unhandled exception occured. This is most likely a bug 
  in the programming of Luma. In order to fix this, send an email with the 
  following text and a detailed description of what you were doing to
  [email protected].
    File "/usr/lib/luma/base/utils/gui/LumaEntryBrowser.py", line 339, in 
listItemClicked
      self.emit(PYSIGNAL("about_to_change"), ())
    File "/usr/lib/luma/plugins/addressbook/AddressbookWidget.py", line 684, in 
aboutToChange
      if not self.EDITED:
  Reason: <type 'exceptions.AttributeError'> 'AddressbookWidget' object has no 
attribute 'EDITED'

that probibits displaying the addressbook details

The attached patch makes the addressbook usable (at least for reading -
I did not yet dare to change an entry in my directory ;-)

Thanks for maintaining luma in Debian
Peter

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages luma depends on:
ii  python                        2.5.4-4    An interactive high-level object-o
ii  python-ldap                   2.3.10-1   LDAP interface module for Python
ii  python-qt3                    3.18.1-2   Qt3 bindings for Python
ii  python-support                1.0.6      automated rebuilding support for P

luma recommends no packages.

luma suggests no packages.

-- no debconf information
#! /bin/sh /usr/share/dpatch/dpatch-run
## luma-2.4-addressbook.patch
## DP: make addressbook workable (at least for reading)
# From: Peter Marschall <[email protected]>
# Subject: make addressbook workable (at least for reading)


--- luma-2.4/lib/luma/plugins/addressbook/AddressbookWidget.py
+++ luma-2.4/lib/luma/plugins/addressbook/AddressbookWidget.py
@@ -86,6 +86,7 @@ class AddressbookWidget(AddressbookWidge
         self.DISABLED = 1
         self.ENABLE_SAVE = False
         self.DIALOG_MODE = False
+	self.setEdited(False);
         
         self.addressID = 0
 
@@ -197,11 +198,13 @@ class AddressbookWidget(AddressbookWidge
                 self.noteEdit.setText(value)
                 
             if x == 'birthDate':
-                tmpList = self.dataObject.getAttributeValue(x, 0).split('-')
+                tmpDate = self.dataObject.getAttributeValue(x, 0).split(' ')
+                tmpList = tmpDate[0].split('-')
                 self.birthDateEdit.setDate(QDate(int(tmpList[0]), int(tmpList[1]), int(tmpList[2])))
                 
             if x == 'anniversary':
-                tmpList = self.dataObject.getAttributeValue(x, 0).split('-')
+                tmpDate = self.dataObject.getAttributeValue(x, 0).split(' ')
+                tmpList = tmpdate[0].split('-')
                 self.birthDateEdit.setDate(QDate(int(tmpList[0]), int(tmpList[1]), int(tmpList[2])))
                 
         self.addressID = 0
@@ -210,6 +213,7 @@ class AddressbookWidget(AddressbookWidge
         # PATCH
         #self.ENABLE_SAVE = True
         #self.setSaveButton()
+	self.setEdited(False);
     
 ###############################################################################
 
@@ -270,7 +274,7 @@ class AddressbookWidget(AddressbookWidge
                 if (sureNamePosition-givenNamePosition) > 1:
                     middleName = " ".join(tmpList[givenNamePosition+1 : sureNamePosition])
             
-            
+        edited = self.EDITED    
             
         dialog.lastEdit.setText(sn)
         if not givenName == None:
@@ -281,7 +285,10 @@ class AddressbookWidget(AddressbookWidge
             dialog.titleBox.setCurrentText(title)
         if not middleName == None:
             dialog.middleEdit.setText(middleName)
-        
+
+	if not edited:
+	    self.setEdited(False);
+
         dialog.exec_loop()
         
         
@@ -394,7 +401,7 @@ class AddressbookWidget(AddressbookWidge
         # PATCH
         #self.ENABLE_SAVE = False
         #self.setSaveButton()
-        self.EDITED = False
+        #self.EDITED = False
         self.setEdited(False)
                 
 ###############################################################################
--- luma-2.4/lib/luma/plugins/addressbook/AddressbookView.py
+++ luma-2.4/lib/luma/plugins/addressbook/AddressbookView.py
@@ -42,7 +42,7 @@ class AddressbookView(QWidget):
         self.connect(self.entryList, PYSIGNAL("about_to_change"), self.addressBookWidget.aboutToChange)
         # PATCH
         #self.connect(self.entryList, PYSIGNAL("ldap_result"), self.addressBookWidget.initView)
-        self.connect(self.entryList, PYSIGNAL("about_to_change"), self.addressBookWidget.aboutToChange)
+        #self.connect(self.entryList, PYSIGNAL("about_to_change"), self.addressBookWidget.aboutToChange)
         self.connect(self.entryList, PYSIGNAL("ldap_result"), self.addressBookWidget.initView)
 
         self.connect(self.entryList, PYSIGNAL("server_changed"), self.addressBookWidget.serverChanged)

--- End Message ---
--- Begin Message ---
Source: luma
Source-Version: 2.4-3

We believe that the bug you reported is fixed in the latest version of
luma, which is due to be installed in the Debian FTP archive:

luma_2.4-3.debian.tar.gz
  to main/l/luma/luma_2.4-3.debian.tar.gz
luma_2.4-3.dsc
  to main/l/luma/luma_2.4-3.dsc
luma_2.4-3_all.deb
  to main/l/luma/luma_2.4-3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Per Wawra <[email protected]> (supplier of updated luma package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 19 Jan 2010 00:00:00 +0100
Source: luma
Binary: luma
Architecture: source all
Version: 2.4-3
Distribution: unstable
Urgency: low
Maintainer: Per Wawra <[email protected]>
Changed-By: Per Wawra <[email protected]>
Description: 
 luma       - gui utility for accessing and managing LDAP database
Closes: 562612 562614 562615
Changes: 
 luma (2.4-3) unstable; urgency=low
 .
   [ Peter Marschall ]
   * Patch added: Make addressbook readable. Closes: #562612
   * Patch added: Fix errors in schema viewer. Closes: #562614
   * Patch added: Improve search. Closes: #562615
 .
   [ Per Wawra ]
   * New maintainer
   * Switched to dpkg-source 3.0 (quilt) format
   * Switched patch system from dpatch to quilt
   * Updated all patches with DEP-3 compliant headers
   * Removed Build-Depends dpatch,
     because the package uses quilt now.
   * Removed Build-Depends-Indep python-dev,
     because it is only needed for arch-any packages.
   * Removed Build-Depends-Indep python-qt3 and python-ldap,
     because they are needed for running not for building.
   * Created a upstream changelog, since upstream does not include it
     in the source but on the webpage.
   * Removed Qt-Designer *.ui-Files from binary,
     because upstream already generated *.py files with pyuic.
Checksums-Sha1: 
 b336f543a154a87d3d9d99a2cc23c7de635b9766 1135 luma_2.4-3.dsc
 8cb620b916466cce0430173bd4e02ef8c2564c90 15849 luma_2.4-3.debian.tar.gz
 d2ca50146ca723457dd119cf60c3845df1bab0b6 678988 luma_2.4-3_all.deb
Checksums-Sha256: 
 7622250d527166f4559cdc3985305a6e6d3a7e8e51c752a14c5e7fe30132647f 1135 
luma_2.4-3.dsc
 4902b222697541937c2cba385a22e9363c4fb25820c9b3b506b390211e0fea4e 15849 
luma_2.4-3.debian.tar.gz
 a57a7050e490ddb58f03355a492703f12c227c3cf6bc1d8b732de5558dd759a4 678988 
luma_2.4-3_all.deb
Files: 
 ac800cdca0ee7f011d4d9675e1a1d9b6 1135 utils extra luma_2.4-3.dsc
 48226d2e24fe7d70865aff21b2eb08ba 15849 utils extra luma_2.4-3.debian.tar.gz
 67682a098c5bb2987f7de7fa0a2dfc40 678988 utils extra luma_2.4-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAktnKCYACgkQvQmfopLcAqk5sACdE1zjMSaLTuh1P4a259Q35GKK
pRsAn2BAZPwR8nqllRj0SRKzbmbIWDgW
=o88o
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to