Merge lp:~rconradharris/glance/use_datetime_obj into lp:~hudson-openstack/glance/trunk
Proposed by
Rick Harris
Status: | Merged |
---|---|
Approved by: | Jay Pipes |
Approved revision: | 29 |
Merged at revision: | 28 |
Proposed branch: | lp:~rconradharris/glance/use_datetime_obj |
Merge into: | lp:~hudson-openstack/glance/trunk |
Diff against target: |
394 lines (+68/-77) 11 files modified
glance/client.py (+1/-1) glance/common/db/__init__.py (+0/-1) glance/common/wsgi.py (+5/-5) glance/registry/__init__.py (+1/-1) glance/registry/db/sqlalchemy/api.py (+37/-33) glance/registry/db/sqlalchemy/models.py (+3/-17) glance/registry/server.py (+7/-8) glance/server.py (+10/-7) glance/store/filesystem.py (+2/-2) glance/store/http.py (+1/-1) glance/store/swift.py (+1/-1) |
To merge this branch: | bzr merge lp:~rconradharris/glance/use_datetime_obj |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Review via email: mp+44493@code.launchpad.net |
Description of the change
Converts timestamp attributes to datetime objects before persisting.
Refactors image_update and image_create to use the same basic code.
To post a comment you must log in.
Hi!
Good stuff, Rick :) Couple quick comments:
* Please add a test case for this... easy enough to change the stub_out_db_api stuff to have (one or more) of the FIXTURES have a string datetime instead of datetime. datetime. utcnow( )...
* Please pep8 check:
** No spaces before docstring comments so """ Used internally by image_create and image_update """
should be """Used internally by image_create and image_update""" or
"""
Used internally by image_create and image_update
"""
** No newlines at end of file
** Two newlines between each module-level object and also after import statements
Cheers!
jay