Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    collective.wfform 1.0 Alpha 1

    Download button

    No screenshots available
    Downloads: 76  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Davis | More programs
    GPL / FREE
    May 1st, 2012, 09:52 GMT
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    collective.wfform description

    Gives a developer the ability to present a z3c.form during a workflow transition

    collective.wfform is a Plone product that gives a developer the ability to present a z3c.form during a workflow transition.

    To implement this for a transition in a particular workflow, change the transition url from:

    %(content_url)s/content_status_modify?workflow_action=submit

    to:

    %(content_url)s/workflow_transition_form?workflow_action=submit

    This will give you a jQuery popup form with a comments field. To add your own fields, add a method to your content type which returns a z3c schema based on the transition.

        security.declareProtected(permissions.ModifyPortalContent, 'getSchemaForTransition')
        def getSchemaForTransition(self, transition):
            """Return a fieldset depending on the transition"""
            if transition == 'my_transition':
                return IMyTransitionForm


    IMyTransitionForm should be a standard interface class with a zope3 schema.

    To process the data from the form, add another method onto your class to manage this.

        security.declareProtected(permissions.ModifyPortalContent, 'processTransitionForm')
        def processTransitionForm(self, data):
            """Return a fieldset depending on the transition"""
            if data.has_key('my_field'):
                self.setMyField(data['my_field'])



    Product's homepage

    Requirements:

    · Python
    · Plone CMS

      


    TAGS:

    workflow transition | Plone z3c.form | Plone | workflow | transition

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM