witten
/
luminotes
Archived
1
0
Fork 0

model.User.sql_update_access() now able to take either bool read_write value or Notebook.READ_* value.

This commit is contained in:
Dan Helfman 2008-11-04 12:22:44 -08:00
parent 7b7e7a6c73
commit 1889bf8a23
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ class User( Persistent ):
"""
return \
"update user_notebook set read_write = %s, owner = %s, own_notes_only = %s where user_id = %s and notebook_id = %s;" % (
quote( ( read_write != Notebook.READ_ONLY ) and 't' or 'f' ),
quote( ( read_write not in ( Notebook.READ_ONLY, False ) ) and 't' or 'f' ),
quote( owner and 't' or 'f' ),
quote( ( read_write == Notebook.READ_WRITE_FOR_OWN_NOTES ) and 't' or 'f' ),
quote( self.object_id ),