-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Comments
@rnixx migrated the "cut"/"copy"/"paste"/"delete" cmf scripts to browser views here: this can also be the basis for rename. |
^^^ Updated Issue to cover also cut/copy/paste and delete |
thanks @thet |
@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. |
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. |
Thanks @saily 🍺 |
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? |
this rename problem is probably related to plone/plone.app.dexterity#73 |
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 |
deprecated getIcon() ... (relicts from plone 3)
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:
Files Copy:
Files Cut:
Files Paste:
Files Delete:
The text was updated successfully, but these errors were encountered: