Register an adapter
factory
*
-
Tokens
(default =
None
)
A list of factories (usually just one) that create the adapter instance.
for_
-
Tokens
(default =
None
)
This should be a list of interfaces or classes
locate
-
Bool
(default =
False
)
Make the adapter a locatable adapter
Located adapter should be used if a non-public permission is used.
name
-
TextLine
(default =
None
)
Adapters can have names.
This attribute allows you to specify the name for this adapter.
permission
-
Permission
(default =
None
)
This adapter is only available, if the principal has this permission.
provides
-
GlobalInterface
(default =
None
)
This attribute specifies the interface the adapter instance must provide.
trusted
-
Bool
(default =
False
)
Make the adapter a trusted adapter
Trusted adapters have unfettered access to the objects they adapt. If asked to adapt security-proxied objects, then, rather than getting an unproxied adapter of security-proxied objects, you get a security-proxied adapter of unproxied objects.
* = required