Here is a snippet to get you started: 
https://gitlab.com/mayan-edms/mayan-edms/snippets/13221

   - On a production deployed install, create a folder named 'scripts' and 
   put this snippet inside it.
   - Add your access control list (role, document type, permissions) to the 
   line: https://gitlab.com/mayan-edms/mayan-edms/snippets/13221#L34
   - Make it executable with chmod +x.
   - Activate virtualenv if used.
   - Execute it.

The script uses `get_or_create` method so you can run it several time and 
it will only create the access lists once. I tested it with the install 
generated by the docker-compose method 
(https://gitlab.com/mayan-edms/mayan-edms-docker)


On Tuesday, January 12, 2016 at 4:47:16 PM UTC-4, LeVon Smoker wrote:
>
> I've had a few failed attempts at getting to the data through the Django 
> ORM. I'd like to get at the ACLs model so I can create a bunch of document 
> types (via a script) with varying roles and identical permissions lists.
>
> Is the ORM a reasonable way to do this?
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to