timekpr - Keep control of computer usage

timekpr-client can't start: attribute lastNotified missing

Reported by levu on 2011-04-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
timekpr
Medium
Unassigned
Stable
Medium
Unassigned

Bug Description

Package: timekpr
Versions:
0.3.2~ppa1~ubuntu2 (/var/lib/dpkg/status)

$ timekpr-client
Traceback (most recent call last):
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 279, in <module>
    tc = TimekprClient()
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 43, in __init__
    self.checkLimits()
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 148, in checkLimits
    self.notifier(_('Your time is up, you will be logged out in LESS than 2 minutes'))
  File "/usr/share/python-support/timekpr/timekpr-client.py", line 246, in notifier
    if (datetime.datetime.now() - self.lastNotified).seconds < 5:
AttributeError: TimekprClient instance has no attribute 'lastNotified'

In init:

Line 43: self.checkLimits()
Line 49: self.lastNotified = datetime.datetime.now()

(Patch attached)

levu (levu) wrote :
Changed in timekpr:
status: New → Fix Committed
tags: added: needs-testing
levu (levu) wrote :

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"

Savvas Radevic (medigeek) wrote :

@Even: Could you import it?
@levu: Thank you for the patch! :)

Changed in timekpr:
status: Fix Committed → Triaged
importance: Undecided → Medium
levu (levu) wrote :

Don't be confused: in the patch, the file in /usr is the file fixed by me and the one without absolute patch is the original one ;)

papukaija (papukaija) on 2011-05-27
tags: added: patch
tags: added: lucid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers