try to prevent circular imports

This commit is contained in:
Nikos Kouremenos 2005-11-13 20:25:04 +00:00
parent 6487b8463c
commit 1921c43a94
6 changed files with 11 additions and 7 deletions

View File

@ -27,6 +27,7 @@ import common.sleepy
import gtkgui_helpers
import dialogs
import vcard
import cell_renderer_image
try:
@ -1375,7 +1376,7 @@ _('Without a connection, you can not edit your personal information.')
gajim.interface.instances[self.account]['infos'][jid].window.present()
else:
gajim.interface.instances[self.account]['infos'][jid] = \
dialogs.VcardWindow(jid, self.account, True)
vcard.VcardWindow(jid, self.account, True)
gajim.connections[self.account].request_vcard(jid)
def on_manage_proxies_button_clicked(self, widget):

View File

@ -24,8 +24,8 @@ import gobject
import os
import gtkgui_helpers
import vcard
from vcard import VcardWindow
from filetransfers_window import FileTransfersWindow
from gajim_themes_window import GajimThemesWindow
from advanced import AdvancedConfigurationWindow
@ -613,7 +613,7 @@ class SubscriptionRequestWindow:
gajim.interface.instances[self.account]['infos'][self.jid].window.present()
else:
gajim.interface.instances[self.account]['infos'][self.jid] = \
VcardWindow(self.jid, self.account, True)
vcard.VcardWindow(self.jid, self.account, True)
#remove the publish / retrieve buttons
vcard_xml = gajim.interface.instances[self.account]['infos'][self.jid].xml
hbuttonbox = vcard_xml.get_widget('information_hbuttonbox')

View File

@ -155,6 +155,7 @@ class Contact:
import roster_window
import systray
import dialogs
import vcard
import config
import disco
@ -261,7 +262,7 @@ class Interface:
jid = gajim.get_jid_from_account(account)
if not self.instances[account]['infos'].has_key('vcard'):
self.instances[account]['infos'][jid] = \
dialogs.VcardWindow(jid, account, True)
vcard.VcardWindow(jid, account, True)
gajim.connections[account].request_vcard(jid)
if self.remote and self.remote.is_enabled():
self.remote.raise_signal('AccountPresence', (status, account))

View File

@ -26,6 +26,7 @@ import time
import os
import dialogs
import vcard
import chat
import cell_renderer_image
import gtkgui_helpers
@ -1111,7 +1112,7 @@ current room topic.') % command, room_jid)
show = c.show, status = c.status, sub = c.sub,
resource = c.resource, role = c.role, affiliation = c.affiliation)
gajim.interface.instances[self.account]['infos'][jid] = \
dialogs.VcardWindow(c2, self.account, False)
vcard.VcardWindow(c2, self.account, False)
def on_history(self, widget, room_jid, nick):
c = gajim.gc_contacts[self.account][room_jid][nick]

View File

@ -30,6 +30,7 @@ import tabbed_chat_window
import groupchat_window
import history_window
import dialogs
import vcard
import config
import disco
import gtkgui_helpers
@ -680,7 +681,7 @@ class RosterWindow:
if info.has_key(user.jid):
info[user.jid].window.present()
else:
info[user.jid] = dialogs.VcardWindow(user, account)
info[user.jid] = vcard.VcardWindow(user, account)
def show_tooltip(self, contact):
pointer = self.tree.get_pointer()

View File

@ -25,8 +25,8 @@ import base64
import mimetypes
import os
import sys
import dialogs
import gtkgui_helpers
import dialogs
from common import helpers
from common import gajim