feat(sdk): per-document origin Python bindings #391
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Expose the existing C++ per-document origin tracking through the Python SDK so addons can query and set origins per document.
Current state (PARTIAL)
C++ side is fully implemented in
OriginManager:setDocumentOrigin(App::Document*, FileOrigin*)originForDocument(App::Document*)findOwningOrigin(App::Document*)clearDocumentOrigin(App::Document*)signalDocumentOriginChangedPython SDK (
kindred_sdk/origin.py) only exposes global origin queries:active_origin(),set_active_origin(),get_origin(),list_origins()document_origin(doc)orset_document_origin(doc, origin_id)Proposed API
Enables mixed workflows where some tabs are local and others are Silo-tracked.
Implementation notes
OriginManager::originForDocument()andsetDocumentOrigin()document_origin(),set_document_origin()tokindred_sdk/origin.pyApp.Documentobject or document name stringRoadmap
v0.2.0 — Origin System