Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refers #6952: add documentantion for uuidhandler #78

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions basic/settings/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2248,6 +2248,29 @@ USER_ANALYTICS_GZIP
To be used with ``USER_ANALYTICS_ENABLED``.
Compress ``gzip`` json messages before sending to ``logstash``.


UUID HANDLER
------------

Is possible to define an own uuidhandler for the Layer.

To start using your own handler, is needed to add the following configuration:

`LAYER_UUID_HANDLER = "mymodule.myfile.MyObject"`

The Object must accept as `init` the `instance` of the layer and have a method named `create_uuid()`

here is an example:

| class MyObject():
| def __init__(self, instance):
| self.instance = instance
|
| def create_uuid(self):
| # here your code
| pass


X
=

Expand Down