Swank Wiki
Recently Visited

Swank v0.04.04

Type: task
Description: better handling of new actions
Status: New
Priority: 2
Assigned:

Notes

better handling of new actions...
        html/edit/save/delete
        submit
        history/revert
        attach, email
        rss, atom
        * /actions for display
        * Swank::Security::show_actions
        * /group/* for permissions
        * actions for a subset of pages  (how?)

Hash for action information (in code updateable by plugins, or pages?)

        action/whatever
                text (text to show)
                mode(s)? or when to show (based on mode or current action?)
                        list of other actions to show?
                priority  (determine order?)
                (page.action)?  (plugin to Swank::Page?)
                permissions same as (e.g. history same access as html,
                        revert same access as submit,
                        submit same access as edit,
                        delete same access as edit??,
                        attach same access as edit,
                        email same access as html)

        show_actions
                view: html edit attach history emailpage
                edit: submit delete
                history: html history revert
                submit (redirect or re-edit)
                delete (redirect)
                revert (redirect)
                emailpage: (submit)
                attach: (as edit???  maybe no other action--upload on form)

        allow_top_action
                @group.allow_top_action