We don't commit the frame type because we are just using the object to store the same concepts and data, but otherwise do NOT want to persist it. TODO thoughts about making this concept more generic, and/or part of some logging thing...
(self)
| 1045 | return True |
| 1046 | |
| 1047 | def try_to_commit(self): |
| 1048 | """ |
| 1049 | We don't commit the frame type because we are |
| 1050 | just using the object to store the same concepts |
| 1051 | and data, but otherwise do NOT want to persist it. |
| 1052 | TODO thoughts about making this concept more generic, |
| 1053 | and/or part of some logging thing... |
| 1054 | """ |
| 1055 | |
| 1056 | if self.input and self.input.media_type == "frame": |
| 1057 | return |
| 1058 | |
| 1059 | try: |
| 1060 | self.session.commit() |
| 1061 | except: |
| 1062 | self.session.rollback() |
| 1063 | raise |
| 1064 | |
| 1065 | def read_raw_file(self): |
| 1066 | # Get Raw file |
no test coverage detected