Changeset 1836


Ignore:
Timestamp:
Feb 11, 2007 2:25:08 AM (12 years ago)
Author:
hazmat
Message:

separate out event class, start todo

Location:
Products.ContentFlavors/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • Products.ContentFlavors/trunk/interfaces.py

    r1683 r1836  
    2727 
    2828from zope.app.event.interfaces import IObjectEvent 
    29 from zope.app.event.objectevent import ObjectEvent 
     29 
    3030 
    3131FLAVOR_INDEX = "content_flavors" 
     
    122122        value_type=schema.ASCIILine() 
    123123        ) 
    124      
    125 class FlavorsModifiedEvent( ObjectEvent ): 
    126  
    127     implements( IFlavorsModifiedEvent ) 
    128      
    129     def __init__(self, object, provider, added_names, removed_names): 
    130         self.object = object 
    131         self.provider = provider 
    132         # might be useful.. might not.. 
    133         self.added_names = added_names 
    134         self.removed_names = removed_names 
    135124         
    136125 
  • Products.ContentFlavors/trunk/provider.py

    r1685 r1836  
    3434from zope.interface.interfaces import IInterface 
    3535from zope.event import notify 
    36 from interfaces import IFlavorProvider, IFlavor, FlavorsModifiedEvent 
     36from interfaces import IFlavorProvider, IFlavor 
    3737from persistent.list import PersistentList 
     38from event import FlavorsModifiedEvent 
    3839 
    3940class FlavorProvider( object ): 
  • Products.ContentFlavors/trunk/readme.txt

    r1690 r1836  
    260260  
    261261 
    262  
    263  
    264  
    265  
    266  
    267  
    268    
Note: See TracChangeset for help on using the changeset viewer.