Skip to content

Commit

Permalink
renamed utils back to lib as find myself not finding my way around
Browse files Browse the repository at this point in the history
  • Loading branch information
Toms Bauģis committed Dec 5, 2010
1 parent 053cf3b commit 7eb4eb9
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ src/hamster/preferences.py
src/hamster/reports.py
src/hamster-time-tracker
src/hamster/stats.py
src/hamster/utils/stuff.py
src/hamster/lib/stuff.py
src/hamster/widgets/reportchooserdialog.py
src/hamster/widgets/timechart.py
2 changes: 1 addition & 1 deletion src/docky_control/2.0/hamster_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


from hamster import client
from hamster.utils import stuff, i18n
from hamster.lib import stuff, i18n
i18n.setup_i18n()


Expand Down
2 changes: 1 addition & 1 deletion src/docky_control/2.1/hamster_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


from hamster import client
from hamster.utils import stuff, i18n
from hamster.lib import stuff, i18n
i18n.setup_i18n()


Expand Down
2 changes: 1 addition & 1 deletion src/hamster-applet
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if __name__ == "__main__":
format = log_format)

try:
from hamster.utils import i18n
from hamster.lib import i18n
i18n.setup_i18n()

from hamster.configuration import runtime, dialogs
Expand Down
4 changes: 2 additions & 2 deletions src/hamster-cli
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import re
import datetime as dt

from hamster import client
from hamster.utils import stuff
from hamster.lib import stuff

class ConfigurationError(Exception):
'''An error of configuration.'''
Expand Down Expand Up @@ -203,7 +203,7 @@ def fact_dict(fact_data, with_date):


if __name__ == '__main__':
from hamster.utils import i18n
from hamster.lib import i18n
i18n.setup_i18n()

usage = _(
Expand Down
2 changes: 1 addition & 1 deletion src/hamster-service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if "org.gnome.Hamster" in dbus.SessionBus().list_names():


if __name__ == '__main__':
from hamster.utils import i18n
from hamster.lib import i18n
i18n.setup_i18n()

from hamster import db
Expand Down
4 changes: 2 additions & 2 deletions src/hamster-time-tracker
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class WindowServer(dbus.service.Object):


if __name__ == "__main__":
from hamster.utils import i18n
from hamster.lib import i18n
i18n.setup_i18n()

# determine the window we will be launching
Expand Down Expand Up @@ -522,7 +522,7 @@ if __name__ == "__main__":
gtk.window_set_default_icon_name("hamster-applet")

from hamster import widgets, idle
from hamster.utils import stuff, trophies
from hamster.lib import stuff, trophies

try:
import wnck
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from configuration import conf, runtime, dialogs, load_ui_file

import widgets, idle
from utils import stuff, trophies
from lib import stuff, trophies

try:
import wnck
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from calendar import timegm
import dbus, dbus.mainloop.glib
import gobject
from utils import stuff, trophies
from lib import stuff, trophies



Expand Down
2 changes: 1 addition & 1 deletion src/hamster/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import gio
from xdg.BaseDirectory import xdg_data_home

from utils import stuff, trophies
from lib import stuff, trophies

class Storage(storage.Storage):
con = None # Connection will be created on demand
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/edit_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""
import widgets
from configuration import runtime, conf, load_ui_file
from utils import stuff
from lib import stuff

class CustomFactController:
def __init__(self, parent = None, fact_date = None, fact_id = None):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/hamster/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

import widgets, reports
from configuration import runtime, conf, dialogs, load_ui_file
from utils import stuff, trophies
from utils.i18n import C_
from lib import stuff, trophies
from lib.i18n import C_

from overview_activities import OverviewBox
from overview_totals import TotalsBox
Expand Down
4 changes: 2 additions & 2 deletions src/hamster/overview_activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

import widgets
from configuration import runtime, dialogs
from utils import stuff, trophies
from utils.i18n import C_
from lib import stuff, trophies
from lib.i18n import C_


class OverviewBox(gtk.VBox):
Expand Down
4 changes: 2 additions & 2 deletions src/hamster/overview_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

import widgets, reports
from configuration import runtime, dialogs, load_ui_file
from utils import stuff, charting
from utils.i18n import C_
from lib import stuff, charting
from lib.i18n import C_


class TotalsBox(gtk.VBox):
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self):

from configuration import runtime, conf, load_ui_file
import widgets
from utils import stuff, trophies
from lib import stuff, trophies

class PreferencesEditor:
TARGETS = [
Expand Down
4 changes: 2 additions & 2 deletions src/hamster/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
from string import Template

from configuration import runtime
from utils import stuff, trophies
from utils.i18n import C_
from lib import stuff, trophies
from lib.i18n import C_

from calendar import timegm

Expand Down
4 changes: 2 additions & 2 deletions src/hamster/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
import pango

import widgets
from utils import stuff, charting, graphics
from lib import stuff, charting, graphics
from configuration import runtime, conf, load_ui_file

from utils.i18n import C_
from lib.i18n import C_

class Stats(object):
def __init__(self, parent = None):
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/activityentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import datetime as dt

from ..configuration import runtime
from ..utils import stuff, graphics
from ..lib import stuff, graphics
from .. import external

class ActivityEntry(gtk.Entry):
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/dayline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import time
import datetime as dt

from ..utils import stuff, graphics, pytweener
from ..lib import stuff, graphics, pytweener
from ..configuration import conf


Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/facttree.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import cairo
import datetime as dt

from ..utils import stuff, graphics
from ..lib import stuff, graphics
from tags import Tag

import pango
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/rangepick.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.

from ..utils import stuff
from ..lib import stuff
from ..configuration import load_ui_file

import gtk, gobject, pango
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import pango, cairo
from math import pi

from ..utils import graphics, stuff
from ..lib import graphics, stuff
from ..configuration import runtime

class TagsEntry(gtk.Entry):
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/timechart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os # for locale
import gobject, gtk, pango

from ..utils import graphics, stuff
from ..lib import graphics, stuff

import time, datetime as dt
import calendar
Expand Down
2 changes: 1 addition & 1 deletion src/hamster/widgets/timeinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.

from ..utils.stuff import format_duration
from ..lib.stuff import format_duration
import gtk
from gtk import keysyms
import datetime as dt
Expand Down
2 changes: 1 addition & 1 deletion tests/stuff_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))

import unittest
from hamster.utils import stuff
from hamster.lib import stuff

class TestActivityInputParsing(unittest.TestCase):
def test_plain_name(self):
Expand Down
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def build(bld):

bld.install_files('${PYTHONDIR}/hamster', 'src/hamster/*.py')
bld.install_files('${PYTHONDIR}/hamster/widgets', 'src/hamster/widgets/*.py')
bld.install_files('${PYTHONDIR}/hamster/utils', 'src/hamster/utils/*.py')
bld.install_files('${PYTHONDIR}/hamster/lib', 'src/hamster/lib/*.py')

bld.install_files('${DATADIR}/docky/helpers',
'src/docky_control/2.0/hamster_control.py',
Expand Down

0 comments on commit 7eb4eb9

Please sign in to comment.