omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Determining if JSON is a valid pyui file

    Pythonista
    3
    4
    3327
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Webmaster4o
      Webmaster4o last edited by Webmaster4o

      When I'm outside of Pythonista, what are defining characteristics of pyui files that I might use to separate these from other JSON files?

      1 Reply Last reply Reply Quote 0
      • Olaf
        Olaf last edited by Olaf

        I'd say, list of dict with ('class', 'View') as one of its items and 'frame' as another key would be pretty telling. But it wouldn't provide 100% absolute dead-sure unmistakable certainty, I'm afraid, so don't use this if trying to control a nuclear reactor or pacemaker

        1 Reply Last reply Reply Quote 1
        • Webmaster4o
          Webmaster4o last edited by

          @Olaf lol, thanks. No nuclear reactors, so I'm good.

          Phuket2 1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 @Webmaster4o last edited by

            @Webmaster4o , maybe not what you are looking for, but couldn't you write an extra key out to the files. I assume they would be ignored by Pythonista

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Powered by NodeBB Forums | Contributors