Skip to content

Commit

Permalink
core: cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Aug 23, 2010
1 parent 7edb088 commit fe0f363
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 32 deletions.
5 changes: 1 addition & 4 deletions amsn2/__init__.py
@@ -1,5 +1,2 @@
import amsn2.core
import amsn2.backend
import amsn2.ui
import amsn2.protocol
#load available front ends
import amsn2.ui.front_ends
13 changes: 6 additions & 7 deletions amsn2/core/__init__.py
@@ -1,7 +1,6 @@

from amsn import *
from lang import *
from config import *
from contactlist_manager import *
from account_manager import *
from personalinfo_manager import *
from amsn import aMSNCore
from config import aMSNConfig
from contactlist_manager import aMSNContactListManager, aMSNContact, aMSNBaseGroup, aMSNPapyonGroup, aMSNPresenceGroup
from account_manager import aMSNAccountManager, aMSNAccount
from personalinfo_manager import aMSNPersonalInfoManager
from userinterface_manager import aMSNUserInterfaceManager
5 changes: 2 additions & 3 deletions amsn2/core/amsn.py
Expand Up @@ -24,9 +24,8 @@

from amsn2 import protocol
from amsn2.backend import aMSNBackendManager
from amsn2.views import *
from account_manager import *
from contactlist_manager import *
from account_manager import aMSNAccount, aMSNAccountManager
from contactlist_manager import aMSNContactListManager
from conversation_manager import *
from oim_manager import *
from theme_manager import *
Expand Down
2 changes: 1 addition & 1 deletion amsn2/core/contactlist_manager.py
Expand Up @@ -574,7 +574,7 @@ def fill(self):
self.contacts = set([ c.id for c in contacts])
self.contacts_online = set([c.id for c in contacts if c.presence != papyon.Presence.OFFLINE])

class aMSNPreseceGroup(aMSNBaseGroup):
class aMSNPresenceGroup(aMSNBaseGroup):
""" Group which holds the contacts according to their status """
def __init__(self, core):
aMSNBaseGroup.__init__(self, core)
Expand Down
2 changes: 1 addition & 1 deletion amsn2/core/personalinfo_manager.py
@@ -1,4 +1,4 @@
from amsn2.views import *
from amsn2.views import PersonalInfoView

class aMSNPersonalInfoManager:
def __init__(self, core):
Expand Down
2 changes: 1 addition & 1 deletion amsn2/core/userinterface_manager.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from amsn2.views import *
from amsn2.views import ImageView, AccountView

import logging
logger = logging.getLogger('amsn2.ui_manager')
Expand Down
18 changes: 9 additions & 9 deletions amsn2/views/__init__.py
@@ -1,9 +1,9 @@
from contactlistview import *
from keybindingview import *
from menuview import *
from stringview import *
from tooltipview import *
from messageview import *
from imageview import *
from accountview import *
from personalinfoview import *
from stringview import StringView
from imageview import ImageView
from menuview import MenuItemView, MenuView
from keybindingview import KeyBindingView
from contactlistview import ContactListView, GroupView, ContactView, ContactPopupMenu, GroupPopupMenu
from tooltipview import TooltipView
from messageview import MessageView
from accountview import AccountView
from personalinfoview import PersonalInfoView
4 changes: 2 additions & 2 deletions amsn2/views/accountview.py
@@ -1,6 +1,6 @@

from imageview import *
from stringview import *
from imageview import ImageView
from stringview import StringView

class AccountView:
def __init__(self, core, email):
Expand Down
7 changes: 3 additions & 4 deletions amsn2/views/contactlistview.py
@@ -1,6 +1,6 @@
from stringview import *
from imageview import *
from menuview import *
from stringview import StringView
from imageview import ImageView
from menuview import MenuView

class ContactListView:
def __init__(self):
Expand All @@ -10,7 +10,6 @@ def __repr__(self):
return "<ContactListView {group_ids=%s}>" \
% (repr(self.group_ids),)


class GroupView:
def __init__(self, core, amsn_group):
self.uid = amsn_group.id
Expand Down

0 comments on commit fe0f363

Please sign in to comment.