Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when Plomino field id is 'type' #557

Open
drnow4u opened this issue May 1, 2014 · 1 comment
Open

Error when Plomino field id is 'type' #557

drnow4u opened this issue May 1, 2014 · 1 comment

Comments

@drnow4u
Copy link

drnow4u commented May 1, 2014

When Plomino field id is 'type' (see attached image) the following error appears:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFPlone.FactoryTool, line 473, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
  Module Products.CMFFormController.ControllerBase, line 231, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 1, in content_edit
   - <FSControllerPythonScript at /demo/content_edit used for /demo/serwis-samochodow/car/portal_factory/PlominoField/plominofield.2014-05-01.9944137551>
   - Line 1
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 8, in content_edit_impl
   - <FSPythonScript at /demo/content_edit_impl used for /demo/serwis-samochodow/car/portal_factory/PlominoField/plominofield.2014-05-01.9944137551>
   - Line 8
  Module Products.CMFPlone.FactoryTool, line 319, in doCreate
  Module Products.ATContentTypes.lib.constraintypes, line 277, in invokeFactory
  Module Products.CMFCore.PortalFolder, line 292, in invokeFactory
  Module Products.CMFCore.TypesTool, line 833, in constructContent
  Module Products.CMFCore.TypesTool, line 311, in constructInstance
  Module Products.CMFCore.TypesTool, line 552, in _constructInstance
  Module Products.CMFPlomino.PlominoField, line 4, in addPlominoField
  Module Products.BTreeFolder2.BTreeFolder2, line 426, in _setObject
  Module plone.app.folder.base, line 49, in _checkId
  Module Products.CMFCore.PortalFolder, line 310, in _checkId
  Module OFS.ObjectManager, line 116, in checkValidId
BadRequest: The id "type" is invalid - it is already in use.

plomino

If 'type' is forbidden string for Id field, then it should be gracefully message about this. Trace back is always scary for users.

@ebrehault
Copy link
Member

True.
We need to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants