Changeset 286 for trunk

Show
Ignore:
Timestamp:
09/20/02 02:10:14 (6 years ago)
Author:
sholloway
Message:

Release 0.3.2 checkin!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBFoundation/RBFoundation/SubObs/Basic.py

    r285 r286  
    5454    class SubjectStrongSet(SimpleSubjectBase, SetCollection.SetCollection, BaseCollection.StrongWrapCallableMixin): pass 
    5555    SubjectSet = SubjectWeakSet 
    56     Subject = SubjectWeakSet # Update default 
    5756except ImportError:  
    5857    pass 
  • trunk/RBFoundation/RBFoundation/SubObs/Interface/__init__.py

    r285 r286  
    4747            return result 
    4848 
     49    def _Notify(self, *args, **kw): 
     50        return self._NotifyExplicit(args, kw) 
  • trunk/RBFoundation/RBFoundation/SubObs/LogicRules/SetCollection.py

    r285 r286  
    5656 
    5757    def iterCallables(self): 
    58         return self.collection 
     58        return iter(self.collection) 
    5959    __iter__ = iterCallables 
    6060 
    6161    def iterAll(self): 
    62         tp = tuple() 
     62        tp0 = tuple() 
    6363        for each in self.iterCallables(): 
    64             yield (each, tp
     64            yield (each, tp0
    6565 
  • trunk/RBFoundation/RBFoundation/WeakBind.py

    r284 r286  
    3636#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3737 
    38 typesMethods = (types.MethodType, types.UnboundMethodType, types.BuiltinFunctionType, types.BuiltinMethodType ) 
    39 typesInstances = (object, types.InstanceType) 
    40 typesRequireBinding = typesMethods + typesInstances 
     38typesBindMethods = (types.MethodType, types.BuiltinMethodType ) 
     39typesRequireBinding = typesBindMethods + (types.ObjectType, types.InstanceType) 
     40 
     41typesNonBindMethods = (types.FunctionType, types.LambdaType, types.GeneratorType, types.BuiltinFunctionType) 
     42typesNonBind = typesNonBindMethods + (types.ClassType, types.ModuleType) 
    4143 
    4244#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    8082            # keep a hard reference to the BoundCallableBase 
    8183            self.im_func = Callable 
    82         elif isinstance(Callable, typesMethods): 
     84        elif isinstance(Callable, typesBindMethods): 
    8385            # Wrap up the method and potential instance 
    8486            if getattr(Callable, 'im_self', None) is not None:  
     
    188190        # again, because it is itself an instance. 
    189191        return Callable 
     192    elif isinstance(Callable, typesNonBind): 
     193        # Doesn't need to be bound 
     194        return Callable 
    190195    elif isinstance(Callable, typesRequireBinding): 
    191196        # Well if it requires binding, then we should do so! 
  • trunk/RBFoundation/RBFoundation/XSDConverter.py

    r280 r286  
    147147 
    148148        # Create the root element 
    149         result.append('<%selement name=%s namespace=%s' % (prefix, quoteattr(self.__node__), quoteattr(self.__namespace__))) 
     149        result.append('<%selement name=%s namespace=%s' % (prefix, quoteattr(self.__node__), quoteattr(self.__namespace__ or ''))) 
    150150 
    151151        SimpleType = not self._attributes and not self._elements 
  • trunk/RBFoundation/RBFoundation/__init__.py

    r258 r286  
    4646""" 
    4747 
    48 __version__         = '0.3.1
     48__version__         = '0.3.2
    4949__author__          = 'Shane Holloway' 
    5050__author_email__    = 'shane.holloway@runeblade.com' 
  • trunk/RBJabber/RBJabber/Client.py

    r253 r286  
    9696        return str(self.__NextID) 
    9797 
    98     def _SocketRecv(self, limit=8192): 
    99         """Overrides socket access so that stream events can be created.""" 
    100         result = self.__super._SocketRecv(limit) 
    101         if self.stream.IncludeRecv and result: self.stream.UpdateObservers(xmlrecv=result) 
    102         return result 
    103  
    104     def _SocketSend(self, data): 
    105         """Overrides socket access so that stream events can be created.""" 
    106         if self.stream.IncludeSend and data: self.stream.UpdateObservers(xmlsend=data) 
    107         return self.__super._SocketSend(data) 
    108  
    10998    def _SetSocketError(self, exc_class, exc_info, exc_traceback): 
    11099        self.stream.UpdateObservers(socket_error=(exc_class, exc_info)) 
     
    112101        del exc_info 
    113102        del exc_traceback 
    114  
    115     def _NeedsRead(self, *args, **kw): 
    116         """Overrides SmartSelect mechanism to signal stream processtick events.""" 
    117         result = self.__super._NeedsRead(*args, **kw) 
    118         if self.stream.IncludeTick and result: self.stream.UpdateObservers(processtick=1) 
    119         return result 
    120103 
    121104    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    270253        return self.Presence(toJID=toJID, type=type) 
    271254 
    272 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    273 # Make a super  
     255#~ Make a super ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    274256Client._Client__super = super(Client) 
    275257 
    276  
     258#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     259#~ Definitions  
     260#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     261 
     262class ExtendedClient(Client): 
     263    def __init__(self, *args, **kw): 
     264        self.__super.__init__(*args, **kw) 
     265        self.stream.IncludeSend = kw.get('xmlsend', 0) 
     266        self.stream.IncludeRecv = kw.get('xmlrecv', 0) 
     267        self.stream.IncludeTick = kw.get('processtick', 0) 
     268 
     269    def _SocketRecv(self, limit=8192): 
     270        """Overrides socket access so that stream events can be created.""" 
     271        result = self.__super._SocketRecv(limit) 
     272        if self.stream.IncludeRecv and result: self.stream.UpdateObservers(xmlrecv=result) 
     273        return result 
     274 
     275    def _SocketSend(self, data): 
     276        """Overrides socket access so that stream events can be created.""" 
     277        if self.stream.IncludeSend and data: self.stream.UpdateObservers(xmlsend=data) 
     278        return self.__super._SocketSend(data) 
     279 
     280    def _NeedsRead(self, *args, **kw): 
     281        """Overrides SmartSelect mechanism to signal stream processtick events.""" 
     282        result = self.__super._NeedsRead(*args, **kw) 
     283        if self.stream.IncludeTick and result: self.stream.UpdateObservers(processtick=1) 
     284        return result 
     285 
     286#~ Make a super ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     287ExtendedClient._ExtendedClient__super = super(ExtendedClient) 
     288 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/layout.py

    r277 r286  
    9090        parent = self.AddToLayout() 
    9191        if parent is self.winParent:  
    92             self.object.SetSizeHints(self.winParent) 
    9392            parentLayout = getattr(self.parent().context, 'layout', None) 
    9493            if parentLayout:  
    9594                sizew, sizeh = self.object.GetMinSize().asTuple() 
    9695                parentLayout.SetItemMinSize(self.winParent, sizew, sizeh) 
     96 
    9797            self.winParent.SetSizer(self.object) 
     98            self.object.SetSizeHints(self.winParent) # Be sure to set size hints after setting sizer! 
     99 
    98100            if self.wxEval('sizerAuto'):  
    99101                self.winParent.SetAutoLayout(1) 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/text.py

    r253 r286  
    3737    default_settings = input.default_settings.copy() 
    3838    default_settings.update({ 
    39         'style':    'wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB | wxTE_MULTILINE | wxTE_AUTO_URL', 
     39        'style':    'wxTE_MULTILINE | wxTE_AUTO_URL', 
    4040        }) 
    4141