Info in "about Leo" pane outdated

Bug #1175652 reported by Jake Peck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Fix Released
Medium
Edward K. Ream

Bug Description

Running the command `about-leo` or doing Help -> About Leo reports copyright 1999-2012. That should be 1999-2013. Perhaps the final year could be replaced by `datetime.date.today().year`?

Revision history for this message
Jake Peck (gatesphere) wrote :

The offending code is in:
LeoPy.leo -> Code -> Core Classes -> @file leoCommands.py -> class commands -> Command handlers... -> help menu -> about

The following code *should* fix it:

----
def about (self,event=None):

    '''Bring up an About Leo Dialog.'''
   import datetime

    c = self

    # Don't use triple-quoted strings or continued strings here.
    # Doing so would add unwanted leading tabs.
    version = g.app.signon + '\n\n'
    theCopyright = (
        "Copyright 1999-%d by Edward K. Ream\n" +
        "All Rights Reserved\n" +
        "Leo is distributed under the MIT License" % datetime.date.today().year)
    url = "http://webpages.charter.net/edreamleo/front.html"
    email = "<email address hidden>"

    g.app.gui.runAboutLeoDialog(c,version,theCopyright,url,email)
----

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 1175652] [NEW] Info in "about Leo" pane outdated

On Thu, May 2, 2013 at 10:31 AM, Jake Peck <email address hidden>wrote:

> Public bug reported:
>
> Running the command `about-leo` or doing Help -> About Leo reports
> copyright 1999-2012. That should be 1999-2013. Perhaps the final year
> could be replaced by `datetime.date.today().year`?
>

Cute. Thanks for the idea, and the code. I'll fix it before the next
release.

Edward

Changed in leo-editor:
milestone: none → 4.11-b1
assignee: nobody → Edward K. Ream (edreamleo)
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Edward K. Ream (edreamleo) wrote :

The fix you suggest is on the trunk at rev 5930.

Changed in leo-editor:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.