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.


    [Share Code] Tool to synchronize with a WebDav server

    Pythonista
    webdav share git
    4
    28
    27471
    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.
    • mikael
      mikael last edited by

      Sure, it is the MarkdownView repository: mikaelho / pythonista-markdownview

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

        Take a look at my clone https://github.com/marcus67/pythonista-markdownview. It contains a working configuration file in the etc subdirectory. You may want to change the name of the local directory. The name of remote directory is basically set by the cloning step in "working copy" since the app uses the project name in GitHub as base directory.

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

          Apparently, your version of "working copy" returned the dot directory ".git" before my version did (it does now). So, at first I could not reproduce the error. The new version of my app is able to handle the .git subdirectory. It is simply suppressed automatically.

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

            Hmm I'm unable to get it to work with my working copy. Idk why it's still getting its access denied. Should probably import from easywebdav instead of forcing the user to slap the client file outside if the folder.

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

              There's an issue with authentification in the easywebdav module. If you are using the tool locally, try to switch the WebDav server to localhost and remove user and password both in working copy and in gitsynchista. Then, try again.

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

                Fantastic, it works. Now I can keep all of my scripts backed up on github.

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

                  @miwagner1 : Glad you like it. By the way: I'm working on a simple GUI for pythonista which lets you pick the application to sync and see a preview of which files will be synched. I'm still having a little trouble with the x-url-callbacks of Working Copy but, in general, it works. I'll write a post when I think that it can be used by others.

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

                    Works now for me as well.

                    Although I have problems with:

                    • Working Copy always displaying an empty repositories list when I run the script, takes a long moment and is of no apparent value to me. Plus always turns the WebDav server off so that I have to go and turn it on a second time. Probably related to the callbacks you are working on.
                    • I am not able to provide an argument to the script (Pythonista is not saving the argument for some reason).
                    palmin 1 Reply Last reply Reply Quote 0
                    • palmin
                      palmin @mikael last edited by

                      @mikael I am the developer of Working Copy.

                      I will be looking at this delay you experience when doing x-callback-url commands. I have heard about this before and it should not be that way.

                      When Working Copy is put in the background it will only be allowed to run for a little while before being put to sleep by iOS and then the WebDAV server shuts down as well. Could this be what you experience?

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

                        @mikael: Until I've found out what I'm doing wrong with the x-url-callbacks simply deactivate the automatic webdav server wakeup by getting the latest version of the tool and inserting

                        [repository]
                        
                        working_copy_wakeup = False
                        

                        into your configuration file.

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

                          @palmin : It was me who wrote you mail about the blocking x-url-callbacks about two days ago. :-) If I have time tonight I will try with the latest versions of both Pythonista and Working Copy and send you a more detailed description of the phenomenon.

                          palmin 1 Reply Last reply Reply Quote 1
                          • palmin
                            palmin @marcus67 last edited by

                            @marcus67 Ah yes, I see your email but have not yet had time to investigate.
                            As soon as I know why it happens, the fix is probably not far away.

                            You will hear from me.

                            marcus67 1 Reply Last reply Reply Quote 1
                            • mikael
                              mikael last edited by

                              I have tried with working_copy_wakeup = False, but see no difference in the behavior.

                              I am also aware that the WebDav server turns off after a while, but here it is consistently and immediately off every time I start Marcus' script, even if I had just turned it on.

                              marcus67 1 Reply Last reply Reply Quote 0
                              • marcus67
                                marcus67 @mikael last edited by

                                @mikael : Are using the current version (= last night) of gitsynchista?

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

                                  @marcus67: Just got the latest version, same behavior persists with wake up parameter set to False: empty repository page shown, WebDav turned off.

                                  Working Copy version is 2.5.

                                  marcus67 2 Replies Last reply Reply Quote 0
                                  • marcus67
                                    marcus67 @mikael last edited by

                                    @mikael Very strange. I will look into this. Are you using gitsynchista with (console mode) or without parameter (=GUI mode)?

                                    1 Reply Last reply Reply Quote 0
                                    • marcus67
                                      marcus67 @mikael last edited by

                                      @mikael I've just tried the console and the GUI version. They both worked for me. Still, to be sure I've updated the self-extracting archive. Please, do as follows: install the latest archive, go to log.py and set the debugging level to DEBUG. Start gitsynchista with your configuration file as parameter. If the trouble persists send the logging output to marcus.rickert@web.de. Thanks!

                                      1 Reply Last reply Reply Quote 0
                                      • marcus67
                                        marcus67 @miwagner1 last edited by

                                        @miwagner1 @mikael The problem with authentication has been fixed. The error was caused by the fact that 'working copy' uses HTTPDigestAuth whereas the default mode of easywebdav is HTTPBasicAuth. If you want to try it you will have to get the latest deployment package of gitsynchista and the latest of copy of easywebdav from my clone at GitHub.
                                        However, if you only work locally, why bother? :-)

                                        1 Reply Last reply Reply Quote 0
                                        • marcus67
                                          marcus67 @palmin last edited by

                                          @palmin I just tries to reproduce the error which so far always occured upon the second call of the x-url-callback. Fortunately, I was not able to reproduce it which is that the server was also started by the second call. However, during both the first and the second call it takes 'working copy' about 10 seconds to return to Pythonista.

                                          This is the call issued: working-copy://x-callback-url/webdav/?cmd=start&key=[KEYREPLACED]&x-success=pythonista%3A%2F%2Fgitsynchista%2Fgitsynchista%3Faction%3Drun%26argv%3DIGNORE_WAKEUP'

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