def get(self):
     from admin.dump import DataDump
     dump = DataDump()
     filename = dump.do_backup()
     status = 'Backing up to %s' % (filename)
     self.response.content_type = 'text/plain'
     self.response.write(status)
Exemple #2
0
 def get(self):
     from admin.dump import DataDump
     dump = DataDump()
     filename = dump.do_backup()
     status = 'Backing up to %s' % (filename)
     self.response.content_type = 'text/plain'
     self.response.write(status)
Exemple #3
0
    def post(self):
        template = JINJA_ENVIRONMENT.get_template('templates/backup/backup.html')
        dump = DataDump()
        filename = dump.do_backup()


        message = 'Backing up to %s' % (filename)
        self.response.write(template.render({'message': message, 'files': self.get_files() }))
Exemple #4
0
    def post(self):
        template = JINJA_ENVIRONMENT.get_template(
            'templates/backup/backup.html')
        dump = DataDump()
        filename = dump.do_backup()

        message = 'Backing up to %s' % (filename)
        self.response.write(
            template.render({
                'message': message,
                'files': self.get_files()
            }))