Changeset 495

Show
Ignore:
Timestamp:
08/23/06 12:26:54
Author:
crchemist
Message:

Fixup error in configlet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneComments/branches/plone-2.5/skins/qplonecomments/prefs_recent_comments_delete.cpy

    r494 r495  
    1414 
    1515request = context.REQUEST 
    16 comment_ids = request.get('ids'
     16comment_ids = request.get('ids', []
    1717 
    1818for comment_id in comment_ids: 
     
    2727    talkback.deleteReply( comment_id ) 
    2828 
    29 return state.set(portal_status_message='Comments was successfully deleted.') 
    30  
     29psm = comment_ids and 'Comments was successfully deleted.' or 'Please select items to be processed.' 
     30return state.set(portal_status_message=psm) 
  • qPloneComments/branches/plone-2.5/skins/qplonecomments/prefs_recent_comments_publish.cpy

    r494 r495  
    1414request = context.REQUEST 
    1515 
    16 comment_ids = request.get('ids'
     16comment_ids = request.get('ids', []
    1717portal_catalog = getToolByName(context, "portal_catalog") 
    1818 
     
    2222    send_notification_message = send_email(comment, container, state="published") 
    2323 
    24 return state.set(portal_status_message='Comments was successfully published.') 
     24psm = comment_ids and 'Comments was successfully published.' or 'Please select items to be processed.' 
     25return state.set(portal_status_message=psm)