Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.formlib.link

How to install collective.formlib.link

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.formlib.link
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
0.1 Available View build log
Windows (64-bit)
0.2 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
0.1 Available View build log
Linux (32-bit)
0.2 Available View build log
0.1 Available View build log
Linux (64-bit)
0.2 Available View build log
0.1 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 0.2 on Jul 2nd, 2011

Overview

This package provides a schema field that combines an internal and external link representation. It's relatively low-tech.

It provides a widget that lets users enter links on the format:

"Title":internal path or URI:"Description"

Both title and description are optional. If an internal path is given, the field tries to resolve the object and stores only its UID.

Requirements

  • Zope 2.10.4+

Usage

Include the ZCML-slug for the package to register the widget with formlib.

A schema definition for a field carrying a single link:

>>> from collective.formlib.link.field import Link
>>> field = Link(title=u"Link")

A list of link fields:

>>> from zope import schema
>>> field = schema.List(
...     title=u"Links",
...     value_type=Link)

To render the link from a page template:

<a tal:attributes="href link/@@absolute_url;
title link/description"

System Message: WARNING/2 (<string>, line 40)

Block quote ends without a blank line; unexpected unindent.

tal:content="link/pretty_title_or_uri" />

Subscribe to package updates

Last updated Jul 2nd, 2011

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.