~azzar1/unity/add-show-desktop-key

  • Committer: mattgiuca
  • Date: 2008-03-07 15:12:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:669
Timestamps are now stored within the program as Python "time" module's
    "struct_time" objects, rather than strings directly from the DB.
    They are parsed into struct_time objects when reading from the db.
    They are formatted into SQL Timestamp strings when writing to the db.
    This allows them to be manipulated and compared within the program.

common.db: _escape now accepts struct_time objects - it formats them into SQL
            time strings.
common.user: The User constructor now parses "acct_exp", "pass_exp" and
            "last_login" fields as timestamp strings, and stores them
            internally as struct_time.
tutorialservice: When recording a submission, the "date" field is now stored
            as a struct_time, not a formatted string.
login.py: When logging in, uncommented call to write last_login to the DB,
            passing the current local time. (This now works correctly).
            Note that this is done after retrieving the user details, so the
            value of last_login stored in the session is the _old_ last login,
            not the new one (this is intentional).

(With Tom Conway).
Filename Latest Rev Last Changed Committer Comment Size
..
forum_data.sql 624 17 years ago dcoles forum: Removed the subsilver2 style and phpBB inst 68.3 KB Diff Download File
forum_schema.sql 624 17 years ago dcoles forum: Removed the subsilver2 style and phpBB inst 46.2 KB Diff Download File
query.py 25 17 years ago drtomc A bit more work on the userdb stuff. 927 bytes Diff Download File
README 25 17 years ago drtomc A bit more work on the userdb stuff. 211 bytes Diff Download File
users.png 447 17 years ago stevenbird graphic for user database schema 52.6 KB Diff Download File
users.sql 665 16 years ago drtomc userdb: Add a submission table, as per our discuss 5.4 KB Diff Download File
users.vpp 447 17 years ago stevenbird graphic for user database schema 80.1 KB Diff Download File