Lambda attribute error in script, perspective view

I have a Transform script with a lambda function inside of it that has an error stating that the object has no attribute value. What the script is doing is looking for the user roles and returning a bool. Thanks in advance
Code:
def transform(self, value, quality, timestamp):
“”"
Transform the incoming value and return a result.

Arguments:
	self: A reference to the component this binding is configured on.
	value: The incoming value from the binding or the previous transform.
	quality: The quality code of the incoming value.
	timestamp: The timestamp of the incoming value as a java.util.Date
"""
return value.admin or bool(filter(lambda x: x.value['Enabled'].value, value.databases))

What datatype is value.databases?

What datatype is view.custom.databases?

This script was already in this project and not developed by myself. The project was imported this way, sorry for the lack of my understanding I’m new to this.

You’ll have to look at the binding for view.custom.databases.

def transform(self, value, quality, timestamp):
“”"
Transform the incoming value and return a result.

Arguments:
	self: A reference to the component this binding is configured on.
	value: The incoming value from the binding or the previous transform.
	quality: The quality code of the incoming value.
	timestamp: The timestamp of the incoming value as a java.util.Date
"""
return [{'label': '%s (%s)%s' %(db.Name, db.DBType, '' if db.Status == 'Valid' else '[OFFLINE]'), 'value': db.Name} for db in filter(lambda x: x['Enabled'], value)]

When the project was imported the custom property looks as if it wasn’t, and that may be the problem…