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
-
I did not mean to request a
/MarkdownView/.git
directory.In the configuration file I have the following:
name = Markdown local_path = ../git remote_path = /MarkdownView
... where the local
git
directory is just something I set up to isolate any sync results from the rest of my local directory tree. -
Could you give me your GitHub repository name so that I could clone it and try it myself?
-
Sure, it is the MarkdownView repository: mikaelho / pythonista-markdownview
-
Take a look at my clone
https://github.com/marcus67/pythonista-markdownview
. It contains a working configuration file in theetc
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. -
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.
-
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.
-
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.
-
Fantastic, it works. Now I can keep all of my scripts backed up on github.
-
@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.
-
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).
-
@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?
-
@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.
-
@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.
-
@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.
-
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.
-
@mikael : Are using the current version (= last night) of gitsynchista?
-
@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.
-
@mikael Very strange. I will look into this. Are you using gitsynchista with (console mode) or without parameter (=GUI mode)?
-
@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!
-
@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? :-)