View Single Post
Old 09-09-2018, 01:47 PM   #9
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
CalibreSpy in a Multi-User Environment

Quote:
Originally Posted by CKLJ001 View Post
BetterRed,
Thanks for the heads up that does looks like what I'm looking for.

CKLJ001:


CalibreSpy is "read-only" as regards a Library's books etc. However, its own "Library-specific Settings" are obviously not "read-only", and are stored in a CalibreSpy-specific table, _calibrespy_settings, in each Library's metadata.db.

There is a potential conflict caused by multiple users viewing the identical Calibre Library simultaneously with CalibreSpy, and simultaneously wanting to change the CalibreSpy "Library-specific Settings", such as for Font, Font Size, Colors, and even which Custom Columns to show (and in what order from left to right). I am evaluating solutions for the above, but in the meantime, it would be a good idea to tell your people to not mess with the "Library-specific Settings" that you have chosen for them.

Also, each command file that executes CalibreSpy via CLI implicitly references a particular user's Calibre configuration folder that contains its plugins etc. For Windows, it is: C:/Users/USERNAME/AppData/Roaming/calibre/plugins. That directory has a subdirectory, /calibrespy_cli, that contains the icon image files dynamically loaded by CalibreSpy. Each command file CLI execution of CalibreSpy must have access to an appropriate /calibre/plugins/calibrespy_cli directory.

I originally wrote CalibreSpy just for myself to use on my tiny Windows 10 Tablet running Calibre64 that I use as my e-reading device. In other words, a single-user on a single PC having multiple Libraries.

It seems that CalibreSpy may have tapped into other unfilled needs.


Added:I am testing enhancements to track multiple users who are viewing the identical Library simultaneously. This includes a single user who runs CalibreSpy twice for the identical Library. Essentially, it will be "first come, first served" for access to the "Customize CalibreSpy" button in the lower left corner. The 2nd or 3d or whatever CalibreSpy simultaneous instances for that identical Library will have their "Customize CalibreSpy" button hidden. You cannot click what you cannot see. There are some other sequelae, such as not saving the 'state' of the matrix at exit for the 2nd or 3d or whatever users, since the 1st user may have changed some Library-specific preferences while the other users were active. I will also provide the means to easily "reset" the multi-user 'status' for a Library if ever needed due to a PC crash or network disconnect or whatever. It will likely be a trivial Python script executed via calibre-debug.



DaltonST

Last edited by DaltonST; 09-09-2018 at 05:15 PM. Reason: More info.
DaltonST is offline   Reply With Quote