Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2009, 2010, 2011 Rickard Lindberg, Roger Lindberg 2 # 3 # This file is part of Timeline. 4 # 5 # Timeline is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Timeline is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Timeline. If not, see <http://www.gnu.org/licenses/>. 17 18 19 from timelinelib.db.exceptions import TimelineIOError 20 21235625 self.main_frame = main_frame 26 self.db_open_fn = db_open_fn 27 self.config = config 28 self.timeline = None2931 input_files = application_arguments.get_files() 32 if len(input_files) == 0: 33 ro = self.config.get_recently_opened() 34 if self.config.get_open_recent_at_startup() and len(ro) > 0: 35 self.main_frame.open_timeline_if_exists(ro[0]) 36 else: 37 for input_file in input_files: 38 self.main_frame.open_timeline(input_file)3941 try: 42 self.timeline = self.db_open_fn(path, self.config.get_use_wide_date_range()) 43 except TimelineIOError, e: 44 self.main_frame.handle_db_error(e) 45 else: 46 self.config.append_recently_opened(path) 47 self.main_frame._update_open_recent_submenu() 48 self.main_frame._display_timeline(self.timeline)49 53
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:56:29 2013 | http://epydoc.sourceforge.net |