Commit 21911580 authored by Gaute Hope's avatar Gaute Hope

removed editor.py, support.py, cleaned up debug messages in trunk, fixed...

removed editor.py, support.py, cleaned up debug messages in trunk, fixed confusing language messages for weekday expressions

svn path=/trunk/; revision=930
parent 2cc81b43
2007-11-20 Gaute Hope <eg@gaute.vetsj.com>
* Fixed some confusing expressions for weekday easy translations
* removed editor.py and support.py
* removed alot of debug messages
2007-11-10 Gaute Hope <eg@gaute.vetsj.com>
* Changed version number to 1.2.0
......
......@@ -11,7 +11,6 @@ src/at.py
src/crontab.py
src/crontabEditor.py
src/crontabEditorHelper.py
src/editor.py
src/gnome-schedule-applet.xml
src/gnome-schedule.glade
src/gnome-schedule.py
......@@ -19,7 +18,6 @@ src/lang.py
src/mainWindow.py
src/scheduleapplet.py
src/setuserWindow.py
src/support.py
src/addWindow.py
src/at.py
src/atEditor.py
......@@ -14,9 +14,7 @@ gnomeschedule_PYTHON = \
addWindow.py \
atEditor.py \
preset.py \
scheduleapplet.py \
editor.py \
support.py
scheduleapplet.py
uidir = $(datadir)/gnome-schedule
......
......@@ -96,31 +96,31 @@ class At:
if m == None:
m = self.atRecordRegex[3].match(line)
if m != None:
print "regexp: 3"
#print "regexp: 3"
regexp = 3
else:
m = self.atRecordRegex[2].match(line)
if m != None:
print "regexp: 2"
#print "regexp: 2"
regexp = 2
else:
m = self.atRecordRegex[1].match(line)
if m != None:
print "regexp: 1"
#print "regexp: 1"
regexp = 1
else:
# Exception
print "regexp: failed"
#print "regexp: failed"
return False
else:
regexp = 0
print "regexp: 0"
#print "regexp: 0"
if m != None:
print m.groups ()
#print m.groups ()
if regexp == 3:
job_id = m.groups ()[0]
......@@ -128,13 +128,13 @@ class At:
self.standard_locale ()
try:
dt = datetime.datetime.strptime (m.groups ()[1], "%a %b %d %H:%M:%S %Y")
print "datetime, first try succeseeded"
#print "datetime, first try succeseeded"
except:
try:
dt = datetime.datetime.strptime (m.groups ()[1], "%a %b %d %H:%M:%S %Y")
print "datetime, second try succseeded"
#print "datetime, second try succseeded"
except:
print "datetime failed to parse"
#print "datetime failed to parse"
self.restore_locale ()
return False
......@@ -510,7 +510,7 @@ class At:
#print _("added %(id)s") % { "id": job_id }
else:
print _("Warning: a line in atq's output didn't parse")
print data
#print data
return data
......
......@@ -120,12 +120,12 @@ class AtEditor:
self.NOACTION = False
def showedit (self, record, job_id, iter, mode):
print "showedit"
#print "showedit"
self.editing = True
self.NOACTION = True
self.job_id = job_id
self.date = self.ParentClass.treemodel.get_value(iter, 9)
print "got date: " + self.date
#print "got date: " + self.date
self.time = self.ParentClass.treemodel.get_value(iter, 12)
self.title = self.ParentClass.treemodel.get_value(iter, 0)
self.icon = self.ParentClass.treemodel.get_value(iter, 8)
......@@ -138,27 +138,27 @@ class AtEditor:
self.command = self.command[1:]
i = self.command.find ('\n', 0)
print "date: ", self.date, "time: ", self.time
#print "date: ", self.date, "time: ", self.time
#parse
(hour, minute, day, month, year) = self.__parse_time__(self.time, self.date)
print "runat"
#print "runat"
self.runat = self.time + " " + day + "." + month + "." + year
print "cal sel month"
#print "cal sel month"
self.calendar.select_month(int(month) - 1, int(year))
self.calendar.select_day(int(day))
self.hour_spinbutton.set_value(int(hour))
self.minute_spinbutton.set_value(int(minute))
self.widget.set_title(_("Edit a Scheduled Task"))
print "update textboxes"
#print "update textboxes"
self.__update_textboxes__ ()
self.parentiter = iter
self.widget.set_transient_for(self.ParentClass.widget)
self.widget.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
self.widget.show ()
print "reload templates"
#print "reload templates"
self.__reload_templates__ ()
self.NOACTION = False
print "showedit done"
#print "showedit done"
def on_worded_label_event (self, *args):
#TODO highlight on mouseover
pass
......
## IS NOT USED YET
# addWindow.py - UI code for adding a crontab record
# Copyright (C) 2004, 2005 Philip Van Hoof <me at pvanhoof dot be>
# Copyright (C) 2004, 2005 Gaute Hope <eg at gaute dot eu dot org>
# 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 2 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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02110-1301, USA.
class Editor:
def __init__(self, parent, schedule):
pass
def SaveTemplate (self, template_name):
raise 'Abstract method please override'
def showedit (self, record, linenumber, iter, mode):
raise 'Abstract method please override'
def showadd (self, mode):
raise 'Abstract method please override'
# Copyright (C) 2004, 2005 Philip Van Hoof <me at pvanhoof dot be>
# Copyright (C) 2004, 2005 Gaute Hope <eg at gaute dot eu dot org>
# 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 2 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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02110-1301, USA.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment