The check for default types within setLocallyAllowedTypes is nice to avoid problems, but it does not allow for a case when you may want to allow no types in a folder.
Something like this
if type_ not in defaults and type_ != '':
could be more elegant, but seems to work.
The check for default types within setLocallyAllowedTypes is nice to avoid problems, but it does not allow for a case when you may want to allow no types in a folder.
Something like this
if type_ not in defaults and type_ != '':could be more elegant, but seems to work.