Changeset 48255

Show
Ignore:
Timestamp:
08/10/06 11:05:18 (4 years ago)
Author:
ogrisel
Message:

make the hasLocalVocContainer check more robust in case context is a RequestContainer? instance

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSSchemas/trunk/VocabulariesTool.py

    r48250 r48255  
    5454 
    5555        def hasLocalVocContainer(context): 
     56            if getattr(context, 'hasObject', None) is None: 
     57                return False 
    5658            return context.hasObject(LOCAL_VOCABULARY_CONTAINER_ID) 
    5759