DECA-234: Replace lastModified with os.path.getmtime

Metadata

Source
DECA-234
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2012-02-06T13:29:28.843-0500
Updated
2012-05-18T14:22:36.601-0400
Versions
N/A
Fixed Versions
  1. 0.5
Component
  1. Server

Description

Currently pdf.py has a function, lastModified, that uses os.stat to determine the modification time. This should be switched to os.path.getmtime, which already does this in a single function call and returns a more accurate time.

Comments

  • Justin Obara commented 2012-02-06T13:56:12.834-0500

    The pdf.py code has been updated to remove the lastModified function and replace its usage with os.path.getmtime. The unit tests were also updated.

    The changes are in my bitbucket repo
    https://bitbucket.org/jobara/decapod-server-response

  • Justin Obara commented 2012-05-18T14:22:33.528-0400

    Merged into the project repo