preparing GUI

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@360 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 12 years ago
parent 11302a6c54
commit 0a26e25a3e

@ -88,10 +88,12 @@ def main():
if i.filename == unicode('%s/%s' % (startdate.strftime('%Y/%m/%d'), img_saved_as), 'utf-8'):
if str(i.file_size) == img_size:
ok = True
elif i.file_size == 0:
error = 'empty'
else:
print i.file_size, img_size
error = 'corrupt'
error = 'corrupt (%s of %s bytes)' % (i.file_size, img_size)
if not ok:
print img_name, img_saved_as, error
errors.append([img_saved_as, error])
if errors:
print 'This .zip contains errors:'

@ -0,0 +1,20 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2011-2012 WikiTeam
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import Tkinter
import ttk
Loading…
Cancel
Save