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

Migrate Rename/Copy/Cut/Paste/Delete #97

Closed
eleddy opened this issue Oct 17, 2013 · 9 comments
Closed

Migrate Rename/Copy/Cut/Paste/Delete #97

eleddy opened this issue Oct 17, 2013 · 9 comments

Comments

@eleddy
Copy link
Member

eleddy commented Oct 17, 2013

I'm not sure if this is addressed in the new folder listing plip or not. Please coordinate with them to see if its already re-implemented. If not, move to a utility or something. I swear @vangheem has this code already... somewhere...

Note that this is referenced from folder_contents, and that will need to be updated to reflect the new paths.

Files Rename:

  • Products/CMFPlone/skins/plone_scripts/folder_rename.cpy
  • Products/CMFPlone/skins/plone_scripts/object_rename.py
  • Products/CMFPlone/skins/plone_scripts/folder_rename.cpy.metadata
  • Products/CMFPlone/skins/plone_forms/folder_rename_form.cpt
  • Products/CMFPlone/skins/plone_forms/folder_rename_form.cpt.metadata
  • Products/CMFPlone/skins/plone_form_scripts/validate_folder_rename.vpy

Files Copy:

  • Products/CMFPlone/skins/plone_scripts/folder_copy.cpy
  • Products/CMFPlone/skins/plone_scripts/folder_copy.cpy.metadata
  • Products/CMFPlone/skins/plone_scripts/object_copy.cpy
  • Products/CMFPlone/skins/plone_scripts/object_copy.cpy.metadata

Files Cut:

  • Products/CMFPlone/skins/plone_scripts/folder_cut.cpy
  • Products/CMFPlone/skins/plone_scripts/folder_cut.cpy.metadata
  • Products/CMFPlone/skins/plone_scripts/object_cut.cpy
  • Products/CMFPlone/skins/plone_scripts/object_cut.cpy.metadata

Files Paste:

  • Products/CMFPlone/skins/plone_scripts/folder_paste.cpy
  • Products/CMFPlone/skins/plone_scripts/folder_paste.cpy.metadata
  • Products/CMFPlone/skins/plone_scripts/object_paste.cpy
  • Products/CMFPlone/skins/plone_scripts/object_paste.cpy.metadata

Files Delete:

  • Products/CMFPlone/skins/plone_scripts/folder_delete.cpy
  • Products/CMFPlone/skins/plone_scripts/folder_delete.cpy.metadata
  • Products/CMFPlone/skins/plone_scripts/object_delete.cpy.metadata
  • Products/CMFPlone/skins/plone_scripts/object_delete.cpy
@thet
Copy link
Member

thet commented Oct 21, 2013

@rnixx migrated the "cut"/"copy"/"paste"/"delete" cmf scripts to browser views here:
https://github.com/collective/bda.plone.finder/blob/master/src/bda/plone/finder/browser/actions.py#L253

this can also be the basis for rename.

@thet
Copy link
Member

thet commented Oct 30, 2013

^^^ Updated Issue to cover also cut/copy/paste and delete

@eleddy
Copy link
Member Author

eleddy commented Oct 31, 2013

thanks @thet

@davisagli
Copy link
Member

@vangheem added views in plone.app.content that replace these for the purposes of the new folder contents implementation. If they aren't used elsewhere, we can remove them.

@davisagli davisagli mentioned this issue Feb 25, 2014
90 tasks
@saily saily self-assigned this Mar 30, 2014
@saily
Copy link
Member

saily commented Mar 30, 2014

i reviewed the code of @vangheem but there's no test at all for that code. I'm currently working on that on w&b sprint.

@davisagli
Copy link
Member

Thanks @saily 🍺

@seanupton
Copy link
Member

Looks like implementations for folder rename (multiple item) by @vangheem and item action by @saily take care of replacing the rename stuff previously in portal_skins.

However, I would like to contribute some kind of validation to these for the new id coming from the data. In my Plone 4.3 sites, we get users accidentally putting spaces in shortnames around twice a month accidentally via folder_rename, which causes me grief.

On that same topic, there is nothing in name chooser validating against spaces in short names / ids after portal_skins/plone_scripts/check_id goes away, which makes that problem bigger than just renaming, also for creation (I sense this should be solved by modifying plone.app.folder.base.BaseBTreeFolder._checkId?). If the _checkId() method validated against spaces, I would think that both the name chooser and the rename action(s) for one or multiple items should use it?

@jensens
Copy link
Member

jensens commented Sep 16, 2014

this rename problem is probably related to plone/plone.app.dexterity#73

@pbauer
Copy link
Member

pbauer commented Jan 22, 2015

plone/plone.app.dexterity#73 is fixed in plone/plone.app.content@498634. The same still has to be done with regards to the new folder_contents

jensens added a commit that referenced this issue Nov 12, 2021
deprecated getIcon() ... (relicts from plone 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants