Skip to content

Commit

Permalink
web: fix importing base UI
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Jul 25, 2010
1 parent 9891f3b commit ed23fb6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
7 changes: 5 additions & 2 deletions amsn2/ui/front_ends/web/chat_window.py
@@ -1,8 +1,9 @@
import hashlib
import random
from amsn2.core.views import ContactView, StringView
from amsn2.ui import base

class aMSNChatWindow(object):
class aMSNChatWindow(base.aMSNChatWindow):
""" This interface will represent a chat window of the UI
It can have many aMSNChatWidgets"""
def __init__(self, amsn_core):
Expand Down Expand Up @@ -52,7 +53,7 @@ def flash(self):
flash..."""


class aMSNChatWidget(object):
class aMSNChatWidget(base.aMSNChatWidget):
""" This interface will present a chat widget of the UI """
def __init__(self, amsn_conversation, parent, contacts_uid):
""" create the chat widget for the 'parent' window, but don't attach to
Expand Down Expand Up @@ -80,3 +81,5 @@ def on_message_received(self, messageview, formatting):
def nudge(self):
self._main.send("nudgeChatWidget", self._uid)

def on_user_typing(self, contact):
pass
5 changes: 3 additions & 2 deletions amsn2/ui/front_ends/web/contact_list.py
Expand Up @@ -6,8 +6,9 @@
...
"""

from amsn2.ui import base

class aMSNContactListWindow(object):
class aMSNContactListWindow(base.aMSNContactListWindow):
""" This interface represents the main Contact List Window
self._clwidget is an aMSNContactListWidget
"""
Expand Down Expand Up @@ -46,7 +47,7 @@ def my_info_updated(self, view):
def get_contactlist_widget(self):
return self._clwidget

class aMSNContactListWidget(object):
class aMSNContactListWidget(base.aMSNContactListWidget):
""" This interface implements the contact list of the UI """
def __init__(self, amsn_core, parent):
self._main = parent._main
Expand Down
4 changes: 3 additions & 1 deletion amsn2/ui/front_ends/web/login.py
@@ -1,5 +1,7 @@
from papyon import Presence
class aMSNLoginWindow(object):
from amsn2.ui import base

class aMSNLoginWindow(base.aMSNLoginWindow):
def __init__(self, core, main):
self._main = main
self._core = core
Expand Down
3 changes: 2 additions & 1 deletion amsn2/ui/front_ends/web/splash.py
@@ -1,5 +1,6 @@
from amsn2.ui import base

class aMSNSplashScreen(object):
class aMSNSplashScreen(base.aMSNSplashScreen):
""" This interface will represent the splashscreen of the UI"""
def __init__(self, amsn_core, parent):
"""Initialize the interface. You should store the reference to the core in here
Expand Down
3 changes: 2 additions & 1 deletion amsn2/ui/front_ends/web/window.py
@@ -1,5 +1,6 @@
from amsn2.ui import base

class aMSNWindow(object):
class aMSNWindow(base.aMSNWindow):
""" This Interface represents a window of the application. Everything will be done from here """
def __init__(self, amsn_core):
pass
Expand Down

0 comments on commit ed23fb6

Please sign in to comment.