02-28-2011, 10:10 AM | #31 | ||
Grand Sorcerer
Posts: 11,760
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
My suspicion is that you are asking for a calibre GUI feature that would maintain a set driveinfo_uuid:(id, id, id ...) and be able to show you that information in a (custom) column. Sounds like a good plugin project, where the plugin would capture the information when the device is connected, and then be able to populate a column from the captured information when the device is not connected. Quote:
|
||
02-28-2011, 10:39 AM | #32 |
Well trained by Cats
Posts: 29,877
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I am doing a lousy job on conveying my idea. I will drop it .
|
Advert | |
|
02-28-2011, 11:31 AM | #33 | |
Grand Sorcerer
Posts: 11,760
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
This will eliminate the 'prefs' at the cost of requiring that the device name be constant across all uses. GUI support to set the device name is still required. |
|
02-28-2011, 12:08 PM | #34 |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Hmmm... just wondering out loud here but I can't help wondering if it still should be in prefs somewhere. The reason being I can see it being pretty common to want to have a dropdown of device names when setting up configuration for a plugin. If the name only exists on the device, then the plugin could only determine a name when that particular device is plugged in? Otherwise we are back to each plugin maintaining it''s own list of device names/uuids again?
Apologies if this doesn't make sense, just from my reading of the thread the proposed changes are only to the file which sits on the device - great for identifying the device while it is in but perhaps not quite enough to allow configuration for it while it is not? |
02-28-2011, 12:12 PM | #35 |
Well trained by Cats
Posts: 29,877
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
KIwidude.
You conveyed part of my idea way better |
Advert | |
|
02-28-2011, 12:20 PM | #36 | |
Grand Sorcerer
Posts: 11,760
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The question that arises is what do you do when you see a device for the first time? What name do you give it? The change I made permits you ask the user for a name, then store that name on the device. The next time a plugin (any plugin) sees the device, it will see that user-supplied name, even if on a different installation of calibre. The same issue arises (what name?) when I move my device around from calibre installation to calibre installation: how are the names kept in sync? For example, consider what happens when I give my XX device to my son. Its name would change (perhaps) from Charles' XX to Son's XX. This change might happen in his calibre installation. In that case, then when the device is plugged into mine I should see the new name he gave it, not the name it used to have when it was mine. In other words, when my installation sees a UUID it recognizes, then it should update the display name from the one found on the device. Or ask, but I think that would be annoying. |
|
02-28-2011, 12:37 PM | #37 |
creator of calibre
Posts: 43,927
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I think what kiwidude is asking for is a centrally maintained cache of seen uuid-name mappings that are automatically updated by the device subsystem on connect of a device.
|
02-28-2011, 12:53 PM | #38 |
Grand Sorcerer
Posts: 11,760
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yea, I know. However, having that cache will also require a) having the infrastructure to rename devices and cards, which leads immediately to b) changes to use that name wherever the device __class__.__name__ is used now. Then there would be the follow-on requests. For example, I am absolutely certain that within minutes of releasing such a thing, there will be requests to change plugboards to use the new device name instead of the current class name. Then after changing it to use device names, there will be complaints that the old way (generic class names) no longer works. Then when both are supported, there will be complaints that the two forms aren't kept in sync. There will be requests to make save templates device-name specific. And on and on. This isn't a hassle I am interested in taking on. I will leave it to the people who want to use this stuff.
|
02-28-2011, 12:54 PM | #39 | |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
But each plugin building up a device id/name map as it goes seems like some duplication that could be avoided if Calibre was to store a dictionary of UUID/name in prefs of devices it has "seen". The GUI around that would allow you to rename for a device (to cater for chaley's "my son" example), remove devices no longer used etc. Then each plugin could just query that dictionary to present options/menus for a user related to that device. |
|
02-28-2011, 01:04 PM | #40 |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
|
02-28-2011, 01:05 PM | #41 |
Grand Sorcerer
Posts: 11,760
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
02-28-2011, 01:11 PM | #42 |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Haha. Well, "someone" could, I'm still driving around on P plates when it comes to Python/Calibre and less hazardous to others in a plugin sandbox. Maybe if Kovid likes the idea meme will give it a go, after all he is the first cab off the rank who will likely want something like this
|
02-28-2011, 01:14 PM | #43 |
creator of calibre
Posts: 43,927
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Generally speaking if we are going to be uniquely identifying storage locations, then it makes sense to eventually move to using those ids in places where the device driver is used as a proxy for a storage location.
However, this is a *pain*, which is why I have always ignored feature requests that involve disambiguating between multiple devices that share the same driver. |
02-28-2011, 01:24 PM | #44 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
A proverbial can of worms
I think I'm in the same car you are kiwidude - its a bit more than I can take on right now. I can see why tracking things per device is a pain. And in many cases overkill - just because you can doesn't mean you should. Makes me wonder about my approach - is giving the user the ability to create different sets of collections for different devices really needed. But if the functionality will get added by chaley, then I'll use it |
02-28-2011, 01:34 PM | #45 |
Calibre Plugins Developer
Posts: 4,640
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Yeah I'm in the "if it was there I would use it" camp. I think there would be plenty of examples of things where you want to track stuff at the device rather than the class level. Syncing news/books to a device being a perfect example of one of them - to a "class" of device makes no sense, to a specific device does.
I can also see that just because two family members use the same model of Kindle doesn't mean they want their collections organised in the same way - Mum just wants them by author, son wants series and genre tags etc. However given the enormity of then also changing existing functionality like plugboards etc to allow device vs class specific there is no way I can offer anything but thanks to the kind soul who does sort this out one day. "If you build it they will come"... |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do you pick names? | AgentBEATS | Writers' Corner | 32 | 02-22-2011 10:03 AM |
Confused about names | shinnosuke | BeBook | 8 | 04-24-2010 11:33 AM |
Publisher's Names | emonti8384 | General Discussions | 10 | 04-05-2010 12:05 AM |
Author names | superplinio | Calibre | 6 | 02-27-2010 04:58 AM |
Help me out with a couple of names | ardeegee | Lounge | 12 | 09-27-2009 03:41 AM |