{ "info": { "author": "andy fang", "author_email": "andy@mingtak.com.tw", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Plone", "Framework :: Plone :: 5.0", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": ".. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.\r\n If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide_addons.html\r\n This text does not appear on pypi or github. It is a comment.\r\n\r\n==============================================================================\r\ncollective.api4tal\r\n==============================================================================\r\n\r\nPlone.api for TAL, use in pt file.\r\n\r\nThe plone.api is an elegant and simple API, built for humans wishing to develop with Plone.\r\n\r\nBut, at template file(*.pt), these useful functions can not be used directly, such as 'api.portal.get()'\r\n\r\nThrough browerview's design, so that these functions can be used on the pt file.\r\n\r\nFeatures\r\n--------\r\n\r\n- **@@portal_get** mapping to **api.portal.get()**\r\n- **@@user_get_current** mapping to **api.user.get_current()**\r\n- **@@user_is_anonymous** mapping to **api.user.is_anonymous()**\r\n\r\nExamples\r\n--------\r\n\r\nFor example, you can use **@@user_is_anonymous** at template, such as:\r\n\r\n