@expose("<STR_LIT>", methods=["<STR_LIT:POST>"])<EOL><INDENT>def action_post(self):<DEDENT>
name = request.form["<STR_LIT:action>"]<EOL>pks = request.form.getlist("<STR_LIT>")<EOL>if self.appbuilder.sm.has_access(name, self.__class__.__name__):<EOL><INDENT>action = self.actions.get(name)<EOL>items = [<EOL>self.datamodel.get(self._deserialize_pk_if_composite(pk)) for pk in pks<EOL>]<EOL>return action.func(items)<EOL><DEDENT>else:<EOL><INDENT>flash(as_unicode(FLAMSG_ERR_SEC_ACCESS_DENIED), "<STR_LIT>")<EOL>return redirect("<STR_LIT:.>")<EOL><DEDENT>
Action method to handle multiple records selected from a list view