{"id":25176369,"url":"https://github.com/redturtle/collective.powertoken.view","last_synced_at":"2025-04-04T01:40:54.443Z","repository":{"id":2165530,"uuid":"3111637","full_name":"RedTurtle/collective.powertoken.view","owner":"RedTurtle","description":"View and content access add-ons for collective.powertoken support for Plone","archived":false,"fork":false,"pushed_at":"2022-12-13T17:49:45.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-19T17:09:57.834Z","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":null,"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-05T16:56:54.000Z","updated_at":"2014-06-21T18:09:28.000Z","dependencies_parsed_at":"2023-01-11T16:08:18.336Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/collective.powertoken.view","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fcollective.powertoken.view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/collective.powertoken.view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107820,"owners_count":20884795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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.712Z","updated_at":"2025-04-04T01:40:54.419Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\nA \"view document\" 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\n\"view\" document.\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, 'view.viewDocument')\n\u003e\u003e\u003e results = utility.consumeActions(document, token)\n\u003e\u003e\u003e print results\n\u003c!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ...\n...\n\u003c/html\u003e\n\nYou will get the view output as result.\n\nParameters\n----------\n\n``view``\n    Call a different Zope view on the context, not the current or default ones.\n``cmfcallable``\n    Call a CMF Template/skins resource on the context\n``setToRequest``\n    A dict with additional values to set in the request. For example you can set ``disable_border``, or\n    (only for Plone 4) ``disable_plone.leftcolumn`` and ``disable_plone.rightcolumn``.\n\nAll parameters are not mandatory. Providing none of theme will call the content default view, without addind\nanything new to the request.\n\nUse case\n========\n\n* You can view a document, regardless of it's review state and your roles in the site.\n* You can call a view on a context, overriding the user security permission.\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.view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Fcollective.powertoken.view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fcollective.powertoken.view/lists"}