![]() Registered Member ![]()
|
Hello, thanks to authors for good tellico!
I'm compile tellico 3.2.3 on Debian 10 (KDE Frameworks 5.54.0, compiled with Qt 5.14.0) I create own data source - to get xml data from python scrypt. In .config/tellicorc this source in this lines:
In my collection (<collection title="<Skipped>" type="1">) I have several bool fields (from tellico.xml within my tc-file):
When I search new entries via my data source, I get xml-response from my py-script, and tellico fetcher received and recognize it correctly. Py-script send in xml code this lines within <entry>...</entry> part:
(<fields>...</fields> part for this xml code extracted from main tc-file) And in entry-view in fetcher ALL this fields viewed as TRUE. And after adding, in main tellico window all they fields viewed as true also. (Into edit entry dialog also) But in updated tellico.xml within my tc-file this fields have correctly values:
UPD: If I edit entry, and check\uncheck this fields - they viewed correctly after this. Can anybody help in this situation? May be problem into XSL? |
![]() KDE Developer ![]()
|
You're right, that's not the best or expected behavior. It's lazy programming on my part. By default, when Tellico writes a data file, if the bool field is false or not set, then the field is not written into the xml at all. And vice-versa, when Tellico reads the xml, if the xml node is present and non-empty at all, it's considered true, even if the text says "false". Until i fix that, the workaround is to just not output the field at all if it's a false value. Hopefully, you can implement that in your code without too much trouble. |
![]() Registered Member ![]()
|
Thank you, Robby, really it's work for me now. Thank you!
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]