Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Plone.api for TAL, use in pt file

Project Description
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
If you want to learn more about writing documentation, please check out:
This text does not appear on pypi or github. It is a comment.


Plone.api for TAL, use in pt file.

The plone.api is an elegant and simple API, built for humans wishing to develop with Plone.

But, at template file(*.pt), these useful functions can not be used directly, such as 'api.portal.get()'

Through browerview's design, so that these functions can be used on the pt file.


- **@@portal_get** mapping to **api.portal.get()**
- **@@user_get_current** mapping to **api.user.get_current()**
- **@@user_is_anonymous** mapping to **api.user.is_anonymous()**


For example, you can use **@@user_is_anonymous** at template, such as:

<div tal:condition="context/@@user_is_anonymous">

or, you can use **@@portal_get** at template, such as:

<div tal:define="portal context/@@portal_get">


Install collective.api4tal by adding it to your buildout::



eggs =

and then running "bin/buildout"


- Issue Tracker:
- Source Code:


If you are having issues, please let us know.
We have a mailing list located at:


The project is licensed under the GPLv2.


- andy fang,


0.1 (unreleased)

- Initial release.
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.api4tal-0.1.tar.gz (9.1 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting