adxsoft / opmltomm Goto Github PK
View Code? Open in Web Editor NEWPython script to convert OPML files to Freeplane/Freemind files
License: GNU General Public License v2.0
Python script to convert OPML files to Freeplane/Freemind files
License: GNU General Public License v2.0
Firstly, thank you very much for writing the instructions for executing Jython scripts within Freeplane. They work.
Unfortunately, Freeplane doesn't seem to refresh what it thinks the contents of a .py
file is unless you bounce the Freeplane App (I'm using macOS SIerra running the latest stable Freeplane -- 1.5.21 using the embedded JRS 1.8.0_131).
I know that I can do some groovy trickery and use PythonInterpreter.execfile('/abspath/to/script')
, but that seems hokey, and then I need two scripts for each Python script (the .groovy wrapper and the actual .py script).
Do you know how to force Freeplane or Jython to 'refresh' what it thinks is the contents of the script file? Much thanks!
Traceback (most recent call last):
File "opmltomm.py", line 288, in
main()
File "opmltomm.py", line 284, in main
opml2mm.convert_to_mm(input_opml_file,output_mm_file)
File "opmltomm.py", line 186, in convert_to_mm
self.nodetree[depth] = ET.SubElement(self.nodetree[depth-1], "node",attrib=attributes)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 530, in SubElement
element = parent.makeelement(tag, attrib)
AttributeError: 'str' object has no attribute 'makeelement'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.