fixes to document views
PEP8 fix
merged doc security fix
Merge pull request #1707 from state-hiu/resourcebase_fix

Fixes to Document Views