Changeset 7
- Timestamp:
- 11/27/07 20:21:55 (1 year ago)
- Files:
-
- trunk/src/Pyxoo/Commands (copied) (copied from trunk/src/Pyxoo/commands)
- trunk/src/Pyxoo/Commands/__init__.py (copied) (copied from trunk/src/Pyxoo/commands/__init__.py)
- trunk/src/Pyxoo/Commands/command.py (copied) (copied from trunk/src/Pyxoo/commands/command.py) (2 diffs)
- trunk/src/Pyxoo/Commands/delegate.py (copied) (copied from trunk/src/Pyxoo/commands/delegate.py) (1 diff)
- trunk/src/Pyxoo/Commands/frontcontroller.py (copied) (copied from trunk/src/Pyxoo/commands/frontcontroller.py) (3 diffs)
- trunk/src/Pyxoo/Commands/locator.py (copied) (copied from trunk/src/Pyxoo/commands/locator.py) (1 diff)
- trunk/src/Pyxoo/Core (copied) (copied from trunk/src/Pyxoo/core)
- trunk/src/Pyxoo/Core/__init__.py (copied) (copied from trunk/src/Pyxoo/core/__init__.py)
- trunk/src/Pyxoo/Core/locator.py (copied) (copied from trunk/src/Pyxoo/core/locator.py)
- trunk/src/Pyxoo/Events (copied) (copied from trunk/src/Pyxoo/events)
- trunk/src/Pyxoo/Events/__init__.py (copied) (copied from trunk/src/Pyxoo/events/__init__.py)
- trunk/src/Pyxoo/Events/broadcaster.py (copied) (copied from trunk/src/Pyxoo/events/broadcaster.py) (1 diff)
- trunk/src/Pyxoo/Events/channel.py (copied) (copied from trunk/src/Pyxoo/events/channel.py) (1 diff)
- trunk/src/Pyxoo/Events/event.py (copied) (copied from trunk/src/Pyxoo/events/event.py) (1 diff)
- trunk/src/Pyxoo/Events/timer.py (copied) (copied from trunk/src/Pyxoo/events/timer.py) (1 diff)
- trunk/src/Pyxoo/Exceptions (copied) (copied from trunk/src/Pyxoo/exceptions)
- trunk/src/Pyxoo/Exceptions/__init__.py (copied) (copied from trunk/src/Pyxoo/exceptions/__init__.py)
- trunk/src/Pyxoo/Log (copied) (copied from trunk/src/Pyxoo/log)
- trunk/src/Pyxoo/Log/__init__.py (copied) (copied from trunk/src/Pyxoo/log/__init__.py)
- trunk/src/Pyxoo/Log/loggers.py (copied) (copied from trunk/src/Pyxoo/log/loggers.py) (1 diff)
- trunk/src/Pyxoo/Log/loglevel.py (copied) (copied from trunk/src/Pyxoo/log/loglevel.py) (1 diff)
- trunk/src/Pyxoo/Log/pyxoodebug.py (copied) (copied from trunk/src/Pyxoo/log/pyxoodebug.py) (1 diff)
- trunk/src/Pyxoo/Log/stringifier.py (copied) (copied from trunk/src/Pyxoo/log/stringifier.py)
- trunk/src/Pyxoo/Model (copied) (copied from trunk/src/Pyxoo/model)
- trunk/src/Pyxoo/Model/__init__.py (copied) (copied from trunk/src/Pyxoo/model/__init__.py)
- trunk/src/Pyxoo/Model/locator.py (copied) (copied from trunk/src/Pyxoo/model/locator.py) (1 diff)
- trunk/src/Pyxoo/Model/model.py (copied) (copied from trunk/src/Pyxoo/model/model.py)
- trunk/src/Pyxoo/Plugin (copied) (copied from trunk/src/Pyxoo/plugin)
- trunk/src/Pyxoo/Plugin/channel.py (added)
- trunk/src/Pyxoo/Plugin/plugin.py (modified) (2 diffs)
- trunk/src/Pyxoo/Utils (copied) (copied from trunk/src/Pyxoo/utils)
- trunk/src/Pyxoo/Utils/__init__.py (copied) (copied from trunk/src/Pyxoo/utils/__init__.py)
- trunk/src/Pyxoo/View (copied) (copied from trunk/src/Pyxoo/view)
- trunk/src/Pyxoo/View/__init__.py (copied) (copied from trunk/src/Pyxoo/view/__init__.py)
- trunk/src/Pyxoo/View/locator.py (copied) (copied from trunk/src/Pyxoo/view/locator.py) (2 diffs)
- trunk/src/Pyxoo/View/view.py (copied) (copied from trunk/src/Pyxoo/view/view.py)
- trunk/test/commands/TestCommandLocator.py (modified) (1 diff)
- trunk/test/commands/TestDelegate.py (modified) (1 diff)
- trunk/test/commands/TestFrontController.py (modified) (3 diffs)
- trunk/test/events/TestApplicationBroadcaster.py (modified) (1 diff)
- trunk/test/events/TestChannelBroadcaster.py (modified) (1 diff)
- trunk/test/events/TestEventBroadcaster.py (modified) (1 diff)
- trunk/test/events/TestTimer.py (modified) (1 diff)
- trunk/test/log/TestLogEvent.py (modified) (1 diff)
- trunk/test/log/TestLogLevel.py (modified) (1 diff)
- trunk/test/log/TestLogger.py (modified) (1 diff)
- trunk/test/model/TestModelLocator.py (modified) (1 diff)
- trunk/test/plugin (added)
- trunk/test/plugin/TestChannelExpert.py (added)
- trunk/test/plugin/TestPluginChannel.py (added)
- trunk/test/plugin/__init__.py (added)
- trunk/test/utils/TestType.py (modified) (1 diff)
- trunk/test/view/TestViewLocator.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Pyxoo/Commands/command.py
r3 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo.Log.stringifier import PyxooStringifier 25 try: 26 from Pyxoo.Plugin.plugin import Plugin 27 except(ImportError): 28 pass 29 24 30 class Command: 25 31 """Command is the basic interface to encapsulate a request as an object, … … 30 36 A concrete Command object always has execute() method that is called when an action occurs.""" 31 37 raise NotImplementedError 38 39 class AbstractCommand(Command): 40 __owner = None 41 def __init__(self): 42 raise NotImplementedError("AbstractCommand is an abstract class. It must be extented.") 43 44 def execute(self, event=None): 45 """execute(IEvent):void 46 A concrete Command object always has execute() method that is called when an action occurs.""" 47 raise NotImplementedError 32 48 49 def getOwner(self): 50 """getOwner():Plugin""" 51 return self.__owner 33 52 53 def setOwner(self, owner): 54 """setOwner(Plugin):void""" 55 if not isinstance(owner, Plugin): 56 raise TypeError("owner param must be a Plugin object") 57 self.__owner = owner 58 59 def getModelLocator(self): 60 """getModelLocator():ModelLocator""" 61 return self.getOwner().getModelLocator() 62 63 def getViewLocator(self): 64 """getViewLocator():ViewLocator""" 65 return self.getOwner().getViewLocator() 66 67 def _firePrivateEvent(self, event): 68 self.getOwner().firePrivateEvent(event) 69 70 def __str__(self): 71 """__str__():String 72 Returns the string representation of this instance.""" 73 return PyxooStringifier.stringify(self) 74 75 34 76 class MacroCommand(Command): 35 77 """MacroCommand is the basic interface to handle several commands as one command.""" trunk/src/Pyxoo/Commands/delegate.py
r4 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. commands.command import Command25 from Pyxoo. log.stringifier import PyxooStringifier26 from Pyxoo. events.event import IEvent24 from Pyxoo.Commands.command import Command 25 from Pyxoo.Log.stringifier import PyxooStringifier 26 from Pyxoo.Events.event import IEvent 27 27 28 28 class Delegate(Command, object): trunk/src/Pyxoo/Commands/frontcontroller.py
r6 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo.commands.locator import CommandLocator 25 from Pyxoo.events.broadcaster import EventBroadcaster 26 from Pyxoo.plugin.plugin import NullPlugin 27 from Pyxoo.utils import Type 24 from Pyxoo.Commands.locator import CommandLocator 25 from Pyxoo.Events.broadcaster import EventBroadcaster 26 #from Pyxoo.Plugin import plugin 27 import Pyxoo.Plugin 28 from Pyxoo.Utils import Type 29 from Pyxoo.Commands.command import AbstractCommand 30 from Pyxoo.Log.stringifier import PyxooStringifier 28 31 29 32 class FrontController: … … 42 45 self.__eventBroadcaster = EventBroadcaster(owner) 43 46 else: 44 self.__owner = NullPlugin()47 self.__owner = Pyxoo.Plugin.plugin.NullPlugin() 45 48 self.__eventBroadcaster = EventBroadcaster.getInstance() 46 49 self.__eventBroadcaster.addListener(self) … … 67 70 command = self.__commandLocator.locate(event.getEventType()) 68 71 if Type.isClass(command): 69 command().execute(event) 72 cmd = command() 73 if isinstance(cmd, AbstractCommand): 74 cmd.setOwner(self.getOwner()) 75 cmd.execute(event) 70 76 else: 77 if isinstance(command, AbstractCommand): 78 if command.getOwner() is None: 79 command.setOwner(self.getOwner()) 71 80 command.execute(event) 72 81 trunk/src/Pyxoo/Commands/locator.py
r6 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo.core.locator import Locator 25 from Pyxoo.commands.command import Command 26 from Pyxoo.utils import Type 24 from Pyxoo.Core.locator import Locator 25 from Pyxoo.Commands.command import Command 26 from Pyxoo.Utils import Type 27 from Pyxoo.Log.stringifier import PyxooStringifier 27 28 28 29 trunk/src/Pyxoo/Events/broadcaster.py
r4 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. utils import Type25 from Pyxoo. events.event import IEvent26 from Pyxoo. exceptions import *27 from Pyxoo. log.stringifier import PyxooStringifier28 from Pyxoo. commands.delegate import Delegate24 from Pyxoo.Utils import Type 25 from Pyxoo.Events.event import IEvent 26 from Pyxoo.Exceptions import * 27 from Pyxoo.Log.stringifier import PyxooStringifier 28 from Pyxoo.Commands.delegate import Delegate 29 29 30 30 class EventBroadcaster(object): trunk/src/Pyxoo/Events/channel.py
r3 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. events.broadcaster import EventBroadcaster25 from Pyxoo. log.stringifier import PyxooStringifier26 from Pyxoo. utils import Type24 from Pyxoo.Events.broadcaster import EventBroadcaster 25 from Pyxoo.Log.stringifier import PyxooStringifier 26 from Pyxoo.Utils import Type 27 27 28 28 class EventChannel: trunk/src/Pyxoo/Events/event.py
r2 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. utils import Type25 from Pyxoo. log.stringifier import PyxooStringifier24 from Pyxoo.Utils import Type 25 from Pyxoo.Log.stringifier import PyxooStringifier 26 26 27 27 class IEvent: trunk/src/Pyxoo/Events/timer.py
r3 r7 24 24 25 25 import threading,time 26 from Pyxoo. events.broadcaster import *27 from Pyxoo. events.event import BasicEvent28 from Pyxoo. utils import Type26 from Pyxoo.Events.broadcaster import * 27 from Pyxoo.Events.event import BasicEvent 28 from Pyxoo.Utils import Type 29 29 30 30 UNLIMITED_REPEAT = -1 trunk/src/Pyxoo/Log/loggers.py
r2 r7 21 21 __author__ = Pyxoo.__author__ 22 22 23 from Pyxoo. events.event import BasicEvent24 from Pyxoo. events.channel import ChannelBroadcaster, EventChannel25 from Pyxoo. log.loglevel import *26 from Pyxoo. log.stringifier import PyxooStringifier27 from Pyxoo. utils import Type23 from Pyxoo.Events.event import BasicEvent 24 from Pyxoo.Events.channel import ChannelBroadcaster, EventChannel 25 from Pyxoo.Log.loglevel import * 26 from Pyxoo.Log.stringifier import PyxooStringifier 27 from Pyxoo.Utils import Type 28 28 29 29 trunk/src/Pyxoo/Log/loglevel.py
r2 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. utils import Type25 from Pyxoo. log.loggers import *26 from Pyxoo. log.stringifier import PyxooStringifier24 from Pyxoo.Utils import Type 25 from Pyxoo.Log.loggers import * 26 from Pyxoo.Log.stringifier import PyxooStringifier 27 27 28 28 MIN_VALUE, MAX_VALUE = 0, sys.maxint trunk/src/Pyxoo/Log/pyxoodebug.py
r2 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. events.channel import EventChannel25 from Pyxoo. log.loggers import Logger24 from Pyxoo.Events.channel import EventChannel 25 from Pyxoo.Log.loggers import Logger 26 26 27 27 trunk/src/Pyxoo/Model/locator.py
r6 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo. core.locator import Locator25 from Pyxoo. model.model import Model26 from Pyxoo. plugin.plugin import Plugin, NullPlugin24 from Pyxoo.Core.locator import Locator 25 from Pyxoo.Model.model import Model 26 from Pyxoo.Plugin.plugin import Plugin, NullPlugin 27 27 28 28 class ModelLocator(Locator, object): trunk/src/Pyxoo/Plugin/plugin.py
r6 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 try: 25 from Pyxoo.view.locator import ViewLocator 26 except(ImportError): 27 pass 28 try: 29 from Pyxoo.model.locator import ModelLocator 30 except(ImportError): 31 pass 32 from Pyxoo.events.channel import ApplicationBroadcaster 24 25 import Pyxoo.Model, Pyxoo.View, Pyxoo.Plugin 26 27 from Pyxoo.Commands.frontcontroller import FrontController 28 from Pyxoo.Events.channel import ApplicationBroadcaster 29 from Pyxoo.Events.event import BasicEvent 30 31 32 33 class PluginListener: 34 def onInitPlugin(self, event): 35 raise NotImplementedError 36 37 def onReleasePlugin(self, event): 38 raise NotImplementedError 33 39 34 40 … … 69 75 70 76 def fireOnInitPlugin(self): 77 """fireOnInitPlugin():void""" 71 78 pass 72 79 73 80 def fireOnReleasePlugin(self): 81 """fireOnReleasePlugin():void""" 74 82 pass 75 83 76 84 def fireExternalEvent(self, event, eventChannel): 85 """fireExternalEvent(IEvent, EventChannel):void""" 77 86 pass 78 87 79 88 def firePublicEvent(self, event): 89 """firePublicEvent(IEvent):void""" 80 90 pass 81 91 82 92 def firePrivateEvent(self, event): 93 """firePrivateEvent(IEvent):void""" 83 94 pass 84 95 85 96 def getChannel(self): 97 """getChannel():EventChannel""" 86 98 return ApplicationBroadcaster.NO_CHANNEL 87 99 88 100 def getModelLocator(self): 89 return ModelLocator(self) 101 """getModelLocator():ModelLocator""" 102 return Pyxoo.Model.locator.ModelLocator(self) 90 103 91 104 def getViewLocator(self): 92 return ViewLocator(self) 105 """getViewLocator():ViewLocator""" 106 return Pyxoo.View.locator.ViewLocator(self) 107 108 109 class AbstractPlugin(Plugin): 110 onInitPluginEVENT = "onInitPlugin" 111 onReleasePluginEVENT = "onReleasePlugin" 112 113 def __init__(self): 114 """__init__()""" 115 self.__controller = FrontController(self) 116 self.__modelLocator = Pyxoo.Model.locator.ModelLocator(self) 117 self.__viewLocator = Pyxoo.View.locator.ViewLocator(self) 118 119 self.__ebExternal = ApplicationBroadcaster() 120 self.__ebPublic = ApplicationBroadcaster().getChannelDispatcher( self.getChannel(), self ) 121 self.__ebPrivate = self.__controller.getBroadcaster() 122 123 if self.__ebPublic: 124 self.__ebPublic.addListener(self) 125 126 def fireOnInitPlugin(self): 127 """fireOnInitPlugin():void""" 128 self.firePublicEvent(BasicEvent(AbstractPlugin.onInitPluginEVENT)) 129 130 def fireOnReleasePlugin(self): 131 """fireOnReleasePlugin():void""" 132 self.firePublicEvent(BasicEvent(AbstractPlugin.onReleasePluginEVENT)) 133 134 def getChannel(self): 135 """getChannel():EventChannel""" 136 return Pyxoo.Plugin.channel.ChannelExpert().getChannel(self) 137 138 def getController(self): 139 """getController():FrontController""" 140 return self.__controller 141 142 def getModelLocator(self): 143 """getModelLocator():ModelLocator""" 144 return self.__modelLocator 145 146 def getViewLocator(self): 147 """getViewLocator():ViewLocator""" 148 return self.__viewLocator 149 150 def fireExternalEvent(self, event, eventChannel): 151 """fireExternalEvent(IEvent, EventChannel):void""" 152 if eventChannel != self.getChannel(): 153 self.__ebExternal.broadcastEvent(event, eventChannel) 154 155 def firePublicEvent(self, event): 156 """firePublicEvent(IEvent):void""" 157 if self.__ebPublic: 158 self.__ebPublic.broadcastEvent(event) 159 160 def firePrivateEvent(self, event): 161 """firePrivateEvent(IEvent):void""" 162 self.__ebPrivate.broadcastEvent(event) 163 164 def handleEvent(self, event=None): 165 """handleEvent(IEvent):void""" 166 pass 167 168 def release(self): 169 """release():void""" 170 self.__controller.release() 171 self.__modelLocator.release() 172 self.__viewLocator.release() 173 #TODO voir le BeanFactory 174 175 self.fireOnReleasePlugin() 176 self.__ebPrivate.removeAllListeners() 177 self.__ebPublic.removeAllListeners() 178 179 ApplicationBroadcaster().releaseChannelDispatcher(self.getChannel()) 180 ChannelExpert().releaseChannel(self) 181 182 def addListener(self, listener): 183 """addListener(PluginListener):boolean""" 184 if not isinstance(listener, PluginListener): 185 raise TypeError("listener param must be a PluginListener object") 186 if self.__ebPublic: 187 return self.__ebPublic.addListener(listener) 188 return False 189 190 def removeListener(self, listener): 191 """removeListener(PluginListener):boolean""" 192 if not isinstance(listener, PluginListener): 193 raise TypeError("listener param must be a PluginListener object") 194 if self.__ebPublic: 195 return self.__ebPublic.removeListener(listener) 196 return False 197 198 def addEventListener(self, type, listener, *args): 199 """addEventListener(String, PluginListener, ...):boolean""" 200 if self.__ebPublic: 201 return self.__ebPublic.addEventListener(self, type, listener, *args) 202 return False 203 204 def removeEventListener(self, type, listener): 205 """removeEventListener(String, PluginListener):boolean""" 206 if self.__ebPublic: 207 return self.__ebPublic.removeEventListener(type, listener) 208 return False trunk/src/Pyxoo/View/locator.py
r6 r7 22 22 __author__ = Pyxoo.__author__ 23 23 24 from Pyxoo.core.locator import Locator 25 from Pyxoo.view.view import View 26 from Pyxoo.plugin.plugin import Plugin, NullPlugin 24 from Pyxoo.Core.locator import Locator 25 from Pyxoo.View.view import View 26 from Pyxoo.Plugin import plugin 27 27 28 28 29 class ViewLocator(Locator, object): 29 30 __M = dict() 30 31 31 def __new__(cls, owner= NullPlugin()):32 def __new__(cls, owner=plugin.NullPlugin()): 32 33 if not cls.__M.__contains__(owner): 33 34 tmp = object.__new__(cls, owner) … … 36 37 return cls.__M.get(owner) 37 38 38 def __init__(self, owner= NullPlugin()):39 def __init__(self, owner=plugin.NullPlugin()): 39 40 """__init__(Plugin) 40 41 Constructs a ViewLocator implementation.""" 41 if not isinstance(owner, Plugin):42 if not isinstance(owner, plugin.Plugin): 42 43 raise TypeError("owner param must be a Plugin") 43 44 self.__views = dict() trunk/test/commands/TestCommandLocator.py
r6 r7 19 19 20 20 import unittest 21 from Pyxoo. commands.command import Command22 from Pyxoo. commands.locator import CommandLocator21 from Pyxoo.Commands.command import Command 22 from Pyxoo.Commands.locator import CommandLocator 23 23 24 24 class MyCommand1(Command): trunk/test/commands/TestDelegate.py
r4 r7 20 20 import unittest 21 21 22 from Pyxoo. commands.delegate import Delegate22 from Pyxoo.Commands.delegate import Delegate 23 23 24 24 def myFunction(*args): trunk/test/commands/TestFrontController.py
r6 r7 20 20 import unittest 21 21 22 from Pyxoo. commands.frontcontroller import FrontController23 from Pyxoo. plugin.plugin import NullPlugin, Plugin24 from Pyxoo. events.broadcaster import EventBroadcaster25 from Pyxoo. commands.command import Command26 from Pyxoo. events.event import IntegerEvent22 from Pyxoo.Commands import frontcontroller 23 from Pyxoo.Plugin import plugin 24 from Pyxoo.Events.broadcaster import EventBroadcaster 25 from Pyxoo.Commands.command import Command 26 from Pyxoo.Events.event import IntegerEvent 27 27 28 28 class MyCommand(Command): … … 34 34 class TestFrontController(unittest.TestCase): 35 35 def setUp(self): 36 self.instance = FrontController()37 self.aPlugin = Plugin()36 self.instance = frontcontroller.FrontController() 37 self.aPlugin = plugin.Plugin() 38 38 39 39 def testGetOwner(self): 40 self.assertEquals( NullPlugin(), self.instance.getOwner())41 self.instance = FrontController(self.aPlugin)40 self.assertEquals(plugin.NullPlugin(), self.instance.getOwner()) 41 self.instance = frontcontroller.FrontController(self.aPlugin) 42 42 self.assertEquals(self.aPlugin, self.instance.getOwner()) 43 43 … … 46 46 self.assertTrue(self.instance.getBroadcaster().isRegistered(self.instance)) 47 47 48 self.instance = FrontController(self.aPlugin)48 self.instance = frontcontroller.FrontController(self.aPlugin) 49 49 self.assertNotEquals(EventBroadcaster.getInstance(), self.instance.getBroadcaster()) 50 50 self.assertTrue(self.instance.getBroadcaster().isRegistered(self.instance)) trunk/test/events/TestApplicationBroadcaster.py
r2 r7 20 20 import unittest 21 21 22 from Pyxoo. events.channel import ApplicationBroadcaster, EventChannel23 from Pyxoo. events.event import IntegerEvent22 from Pyxoo.Events.channel import ApplicationBroadcaster, EventChannel 23 from Pyxoo.Events.event import IntegerEvent 24 24 25 25 trunk/test/events/TestChannelBroadcaster.py
r3 r7 19 19 import unittest 20 20 21 from Pyxoo. events.broadcaster import *22 from Pyxoo. events.event import *23 from Pyxoo. events.channel import *21 from Pyxoo.Events.broadcaster import * 22 from Pyxoo.Events.event import * 23 from Pyxoo.Events.channel import * 24 24 25 25 class MyListener: trunk/test/events/TestEventBroadcaster.py
r4 r7 23 23 import unittest 24 24 25 from Pyxoo. events.broadcaster import *26 from Pyxoo. events.event import *27 from Pyxoo. exceptions import *25 from Pyxoo.Events.broadcaster import * 26 from Pyxoo.Events.event import * 27 from Pyxoo.Exceptions import * 28 28 29 29 class MyListener: trunk/test/events/TestTimer.py
r3 r7 20 20 import unittest, time 21 21 22 from Pyxoo. events.timer import *22 from Pyxoo.Events.timer import * 23 23 24 24 class MyTimerListener(TimerListener): trunk/test/log/TestLogEvent.py
r2 r7 17 17 18 18 import unittest 19 from Pyxoo. log.loggers import LogEvent20 import Pyxoo. log.loglevel as loglevel19 from Pyxoo.Log.loggers import LogEvent 20 import Pyxoo.Log.loglevel as loglevel 21 21 22 22 class TestLogEvent(unittest.TestCase): trunk/test/log/TestLogLevel.py
r2 r7 18 18 19 19 import unittest 20 from Pyxoo. log.loglevel import *20 from Pyxoo.Log.loglevel import * 21 21 22 22 class TestLogLevel(unittest.TestCase): trunk/test/log/TestLogger.py
r3 r7 18 18 import unittest 19 19 20 from Pyxoo. log.loggers import Logger, ILogListener21 from Pyxoo. events.channel import EventChannel22 from Pyxoo. log.loglevel import *20 from Pyxoo.Log.loggers import Logger, ILogListener 21 from Pyxoo.Events.channel import EventChannel 22 from Pyxoo.Log.loglevel import * 23 23 24 24 trunk/test/model/TestModelLocator.py
r6 r7 21 21 22 22 23 from Pyxoo. model.model import Model24 from Pyxoo. model.locator import ModelLocator25 from Pyxoo. plugin.plugin import Plugin23 from Pyxoo.Model.model import Model 24 from Pyxoo.Model.locator import ModelLocator 25 from Pyxoo.Plugin.plugin import Plugin 26 26 27 27 class TestModelLocator(unittest.TestCase): trunk/test/utils/TestType.py
r3 r7 17 17 # 18 18 19 __version__ = "0.1"20 __author__ = "Alexis Couronne - http://www.skitoo.org"21 19 22 20 import unittest,sys 23 from Pyxoo.utils import Type 21 22 from Pyxoo.Utils import Type 24 23 25 24 class A: trunk/test/view/TestViewLocator.py
r6 r7 21 21 22 22 23 from Pyxoo. view.view import View24 from Pyxoo. view.locator import ViewLocator25 from Pyxoo. plugin.plugin import Plugin23 from Pyxoo.View.view import View 24 from Pyxoo.View.locator import ViewLocator 25 from Pyxoo.Plugin.plugin import Plugin 26 26 27 27 class TestViewLocator(unittest.TestCase):
