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 ng.zcmlmultiform

How to install ng.zcmlmultiform

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install ng.zcmlmultiform
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.5 Available View build log
Windows (64-bit)
0.0.5 Available View build log
Mac OS X (10.5+)
0.0.5 Available View build log
Linux (32-bit)
0.0.5 Available View build log
Linux (64-bit)
0.0.5 Available View build log
Web
 
Author
License
GPL v2.1
Dependencies
Depended by
Lastest release
version 0.0.5 on Jan 5th, 2011

Package was developed to create content edit multiform by means of several subform compound. Each subform appointed to edit some of interfaces content-component.

Subform displayed only when needed interface is provided by component. This approach allow create universal forms fit to edit large set of component.

The multiform is like to context menu: content chooses automaticaly in depend from interfaces provided by content. However, using multiform is rather then menu, because of clicks number is fewer.

Directive definitions

Package introduce two directives: multiform and multiformitem, relations beetween ones is like on menu and menuitem directives. Multiform define place for content, Multiform item define content.

multiform

The directive allow to define multiform created from several simple form. Binding form and multiform is defined by means of interfaces entered in manager fields of both directive multiform and multiformitem. It's to be equal or have some level affinity.

name : TextLine Name of multiform page in web

permission : Permission The permission needed to use the view of forms.

class : GlobalObject Mix-In class supplied helper attributes and methods for the multiform view .

for : GlobalObject The interface or class this multifirm view is for.

label : MessageID The title of multiform.

layer : GlobalInterface The skin the view is in.

manager : GlobalObject Interface used to bound page and forms contents from.

menu : MenuField The browser menu to include the page (view) in. Many views are included in menus. It's convenient to name the menu in the page directive, rather than having to give a separate menuItem directive.

template : Path (по умолчанию = None) Page template Refers to a file containing a page template (should end in extension .pt or .html).

title : MessageID The browser menu label for the page (view) This attribute must be supplied if a menu attribute is supplied.

mulltiformitem

The directive used to define multiform item.

permission : Permission The permission needed to use the view of forms.

schema : GlobalInterface The schema from which the form is generated.

class : GlobalObject Mix-In class supplied helper attributes and methods for the form.

for : GlobalObject The interface or class this form is for.

layer : GlobalInterface The skin the view is in.

manager : GlobalObject Interface used to bound page and forms contents from.

name : TextLine (по умолчанию = None) Name of form, used to distinguish form in inner presentation algorithm.

order : Int (по умолчанию = None) Form order

template : Path Form template. Refers to a file containing a template (should end in extension .pt or .html).

fields : Tokens List of fields to display in form item.

Subdirective widget

Register custom widgets for a form. This directive allows you to quickly generate custom widget directives for a form. Besides the two required arguments, field and class, you can specify any amount of keyword arguments, e.g. style='background-color:#fefefe;'. The keywords will be stored as attributes on the widget instance. To see which keywords are sensible, you should look at the code of the specified widget class.

field : TextLine Field Name, The name of the field/attribute/property for which this widget will be used.

class : GlobalObject Widget Class. The class that will create the widget.

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

Bullet list ends without a blank line; unexpected unindent.
  • A few comments and debug statements removed.

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

Bullet list ends without a blank line; unexpected unindent.
  • Field "fields" added into multiform directive to do enumeerate

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

Bullet list ends without a blank line; unexpected unindent.

fields possible.

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

Bullet list ends without a blank line; unexpected unindent.
  • Documentation enchanced

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

Bullet list ends without a blank line; unexpected unindent.
  • Form update occurred before rendering
  • Error messages displayed correctly
  • Some docimentation is in state of write :)

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

Bullet list ends without a blank line; unexpected unindent.
  • first official release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.