Change document object API
Bug #1002855 reported by
Eric Casteleijn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB |
Fix Released
|
High
|
Eric Casteleijn |
Bug Description
1. Document objects shall have a .json property/method which always returns the up-to-date json string representation of the document
2. Document objects may have a .content property/method which always returns the up-to-date json object (dict/hashtable) representation of the document
Related branches
lp:~thisfred/u1db/json_vs_content
- Samuele Pedroni: Approve
-
Diff: 1280 lines (+264/-152)24 files modifiedinclude/u1db/u1db.h (+4/-4)
src/u1db.c (+23/-23)
src/u1db_http_sync_target.c (+2/-2)
u1db/__init__.py (+74/-8)
u1db/backends/__init__.py (+1/-1)
u1db/backends/inmemory.py (+8/-8)
u1db/backends/sqlite_backend.py (+10/-10)
u1db/commandline/client.py (+3/-4)
u1db/remote/http_app.py (+4/-3)
u1db/remote/http_database.py (+2/-2)
u1db/remote/http_target.py (+3/-1)
u1db/tests/__init__.py (+1/-2)
u1db/tests/c_backend_wrapper.pyx (+14/-15)
u1db/tests/commandline/test_client.py (+6/-6)
u1db/tests/test_backends.py (+16/-16)
u1db/tests/test_c_backend.py (+4/-4)
u1db/tests/test_document.py (+55/-10)
u1db/tests/test_http_app.py (+2/-2)
u1db/tests/test_http_database.py (+6/-3)
u1db/tests/test_remote_sync_target.py (+4/-4)
u1db/tests/test_sqlite_backend.py (+1/-1)
u1db/tests/test_sync.py (+10/-10)
u1todo/test_u1todo.py (+4/-4)
u1todo/u1todo.py (+7/-9)
Changed in u1db: | |
assignee: | nobody → Eric Casteleijn (thisfred) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in u1db: | |
status: | In Progress → Fix Committed |
Changed in u1db: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.