Changeset 1769 for ZMS/trunk


Ignore:
Timestamp:
14.12.2011 21:19:53 (5 months ago)
Author:
zmsdev
Message:

Ticket#12 (uni-bern): PathHandler? resolves conflict of Zope-Folder Id and Declarative Id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_pathhandler.py

    r1761 r1769  
    161161      # If the name is in the list of attributes, call it. 
    162162      ob = getattr( self, name, None) 
    163       if ob is None: 
     163      if ob is None or getattr(ob,'meta_type',None) == 'Folder': 
    164164        ob = filterId( self, name, req) 
    165       if ob is not None: 
     165      if ob is not None and getattr(ob,'meta_type',None) != 'Folder': 
    166166        if not zmi and TraversalRequest['path_to_handle'][-1] == name: 
    167167          lang = req.get( 'lang') 
Note: See TracChangeset for help on using the changeset viewer.