Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 from datetime import datetime | 29 from datetime import datetime |
| 30 import logging | 30 import logging |
| 31 | 31 |
| 32 from google.appengine.ext import db | 32 from google.appengine.ext import db |
| 33 | 33 |
| 34 from ..model.datastorefile import DataStoreFile | 34 import model |
| 35 reload(model) | |
|
eseidel
2014/08/25 20:23:36
Is this needed?
ojan
2014/08/25 20:24:25
Whoops. Leftover from an earlier iteration.
| |
| 36 | |
| 37 from model.datastorefile import DataStoreFile | |
| 35 | 38 |
| 36 | 39 |
| 37 class TestFile(DataStoreFile): # pylint: disable=W0232 | 40 class TestFile(DataStoreFile): # pylint: disable=W0232 |
| 38 master = db.StringProperty() | 41 master = db.StringProperty() |
| 39 builder = db.StringProperty() | 42 builder = db.StringProperty() |
| 40 test_type = db.StringProperty() | 43 test_type = db.StringProperty() |
| 41 build_number = db.IntegerProperty() | 44 build_number = db.IntegerProperty() |
| 42 | 45 |
| 43 @property | 46 @property |
| 44 def file_information(self): # pragma: no cover | 47 def file_information(self): # pragma: no cover |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 return False | 141 return False |
| 139 | 142 |
| 140 self.date = datetime.now() | 143 self.date = datetime.now() |
| 141 self.put() | 144 self.put() |
| 142 | 145 |
| 143 return True | 146 return True |
| 144 | 147 |
| 145 def delete_all(self): # pragma: no cover | 148 def delete_all(self): # pragma: no cover |
| 146 self.delete_data() | 149 self.delete_data() |
| 147 self.delete() | 150 self.delete() |
| OLD | NEW |