{"id":25176371,"url":"https://github.com/redturtle/collective.powertoken.workflow","last_synced_at":"2026-06-29T06:31:29.726Z","repository":{"id":2157845,"uuid":"3103324","full_name":"RedTurtle/collective.powertoken.workflow","owner":"RedTurtle","description":"A mechanism for bypass Plone security, accessing specific URLs while giving a secret token (core package)","archived":false,"fork":false,"pushed_at":"2012-02-15T14:54:53.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T01:41:25.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ga-wdi-boston/wdi_4_rails_demo_polymorphic","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTurtle.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-04T16:26:11.000Z","updated_at":"2014-01-12T23:10:08.000Z","dependencies_parsed_at":"2022-09-04T18:11:14.712Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/collective.powertoken.workflow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/RedTurtle/collective.powertoken.workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/collective.powertoken.workflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34916409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T13:16:59.717Z","updated_at":"2026-06-29T06:31:29.705Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\nA workflow action implementation for `collective.powertoken`__.\n\n__ http://plone.org/products/collective.powertoken.core\n\nHow to use\n==========\n\nAdd this product to your Plone installation, then you will be able to register Power Tokens that\nperforms workflow action when consumed.\n\n\u003e\u003e\u003e from collective.powertoken.core.interfaces import IPowerTokenUtility\n\u003e\u003e\u003e utility = getUtility(IPowerTokenUtility)\n\u003e\u003e\u003e token = utility.enablePowerToken(document, 'workflow.doAction', workflow_action='publish')\n\u003e\u003e\u003e results = utility.consumeActions(document, token)\n\u003e\u003e\u003e print results\n['published']\n\nYou will get the new state of the document as result.\n\nYou can optionally add a runtime parameter to the action provider, for adding also the\nworkflow state change comment.\n\n\u003e\u003e\u003e token = utility.enablePowerToken(document, 'workflow.doAction', workflow_action='retract')\n\u003e\u003e\u003e results = utility.consumeActions(document, token, comment=\"Hello! I hide this!\")\n['private']\n\nParameters\n----------\n\n``workflow_action`` (configuration parameter)\n    Required. You need to provide the workflow action to perform.\n\n``comment`` (runtime parameter)\n    Optional. Use to save also a comment to the workflow action.\n\nUse case\n========\n\nYou can perform a state change for a document, regardless of your roles in the site.\n\nAuthors\n=======\n\nThis product was developed by RedTurtle Technology team.\n\n.. image:: http://www.redturtle.it/redturtle_banner.png\n   :alt: RedTurtle Technology Site\n   :target: http://www.redturtle.it/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fcollective.powertoken.workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Fcollective.powertoken.workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fcollective.powertoken.workflow/lists"}