I am querying portal_catalog to populate a vocabulary with (UID, Title) tuples. The site has both Archetypes and Dexterity content.
brains = portal_catalog.searchResults(path={ "query": site_physical_path + "/" + folder_name },
portal_type=["foobar.app.courseinfo", "Folder"] )
Look like Dexterity content is not given proper UID and in fact all Dexterity items have the same UID (it's not even an invalid value).
('29550a9a-5e6c-4593-8bee-9db11f29b934', u'xxx dexterity'), ('29550a9a-5e6c-4593-8bee-9db11f29b934', u'yyy dexterity'),
What's the best strategy to have unique ids across both Archetypes and Dexterity content in portal_catalog to be used as a look-up-able content id key?