Do not use "getattr" to guess the folder type:
- Object is wrapped in acquisition, so we can get attributes from its containers - Classes implemeting folder-ish objects *do* define those attributes with varying values (empty tuple on OFS.Folder, None on BTreeFolder, etc). So the attribute presence must be grabbed from instance properties *only*. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16607 20353a03-c40f-0410-a6d1-a30d3c3de9de
Showing
Please register or sign in to comment