Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 3 of 3

Thread: Dropbox Plugin

  1. #1

    Title
    Senior Member
    Join Date
    Nov 2010
    Posts
    687
    Thanks
    35
    Thanked 89 Times in 76 Posts

    Dropbox Plugin

    hi guys,
    i'm very proud to announce that i've implemented a dropbox e2 plugin. it's not perfect yet, but it basically works. it's based on https://code.google.com/p/dreamdropbox/wiki/home. i added a couple of scripts and completely rewrote the python code.
    i use the plugin for syncing my pictures to the box for watching on tv.
    here's the code:
    https://github.com/CodeIsUs/e2dropbox/
    if someone wants to make code review please feel free.
    it's my first python code, so bear with me.

  2. The Following 3 Users Say Thank You to 2stein For This Useful Post:

    Larry-G (26-02-15),Sicilian (26-02-15),tomthebomb1968 (26-02-15)

  3. #2

    Title
    Senior Member
    Join Date
    Nov 2010
    Posts
    687
    Thanks
    35
    Thanked 89 Times in 76 Posts
    hi guys,
    in the meantime i've removed the bash scripts and replaced them with the dropox python api. works nicely.
    now i'd like to use MessageBox to implement a progress indication, like "2 of 5 files downloaded...".
    I thought, I could:

    - self.progress = self.session.openWithCallack(self.doDownload, MessageBox...)

    - def doDownload(self):
    do the downloads, update progress: self.progress.txt = "new progress"
    self.progress.close()

    however, that doesn't work as the first call self.session.openWithCallback doesn't seem to return, and thus no downloads occur.
    any advice?
    can i make MessageBox just show the message and then return?
    Do I have to implement a separate screen class showProgress for that?
    Thanks

  4. #3

    Title
    Senior Member
    Join Date
    Nov 2010
    Posts
    687
    Thanks
    35
    Thanked 89 Times in 76 Posts
    well, i figured it out myself :-)
    i'm using a timer now, to break the loop and allow the message box to be rendered in between :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.