Module ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body ImportFrom alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A aleph.core db aleph.model.common SoftDeleteModel IdModel Permission N/A N/A db Model IdModel SoftDeleteModel N/A N/A A set of rights granted to a role on a resource. N/A __tablename__ permission N/A COLLECTION collection N/A SOURCE source N/A RESOURCE_TYPES N/A COLLECTION SOURCE N/A id N/A N/A db Column N/A db Integer primary_key True N/A role_id N/A N/A db Column N/A db Integer N/A N/A db ForeignKey role.id index True N/A read N/A N/A db Column N/A db Boolean default False N/A write N/A N/A db Column N/A db Boolean default False N/A resource_id N/A N/A db Column N/A db Integer nullable False N/A resource_type N/A N/A db Column N/A N/A db Enum name permission_type RESOURCE_TYPES nullable False grant_foreign N/A N/A cls resource foreign_id read write N/A N/A aleph.model Source Collection Role N/A role N/A N/A Role by_foreign_id foreign_id N/A N/A role None N/A N/A N/A N/A isinstance resource Source N/A N/A N/A N/A cls grant_resource N/A cls SOURCE N/A resource id role read write N/A N/A isinstance resource Collection N/A N/A N/A N/A cls grant_resource N/A cls COLLECTION N/A resource id role read write N/A classmethod grant_resource N/A N/A cls resource_type resource_id role read write N/A N/A N/A q N/A N/A cls all N/A q N/A N/A q filter N/A N/A Permission role_id N/A role id N/A q N/A N/A q filter N/A N/A Permission resource_type resource_type N/A q N/A N/A q filter N/A N/A Permission resource_id resource_id N/A permission N/A N/A q first N/A N/A permission None N/A N/A permission N/A Permission N/A N/A permission role_id N/A role id N/A N/A permission resource_type resource_type N/A N/A permission resource_id resource_id N/A N/A permission read read N/A N/A permission write write N/A N/A N/A N/A db session add permission N/A permission N/A classmethod to_dict N/A N/A self N/A N/A N/A N/A role read write resource_id resource_type N/A self role_id N/A self read N/A self write N/A self resource_id N/A self resource_type N/A N/A