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
-
@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? :-) -
@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'