Skip to content

extending proxies with the actual backend? #123

Description

@sqlalchemy-bot

Migrated issue, originally created by jvanasco (jvanasco)

In several situations, I must access the actual backend of a dogpile region which has multiple proxies applied by wraps.

i've usually been handling it during setup by caching the value onto the topmost object after configuring the region. I derive the actual backend via...

_backend = region.backend
while hasattr(_backend, 'proxied'):
    _backend = _backend.proxied

i think accessing this is useful to enough people, so I propose extending wraps/ProxyBackend to track the final proxy/actual backend on the object within dogpile itself.

I am willing to generate a PR, but if there are objections to this I won't bother.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions