View Single Post
Old 07-01-2019, 10:00 PM   #495
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
Tweaks > Plugins: Implicitly Unicode

Quote:
Originally Posted by Rellwood View Post
Was wondering if you could add a feature that could create a copy/paste file with selected column names in the format needed to add to tweaks or other areas where the need for column names in the format of u'#column_name',.
You never need to put the Python 2 Unicode prefix u in front of a plugin's tweak. You should not even see that. Users should never be expected to deal with such a thing.

Apparently the recent changes to Calibre for Python 3 have caused some corruption of what a user sees in Preferences > Tweaks > Plugins. Never before did the u exist.

This is what my Calibre 3.44 Plugins > Tweak for "Library Specific Auto-Add Directories" now looks like:


Code:
job_spy_auto_add_directory  = {u'CalibreJobSpyTest5': u'x:/auto_add_dir5', u'CalibreJobSpyTest4':  u'x:/auto_add_dir4', u'CalibreJobSpyTest1': u'x:/auto_add_dir1',  u'CalibreJobSpyTest3': u'x:/auto_add_dir3', u'CalibreJobSpyTest2':  u'x:/auto_add_dir2'}
It used to never have the u's. The values were previously implicitly Unicode. For some reason they are now being shown by Calibre as explicitly Unicode. That is fine; they still work. However, users need specify only a simple '#column_name' without the leading explicit Unicode u prefix, then click "Save".



DaltonST
DaltonST is offline   Reply With Quote