Changeset 19

Show
Ignore:
Timestamp:
01/22/08 22:26:21 (1 year ago)
Author:
skit
Message:

Déplacement du package Pyxoo.Log.stringifier vers Pyxoo.Utils.stringigifier

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • project/trunk/src/Pyxoo/Commands/command.py

    r18 r19  
    2222__author__  = Pyxoo.__author__ 
    2323 
    24 from Pyxoo.Log.stringifier import PyxooStringifier 
     24from Pyxoo.Utils.stringifier import PyxooStringifier 
    2525from Pyxoo.Utils.interface import Interface 
    2626 
  • project/trunk/src/Pyxoo/Commands/delegate.py

    r18 r19  
    2323 
    2424from Pyxoo.Commands.command import Command 
    25 from Pyxoo.Log.stringifier import PyxooStringifier 
     25from Pyxoo.Utils.stringifier import PyxooStringifier 
    2626from Pyxoo.Events.event import IEvent 
    2727 
  • project/trunk/src/Pyxoo/Commands/frontcontroller.py

    r15 r19  
    2525from Pyxoo.Events.broadcaster import EventBroadcaster 
    2626from Pyxoo.Utils import Type 
     27from Pyxoo.Utils.stringifier import PyxooStringifier 
    2728from Pyxoo.Commands.command import AbstractCommand 
    28 from Pyxoo.Log.stringifier import PyxooStringifier 
     29 
    2930 
    3031class FrontController: 
  • project/trunk/src/Pyxoo/Commands/locator.py

    r7 r19  
    2525from Pyxoo.Commands.command import Command 
    2626from Pyxoo.Utils import Type 
    27 from Pyxoo.Log.stringifier import PyxooStringifier 
     27from Pyxoo.Utils.stringifier import PyxooStringifier 
    2828 
    2929 
  • project/trunk/src/Pyxoo/Events/broadcaster.py

    r18 r19  
    2323 
    2424from Pyxoo.Utils import Type 
     25from Pyxoo.Utils.stringifier import PyxooStringifier 
     26from Pyxoo.Utils.map import HashMap 
     27 
    2528from Pyxoo.Events.event import IEvent 
    2629from Pyxoo.Exceptions import * 
    27 from Pyxoo.Log.stringifier import PyxooStringifier 
    2830from Pyxoo.Commands.delegate import Delegate 
    29 from Pyxoo.Utils.map import HashMap 
     31 
    3032 
    3133class EventBroadcaster( object ): 
  • project/trunk/src/Pyxoo/Events/channel.py

    r15 r19  
    2323 
    2424from Pyxoo.Events.broadcaster import EventBroadcaster 
    25 from Pyxoo.Log.stringifier import PyxooStringifier 
     25from Pyxoo.Utils.stringifier import PyxooStringifier 
    2626from Pyxoo.Utils import Type 
    2727from Pyxoo.Exceptions import IllegalAccessException 
  • project/trunk/src/Pyxoo/Events/event.py

    r18 r19  
    2323 
    2424from Pyxoo.Utils import Type 
    25 from Pyxoo.Log.stringifier import PyxooStringifier 
     25from Pyxoo.Utils.stringifier import PyxooStringifier 
    2626from Pyxoo.Utils.interface import Interface 
    2727 
  • project/trunk/src/Pyxoo/Model/locator.py

    r15 r19  
    2525from Pyxoo.Model.model import AbstractModel 
    2626from Pyxoo.Plugin.plugin import Plugin, NullPlugin 
    27 from Pyxoo.Log.stringifier import PyxooStringifier 
     27from Pyxoo.Utils.stringifier import PyxooStringifier 
    2828from Pyxoo.Utils.map import HashMap 
    2929 
  • project/trunk/src/Pyxoo/Plugin/channel.py

    r15 r19  
    2323 
    2424from Pyxoo.Events.channel import EventChannel, ApplicationBroadcaster 
    25 from Pyxoo.Log.stringifier import PyxooStringifier 
     25from Pyxoo.Utils.stringifier import PyxooStringifier 
    2626from Pyxoo.Utils.map import HashMap 
    2727from Pyxoo.Exceptions import IllegalAccessException 
  • project/trunk/src/Pyxoo/Utils/stringifier.py

    r7 r19  
    2222__author__  = Pyxoo.__author__ 
    2323 
     24from Pyxoo.Utils import Interface 
    2425 
    25 class Stringifier
    26     def stringify(self, target): 
    27         raise NotImplementedError 
     26class Stringifier( Interface )
     27    def stringify( self, target ): 
     28        """stringify(object):String""" 
    2829     
    2930     
    30 class BasicStringifier(Stringifier): 
    31     def stringify(self, target): 
     31class BasicStringifier( Stringifier ): 
     32    def stringify( self, target ): 
     33        """stringify(object):String""" 
    3234        return target.__class__.__name__ 
    3335     
    34     def __str__(self): 
     36    def __str__( self ): 
    3537        """__str__():String 
    3638        Returns the string representation of this instance.""" 
    37         return PyxooStringifier.stringify(self
     39        return PyxooStringifier.stringify( self
    3840     
    3941     
    40 class PyxooStringifier(object)
     42class PyxooStringifier
    4143    _STRINGIFIER = BasicStringifier() 
    4244     
    4345    @classmethod 
    44     def setStringifier(cls, stringifier): 
    45         if not isinstance(stringifier, Stringifier): 
    46             raise TypeError("stringifier param is not a Stringifier object.") 
     46    def setStringifier( cls, stringifier ): 
     47        """setStringifier(Stringifier):void""" 
     48        if not isinstance( stringifier, Stringifier ): 
     49            raise TypeError( "stringifier param is not a Stringifier object." ) 
    4750        cls._STRINGIFIER = stringifier 
    4851         
    4952    @classmethod 
    50     def getStringifier(cls): 
     53    def getStringifier( cls ): 
     54        """getStringifier():Stringifier""" 
    5155        return cls._STRINGIFIER 
    5256     
    5357    @classmethod 
    54     def stringify(cls, target): 
    55         return cls._STRINGIFIER.stringify(target) 
     58    def stringify( cls, target ): 
     59        """stringify(object):String""" 
     60        return cls._STRINGIFIER.stringify( target ) 
    5661     
    5762     
  • project/trunk/src/Pyxoo/View/locator.py

    r15 r19  
    2525from Pyxoo.View.view import AbstractView 
    2626from Pyxoo.Plugin import plugin 
    27 from Pyxoo.Log.stringifier import PyxooStringifier 
     27from Pyxoo.Utils.stringifier import PyxooStringifier 
    2828from Pyxoo.Utils.map import HashMap 
    2929