datakurre / collective.pfg.dexterity

Dexterity PFG Adapter
2 stars 3 forks source link

allow any folderish object as targetFolder #6

Closed domruf closed 11 years ago

domruf commented 12 years ago

It seems that currently only Folders are allowed as targetFolder.

I think any folderish object should be allowed. I did this in my plone instance by changing base_query and removing allowed_types for the targetFolder field.

base_query={"is_folderish": 1}

datakurre commented 12 years ago

Agreed. Thanks for reporting and trying out. I'll look into this later. I should make a new release in the near future (there's already merged patch for Date-field support waiting to be released).

datakurre commented 11 years ago

Sorry for this taking this crazy long. I though that I already fixed this until I faced this issue myself. But I cannot use is_folderish, because I want to allow selecting also Dexterity Content Adapter, which is not folderish (that allow chaining content adapters to create sub-content into a folderish content created by the target adapter).