Changeset 4746 for waeup/branches


Ignore:
Timestamp:
8 Jan 2010, 14:29:12 (15 years ago)
Author:
uli
Message:

Let datacenters also search container items for CSV data receivers,
not only attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/datacenter.py

    r4683 r4746  
    9595    def getCSVDataReceivers(self, obj):
    9696        """Get a list of attributes, that can receive CSV data.
     97
     98        We also get a list of values, if obj is a container that
     99        contains value items.
    97100        """
    98101        result = []
     
    105108                #IWAeUPCSVImporter(attr)
    106109                result.append(attr)
     110            except:
     111                pass
     112        if hasattr(obj, 'values'):
     113            try:
     114                result.extend(obj.values())
    107115            except:
    108116                pass
Note: See TracChangeset for help on using the changeset viewer.