Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyramid_workflow
README.txt
setup.cfg
setup.py

README.txt

pyramid_workflow
=============================

::

   @workflow_config(
      type="security",
      name="the workflow",
      state_attr="state",
      initial_state="private",
      content_types=".dummy.IContent",
      permission_checker="repoze.bfg.security.has_permission")
   class SecurityWorkflow(object):
   
      private = State(callback=".dummy.callback",
           title="Private",
           description="Nobody can see it")
   
      public = State(callback=".dummy.callback",
        title="Public",
        description="Everybody can see it")
   
      public_to_private = Transition(
         callback=".dummy.callback",
         from_state="public",
         to_state="private",
         permission="moderate")
   
      private_to_public = Transition(
         callback=".dummy.callback",
         from_state="private",
         to_state="public",
         permission="moderate")

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.