Changeset 93

Show
Ignore:
Timestamp:
04/10/02 22:16:54 (6 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

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

    r66 r93  
    4545    seperator = '.' 
    4646    Build = XMLBuilder.XMLBuilder.Parse 
     47    BuildFile = XMLBuilder.XMLBuilder.ParseFile 
    4748 
    4849    def _GetModuleClass(self, namespace, node): 
    49         return namespace, node 
     50        return ('%s.%s' % (namespace, node), node) 
    5051 
    5152    def _GetElementFactory(self, owner, parent, namespace, node, attributes): 
  • trunk/RBJabber/RBJabber/SubjectObserver/CategorySubject.py

    r71 r93  
    4242#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    4343 
    44 class CategorySubject(Subject): 
     44class CategorySubjectBaseMixin(object): 
    4545    def __init__(self): 
    46         super(CategorySubject, self).__init__() 
     46        super(CategorySubjectBaseMixin, self).__init__() 
    4747        self._observers = {} 
    4848 
     
    7777    Observers = property(_AllObserversList) 
    7878 
     79#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     80 
     81class CategorySubjectMixin(CategorySubjectBaseMixin): 
    7982    def UpdateObserversEx(self, kw): 
    8083        self._cachedUpdates.update(kw) 
     
    9093        else: return 0 
    9194 
     95#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     96 
     97class CategorySubject(CategorySubjectMixin, Subject): 
     98    pass 
  • trunk/RBJabber/RBJabber/SubjectObserver/__init__.py

    r66 r93  
    4343import BidableSubject 
    4444 
    45 class AttributedCategorySubject(AttributedSubject.AttributedSubjectMixin, CategorySubject.CategorySubject):  
     45class AttributedCategorySubject(AttributedSubject.AttributedSubjectMixin, CategorySubject.CategorySubjectMixin, Subject.Subject):  
    4646    pass 
    4747class AttributedBidableSubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, Subject.Subject): 
    4848    pass 
    49 class AttributedBidableCategorySubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubject): 
     49class AttributedBidableCategorySubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubjectMixin, Subject.Subject): 
    5050    pass 
    5151 
    52 class BidableCategorySubject(BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubject): 
     52class BidableCategorySubject(BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubjectMixin, Subject.Subject): 
    5353    pass 
    5454class BidableAttributedSubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, Subject.Subject): 
    5555    pass 
    56 class BidableAttributedCategorySubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubject): 
     56class BidableAttributedCategorySubject(AttributedSubject.AttributedSubjectMixin, BidableSubject.BidableSubjectMixin, CategorySubject.CategorySubjectMixin, Subject.Subject): 
    5757    pass 
    5858