Changeset 2091


Ignore:
Timestamp:
Sep 5, 2007 6:39:06 PM (11 years ago)
Author:
hazmat
Message:

setuptoolize package

Location:
ore.annotation/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • ore.annotation/trunk/src/ore/annotation/__init__.py

    r1639 r2091  
    2929    def __init__(self, obj ): 
    3030        self.obj = obj 
    31  
    3231        self.state = annotation 
    3332        self.iid = iid 
     
    7170def annotationAdapter( context ): 
    7271    utility = component.getUtility( IAnnotationUtility, context=context ) 
    73     iid, state = utility.get( context ) 
    74     return UtilityAnnotation( state, iid, utility ) 
     72    int_id, state = utility.get( context ) 
     73    return UtilityAnnotation( state, int_id, utility ) 
    7574 
    7675class AnnotationUtility( Persistent ): 
     
    8079 
    8180    def get( self, context ): 
    82         utility = component.getUtility( IIntIds, context=self ) 
    83         iid = utility.getId( context ) 
    84         if not self.annotations.has_key( iid ): 
    85             self.create( iid ) 
    86         return iid, self.annotations.get( iid ) 
     81        utility = component.getUtility( IIntIds ) 
     82        int_id = utility.getId( context ) 
     83        if not self.annotations.has_key( int_id ): 
     84            self.create( int_id ) 
     85        return int_id, self.annotations.get( int_iid ) 
    8786 
    8887    def create( self, intid ): 
Note: See TracChangeset for help on using the changeset viewer.