smcmahon/Products.PloneFormGen — pull request #16 by datakurre (2011-11-18 17:34:18+00:00)
Title: Proposal for QuickEdit to support adding types with spaces in their id

When you try really hard, you can create a working portal type (e.g. a PFG form field or adapter) with spaces in its id :-)

Unfortunately, those types cannot be added using PFG's QuickEdit-view (1.7.0), because it cuts the id from the first space and generates broken createObject-link.

Probably this could be also fixed in javascripts. This proposal fixes it by quoting type id in the same way that it's quoted in factory menu's link:

https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/folderfactories.py#L95