Register a subscriber
factory
-
GlobalObject
(default =
None
)
A factory used to create the subscriber instance.
for_
-
Tokens
(default =
None
)
This should be a list of interfaces or classes
handler
-
GlobalObject
(default =
None
)
A callable object that handles events.
locate
-
Bool
(default =
False
)
Make the subscriber a locatable subscriber
Located subscribers should be used if a non-public permission is used.
permission
-
Permission
(default =
None
)
This subscriber 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 subscriber a trusted subscriber
Trusted subscribers have unfettered access to the objects they adapt. If asked to adapt security-proxied objects, then, rather than getting an unproxied subscriber of security-proxied objects, you get a security-proxied subscriber of unproxied objects.
* = required