• jsamlarose47

    Ah— good to know I'm not going crazy! Sad to see it go. It was one of the “above and beyond” features that added a little extra shine to Editorial for me. That said, it’s not a feature I use every day. I certainly wouldn’t mind seeing it make a return in a future release, but I can appreciate the drive to pull back on underused features.

    posted in Editorial read more
  • jsamlarose47

    Can someone please remind me how to access file versions through Editorial? I It’s been a while since I’ve needed to, but I thought I used to get there by tapping on the file name in the editor, then tapping on the Dropbox icon. Now all I get is an indication of when the file was last uploaded, and the option to “Share Dropbox Link”...

    posted in Editorial read more
  • jsamlarose47

    Looks good! I should really thank you. The solution I came up with for your original request helped me to come at something I was trying to solve with fresh eyes and new thinking... ;)

    Glad you came up with something that worked for you.

    posted in Editorial read more
  • jsamlarose47

    You've probably solved or moved on from this, but I found it to be an interesting challenge, as I was beating my head against regular expressions for folding in Editorial. If you're still in the market for an answer, try the following:

    http://www.editorial-workflows.com/workflow/5808136921284608/5vSeu1APl5w

    posted in Editorial read more
  • jsamlarose47

    Epilogue!

    A couple of questions for me to wrap this up:

    1: Just so I've got this down for future reference, should my original script have been something more like the following?

    #coding: utf-8
    import workflow
    import urllib
    import zipfile
    import shutil
    import os
    
    # get the files
    url = 'https://github.com/burnash/gspread/archive/master.zip'
    
    print "downloading..."
    urllib.urlretrieve(url, 'gspread.zip')
    
    # expand the zip
    zip_ref = zipfile.ZipFile('gspread.zip', 'r')
    zip_ref.extractall()
    zip_ref.close()
    
    # move the required folder to the appropriate location
    shutil.move(os.path.expanduser("~/Library/Application Support/Commands/gspread-master/gspread"), os.path.expanduser("~/Documents/site-packages/gspread"))
    

    Do I need to make the folder in ~/Documents/site-packages/ before I attempt to move something to it?

    2: Is it easier to do this kind of work with Pythonista (stash/pip)? And if so, are modules installed via Pythonista also available to Editorial— does Pythonista also look at ~/Documents/site-packages/ or do they function independently?

    Thanks again, all!

    posted in Editorial read more
  • jsamlarose47

    Forgive me if this has already been flagged, but I have a consistent crash in the Python code editor in Editorial when typing with a Bluetooth keyboard. Typically, when auto-completion is invoked and I arrow-key up or down (without accepting auto-completion— i.e. arrow-key to escape offered auto-completion) Editorial crashes. No crash if I arrow-key left or right. Is this known? (iOS 10.2.1, Editorial up-to-date...)

    posted in Editorial read more
  • jsamlarose47

    Done. Looks like this is the fix for me. Haven't yet fully tested a connection to a spreadsheet, but at least I'm not getting any errors when trying to call gspread modules. Excellent. Thanks!

    posted in Editorial read more
  • jsamlarose47

    @ccc Yep!
    print os.listdir("site-packages/gspread") returns:
    ['__init__.py', 'client.py', 'exceptions.py', 'gspread', 'httpsession.py', 'models.py', 'ns.py', 'urls.py', 'utils.py']

    print os.getcwd() returns:
    /private/var/mobile/Containers/Data/Application/{UUID}/Library/Application Support/Commands

    Presuming I'm in the right place there...

    @olemoritz restarted, no joy...

    And of course, the longer this continues the more I think I've just made a rudimentary error somewhere along the way... ;)

    posted in Editorial read more
  • jsamlarose47

    @ccc sorry— I realise that the way I phrased that was unclear. I meant that I have all of the files from gspread-master/gspread/ in site-packages/gspread/ (as you're saying it should be).

    Admittedly, my first use of shutil.move ended up depositing pygsheets files into the folder above site-package— the less said about that, the better... :) That said, I spent a little time tidying up my handling of paths, and I'm pretty sure I had everything in the right place before my final tests of pygsheets, and now gspread. Anything else it might be?

    Thanks for all the assistance thus far...

    posted in Editorial read more
  • jsamlarose47

    Ah— understood, and good to bear dependencies like that in mind for future reference.

    I've now got the gspread folder (contents of the folder in gspread-master) in site-packages/gspread. Still getting an import error (no module named gspread)...

    posted in Editorial read more

Internal error.

Oops! Looks like something went wrong!