Пример #1
0
 def write_with_get(file_path, mode, page):
     try:
         writer.write(file_path, mode, page)
     except:
         clear_database(database)
         raise
     print_database(database)
     print "\n"
Пример #2
0
 def write_with_get(file_path, mode, page):
     try:
         writer.write(file_path, mode, page)
     except:
         clear_database(database)
         raise
     print_database(database)
     print "\n"
Пример #3
0
 def _write(self, file_path, mode, page=None):
     self._writer.write(file_path, mode, page)
     if self._debug:
         print "Write(%s):" % mode
         print_database(self._database)
         print ""