Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
rel Type of link - alternate, related, edit, or edit_form. |
|||
view View function handling requests to this link. |
|||
title Human-readable title for the link to be shown in the user interface. |
|||
method For rel=edit links, identifies whether a form should be requested or that url should just be POST'ed to. |
|||
type MIME type of this link, useful for alternate links. |
|||
slug Part of this link's path. |
|||
select Determines whether this link accepts requests with single or multiple instances of a feature class. |
|||
extra_kwargs Extra keyword arguments to pass to the view. |
|||
generic Whether this view can be applied to multiple feature classes. |
|||
models List of feature classes that a this view can be applied to, if it is generic. |
|||
confirm Confirmation message to show the user before POSTing to rel=edit link |
|||
edits_original Set to false for editing links that create a copy of the original. |
|||
must_own Whether this link should be accessible to non-owners. |
|||
limit_to_groups Allows you to specify groups (a list of group names) that should have access to the link. |
|
Ensures view has a compatible signature to be able to hook into the features app url registration facilities For single-select views must accept a second argument named instance For multiple-select views must accept a second argument named instances Must also ensure that if the extra_kwargs option is specified, the view can handle them |
Links are registered with named-urls. This function will return that name so that it can be used in calls to reverse().
|
Returns either the slug of the only model this view applies to, or 'generic'
|
Can be used to get the url for this link. In the case of select=single links, just pass in a single instance. In the case of select=multiple links, pass in an array. |
|
typeMIME type of this link, useful for alternate links. May in the future be used to automatically assign an icon in the dropdown Export menu. |
selectDetermines whether this link accepts requests with single or multiple instances of a feature class. Valid values are "single", "multiple", "single multiple", and "multiple single". |
edits_originalSet to false for editing links that create a copy of the original. This will allow users who do not own the instance(s) but can view them perform the action. |
must_ownWhether this link should be accessible to non-owners. Default link behavior is False; i.e. Link can be used for shared features as well as for user-owned features. If edits_original is true, this implies must_own = True as well. |
limit_to_groupsAllows you to specify groups (a list of group names) that should have access to the link. Default is None; i.e. All users have link access regardless of group membership |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Oct 30 11:31:02 2012 | http://epydoc.sourceforge.net |