#222: Remove Action - Renaming Video Item - When in Pending/Published State
---------------------------+------------------------------------------------
 Reporter:  and            |                Owner:  dave                        
       
     Type:  task           |               Status:  reopened                    
       
 Priority:  major          |            Milestone:  4.1 Beta 1 (New Features 
and Fixes)
Component:  ATEngageVideo  |           Resolution:                              
       
 Keywords:                 |   Who will test this:  Unknown                     
       
---------------------------+------------------------------------------------

Comment (by dave):

 Ok this appears to be a different specification altogether, the original
 issue was asking to remove the ability to rename when viewing the list of
 videos in folder contents view. (as referenced by
 http://website.org/Members/USERNAME/videos/folder_contents in the ticket)

 With the discussion above, the recommendation was to remove the contents
 tab, thus not giving users the view at all, because the listing of folder
 contents required users to be able to rename other items in it, Plone
 correctly warned the user after choosing a video unable to be renamed once
 it was attempted.

 This appears to be another issue altogether with renaming the video
 object. When viewing the object there is no ability to rename in the drop
 down for reviewer when in Published state, so therefore the Reviewer
 should not have permissions to rename.

 I just created a user ReviewerDave, and cannot see a button to rename
 either at the object view, or via the folder view.

 I tried this as manager, and it works however as an aside I also note the
 renaming does not make the ID more url friendly, resulting in :

 
http://testing.plumi.org:16080/Plone/Members/reviewer/videos/test%20for%20222%20new

 Not sure if this is expected behaviour in Plumi.

 From the error log, this was the error logged in question.

 Not sure where to go from here as I cannot reproduce the issue, maybe you
 were viewing an unrefreshed page of old content before the initial
 renaming?

 {{{
 Traceback (innermost last):
   Module ZPublisher.Publish, line 127, in publish
   Module ZPublisher.mapply, line 77, in mapply
   Module ZPublisher.Publish, line 47, in call_object
   Module Products.CMFFormController.FSControllerPageTemplate, line 91, in
 __call__
   Module Products.CMFFormController.BaseControllerPageTemplate, line 28,
 in _call
   Module Products.CMFFormController.ControllerBase, line 231, in getNext
   Module Products.CMFFormController.Actions.TraverseTo, line 38, in
 __call__
   Module ZPublisher.mapply, line 77, in mapply
   Module ZPublisher.Publish, line 47, in call_object
   Module Products.CMFFormController.FSControllerPythonScript, line 105, in
 __call__
   Module Products.CMFFormController.Script, line 145, in __call__
   Module Products.CMFCore.FSPythonScript, line 130, in __call__
   Module Shared.DC.Scripts.Bindings, line 324, in __call__
   Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
   Module Products.PythonScripts.PythonScript, line 344, in _exec
   Module script, line 34, in folder_rename
    - <FSControllerPythonScript at /Plone/folder_rename used for
 /Plone/Members/reviewer/videos>
    - Line 34
   Module <string>, line 3, in renameObjectsByPaths
   Module plone.protect.utils, line 43, in _curried
   Module <string>, line 3, in renameObjectsByPaths
   Module AccessControl.requestmethod, line 70, in _curried
   Module Products.CMFPlone.PloneTool, line 1289, in renameObjectsByPaths
 IndexError: list index out of range
 }}}

-- 
Ticket URL: <http://plumi.org/ticket/222#comment:17>
Plumi <http://plumi.org/>
Plumi - FOSS Video Sharing Platform
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss

Reply via email to