wainuiomata / sambal

Experimental web admin for Samba and Active Directory domains
https://wainuiomata.com
GNU General Public License v3.0
1 stars 1 forks source link

resource: fix resource from model lookup now uses hierarchy correctly #46

Closed robvdl closed 8 months ago

robvdl commented 8 months ago

It keeps traversing the object hierarchy until it finds one that isn't None.

If it gets exhausted (that shouldn't happen) it just returns Resource, but the last loop iteration should already do that as it hits "top".

Also add some docstrings to resource.py

Fixes #38