Skip to content

Commit

Permalink
Refers #665: add documentantion for uuidhandler (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi authored Feb 17, 2021
1 parent 8f473c7 commit b10c0f8
Showing 1 changed file with 23 additions and 0 deletions.
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

0 comments on commit b10c0f8

Please sign in to comment.