Skip to content
This repository was archived by the owner on Jul 22, 2019. It is now read-only.

bugfix: put newly added fields in _data #282

Closed
wants to merge 19 commits into from
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
15664f4
preparing for refactor
leesper Mar 10, 2016
6ed56f2
add regular user register
leesper Mar 10, 2016
9e8bc50
add login logout and verify powered by couchdb
leesper Mar 10, 2016
ff65a78
change code style according to Dirkjan's suggestions
leesper Mar 11, 2016
7f19d4a
add username/password authentication in verify_user()
leesper Mar 15, 2016
45a2ec8
bugfix login_user() raise UnAuthorized when username/password invalid
leesper Mar 18, 2016
d84527e
bugfix: handling Unauthorized and ServerError exceptions when verify …
leesper Mar 18, 2016
44aacf0
bugfix: when use post json, username and password should be put in ht…
leesper Mar 18, 2016
17180fa
add couchdb.Server.remove_user() and unit test for all user managemen…
leesper Mar 18, 2016
8172524
alter exception handling to pass continous-integration test
leesper Mar 18, 2016
2ee256d
alter login_user to pass continous-integration test
leesper Mar 18, 2016
5204a11
remove assertions
leesper Mar 18, 2016
bbb2058
remove headers= in function call
leesper Mar 18, 2016
c3d3d0b
1. use Exception instead of bare except; 2. add assertions in unit te…
leesper Mar 21, 2016
5f666a4
bugfix: add code to pass integration test when using python 3
leesper Mar 21, 2016
2100b42
print exception if occurred
leesper Mar 22, 2016
8f2d568
make more specific exception handling and remove print(e)
leesper Mar 23, 2016
913e084
merge from upstream, resolve conflicts
leesper Mar 24, 2016
d85f9f6
bugfix: truly initializing value for newly added fields
leesper Apr 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions couchdb/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def __get__(self, instance, owner):
if callable(default):
default = default()
value = default
if self.name in owner.__dict__.keys():
instance._data[self.name] = value
return value

def __set__(self, instance, value):
Expand Down