Can't paste or rename some objects
When I try to rename or paste a folder object, I get this error: Error Type: Bad Request Error Value: The id "Pictures" is invalid--it is already in use. Here's the folder structure / Cactus (Folder) AloeVera (CustomPlantProduct) Pictures (PhotoFolder) pic1.gif (Photo) pic2.gif (Photo) Tags (PhotoFolder) tag1.gif (Photo) tag2.gif (Photo) I am trying to either rename Cactus folder to CactusOld or (preferably) copy/paste it to another folder in the site. There are no conflicting Id's named 'Pictures' in my root folder. -- -- Chad Nantais Rednaxel Interactive cnantais@rednaxel.com
After further probing I've discovered that whenever my CustomPlantProduct instance (which is an object manager/folder) has objects in it, I get the error when trying to cut/paste or rename. Is there a class that I need to inherit to allow for my CustomPlantProduct to be able to be pasted and renamed? thanks. Chad Nantais wrote:
When I try to rename or paste a folder object, I get this error:
Error Type: Bad Request Error Value: The id "Pictures" is invalid--it is already in use.
Here's the folder structure
/ Cactus (Folder) AloeVera (CustomPlantProduct) Pictures (PhotoFolder) pic1.gif (Photo) pic2.gif (Photo) Tags (PhotoFolder) tag1.gif (Photo) tag2.gif (Photo)
I am trying to either rename Cactus folder to CactusOld or (preferably) copy/paste it to another folder in the site. There are no conflicting Id's named 'Pictures' in my root folder.
-- -- Chad Nantais Rednaxel Interactive cnantais@rednaxel.com
Chad Nantais writes:
When I try to rename or paste a folder object, I get this error:
Error Type: Bad Request Error Value: The id "Pictures" is invalid--it is already in use.
Here's the folder structure
/ Cactus (Folder) AloeVera (CustomPlantProduct) Pictures (PhotoFolder) pic1.gif (Photo) pic2.gif (Photo) Tags (PhotoFolder) tag1.gif (Photo) tag2.gif (Photo)
I am trying to either rename Cactus folder to CactusOld or (preferably) copy/paste it to another folder in the site. There are no conflicting Id's named 'Pictures' in my root folder. I expect there is some problem with your "CustomPlantProduct".
Maybe, its content is held in a class attribute instead of an instance attribute. Dieter
That is correct. I was using a manage_afterAdd function in the product that created subfolders. I moved the creation of the subfolders into the factory function itself and added the aquisition wrapper with getattr() which was missing. Dieter Maurer wrote:
Chad Nantais writes:
When I try to rename or paste a folder object, I get this error:
Error Type: Bad Request Error Value: The id "Pictures" is invalid--it is already in use.
Here's the folder structure
/ Cactus (Folder) AloeVera (CustomPlantProduct) Pictures (PhotoFolder) pic1.gif (Photo) pic2.gif (Photo) Tags (PhotoFolder) tag1.gif (Photo) tag2.gif (Photo)
I am trying to either rename Cactus folder to CactusOld or (preferably) copy/paste it to another folder in the site. There are no conflicting Id's named 'Pictures' in my root folder. I expect there is some problem with your "CustomPlantProduct".
Maybe, its content is held in a class attribute instead of an instance attribute.
Dieter
-- -- Chad Nantais Rednaxel Interactive cnantais@rednaxel.com
participants (2)
-
Chad Nantais -
Dieter Maurer