Skip to content

Issue with table.view() #2010

@jisnajc

Description

@jisnajc

I need to delete the perspective table in python as part of session clearing. But table.delete() function throws an error like this. 'Cannot delete a Table with active views still linked to it - call delete() on each view, and try again.' When I tried to list the views associated to table with table.view() function , its not giving the views but views are listed in table._views array. How can I get the views of a table and delete it one by one before the table.delete?
Please find the below image for the error.
Capture

Also I want to know the best approach for session handling in perspective python API. How can we clear the tables stored in session on closing of web socket by each user? I want to delete tables in session for that particular user. Is it auto handled by perspective? If not Is there any user - table mapping info available? Please guide me with the best possible approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonquestionQuestions about use, potential features, or improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions