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.


    My Blog Post on iOS9 Slide Over

    Pythonista
    2
    4
    3206
    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.
    • MartinPacker
      MartinPacker last edited by MartinPacker

      Not off-topic, I think.

      This blog post of mine uses some Pythonista code.

      Might spark some thoughts and discussion here.

      For one, how to stop the pythonista web server script quitting on me. (Not sure it's just when I shut Pythonista down.)

      Anyhow here it is:

      Slide Over A Bit

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

        That's interesting. It looks it still needs the user to paste in text? It'd be cool if the SlideOver pane could programmatically access the text that is selected in the background window.

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

          I agree.

          By the way does anyone know how to get simpleHTTPServer to serve a Content-Type header of

          text/cache-manifest

          equivalent to:

          AddType text/cache-manifest .manifest

          as this would enable offline web apps - so Pythonista could go down once the page has been served ONCE?

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

            Solved - using BaseHTTPServer and handling do_GET to add the Content-Type header and then serve the file contents.

            (This helped a lot.)

            So now Pythonista can serve Offline Web Apps. Which means it can go down and still Safari bookmark in Slide Over can access the "widget".

            Might couple that with a Workflow flow that invokes URLs from a palette and publish a follow up web post.

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