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

  • Committer: mattgiuca
  • Date: 2008-02-15 00:39:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:468
db.py: Epic Refactor.
Replaced all the user management methods with very generic methods that take
dictionaries and will work for any DB table. Essentially this now provides us
with a generic high-level database API.

Then put all the user management methods back in, as simple wrappers to the
generic methods.

The user management methods, however, have all had their interfaces changed.
They now take dictionaries of key:value pairs to be put in the DB instead of
arguments. This serves 2 purposes: firstly, it's MUCH easier to add new fields
now (2 or 3 points of control, down from about 7 points of control). Secondly,
it allows None (NULL in SQL) to be distinguished from omitted fields (this
particularly applies to update_user.

Notes: Preserved some of the changes (the self-closing object) from
    r466 [conway]. Most of these have been lost in the refactor, and are no
    longer necessary as dicts are now general (do not need to explicitly
    specify keys).

    I am committing this checkpoint even though it will break makeuser.
    Need to make major changes to that anyway, so it might as well be broken
    for the time being.
Filename Latest Rev Last Changed Committer Comment Size
..
doc 1 16 years ago drtomc An initial checkin. Diff
file-tools 405 16 years ago drtomc Version 0 of the file manipulation tools to allow Diff
home 400 16 years ago stevenbird first commit of homepage at ivle.sourceforge.net, Diff
lib 409 16 years ago mattgiuca Moved www/conf and www/common to a new directory l Diff
platform 1 16 years ago drtomc An initial checkin. Diff
problems 395 16 years ago mattgiuca Tutorial: split subjects directory into subjects a Diff
prototypes 9 16 years ago mattgiuca Added prototypes directory. Added ajax file browse Diff
scripts 418 16 years ago mattgiuca Renamed trunk/console to trunk/scripts. We are now Diff
subjects 313 16 years ago mattgiuca test/test_framework: Updated examples, a bit of be Diff
test 201 16 years ago mattgiuca Added "test" directory. Added make_date_test.py, a Diff
trampoline 144 16 years ago mattgiuca Trunk, and all subdirectories with Python files: Diff
userdb 25 16 years ago drtomc A bit more work on the userdb stuff. Diff
www 144 16 years ago mattgiuca Trunk, and all subdirectories with Python files: Diff
LICENSE.txt 7 16 years ago stevenbird GPL license 17.5 KB Diff Download File
File listusers.py 462 16 years ago mattgiuca userdb/users.sql: Added email field to login. Prop 1.3 KB Diff Download File
Makefile 103 16 years ago mattgiuca Fix to Makefile. 238 bytes Diff Download File
File makeuser.py 462 16 years ago mattgiuca userdb/users.sql: Added email field to login. Prop 2.5 KB Diff Download File
File remakeuser.py 418 16 years ago mattgiuca Renamed trunk/console to trunk/scripts. We are now 1.8 KB Diff Download File
File setup.py 467 16 years ago drtomc makeuser: Add some of the helper functions for act 38.6 KB Diff Download File