plomino/Plomino — Issue #31: Problem with id normalization 
Author: jean
Created: 2011-10-17 08:37:14+00:00
State: open

There is still a problem with normalization of IDs:

Traceback (most recent call last):
File "", line 24, in ?
File "", line 14, in create_event
File ".../src/Products.CMFPlomino/Products/CMFPlomino/PlominoDocument.py", line 329, in save
self._renameAfterCreation()
File ".../Products.Archetypes-1.5.16-py2.4.egg/Products/Archetypes/BaseObject.py", line 775, in _renameAfterCreation
self.setId(new_id)
File ".../Products.Archetypes-1.5.16-py2.4.egg/Products/Archetypes/BaseObject.py", line 216, in setId
parent.manage_renameObject(self.id, value)
File ".../parts/zope2/lib/python/OFS/CopySupport.py", line 337, in manage_renameObject
action ='manage_main')

The generated id contains line break:

OFS.CopySupport.CopyError:
Invalid Id
The id "00009-national-awareness-workshops-on-apell-held-in-each-of-the-6-countries-involving-relevant-national-and-local-government-sectors-industry
and-civil-society.-milestone-expected-date" contains characters illegal in URLs.

I'm not sure why it isn't being normalized though.