• eddo888

    having no response from @omz for a long time now, I’ve moved on to pyto
    it has files/working copy integration, native pip install support and REPL, Sorry @omz, you snooze you loose.

    posted in Pythonista read more
  • eddo888

    Could I also please request that the new "open external file" and "open external directory" api be supported, so I can use Pythonista to access files AND directories in WorkingCopy. Yay Cheers Dave.

    posted in Pythonista read more
  • eddo888

    Hi, perhaps we should start a "go fund me" for @omz to continue their wonderful work on Pythonista. Now that Python is the most popular programming language on the planet and Pythonista is the best IDE for handhelds ever (better than IDLE on the desktop) it would make sence to get Pythonista back up the running list again.

    posted in Pythonista read more
  • eddo888

    @eddo888 said:

    @mikael create an empty folder in the pythonista icloud drive, then create a new sync directory in workingcopy to that folder. add the remote url to you fave git repo, then save and synchronise the repo. now you can pull your repo into the empty folder

    posted in Pythonista read more
  • eddo888

    is omz still developing pythonista ?

    posted in Pythonista read more
  • eddo888

    @Phylter textastic implementation of open external folder is cool

    posted in Pythonista read more
  • eddo888

    @mikael create an empty folder in the pythonista icloud drive, then create a new sync directory in workingcopy to that folder. add the remote url to you fave git repo, then save and synchronise the repo. now you can pull your repo into the empty folder

    posted in Pythonista read more
  • eddo888

    to get around this issue i have used the sync feature of workingcopy to sync to the pythonista icloud folder

    posted in Pythonista read more
  • eddo888

    @eddo888 this issue is in other apps as well so is not related to pythonista must be in the ios

    posted in Pythonista read more
  • eddo888

    the one thing i noticed is that the open external folders/files is broken

    posted in Pythonista read more
  • eddo888

    cool, thanks, there must be a setter property on person.phones that does the work,
    changes to bits of the phone list are not seen unless you do person.phone = <updated list>

    posted in Pythonista read more
  • eddo888

    yup, 1 hour now, the johhny ray example saved instantly, can we edit a contact and expect save to work ?

    posted in Pythonista read more
  • eddo888

    I am having difficulties as well, I am changing a phone number and it doesnt save even though save sais true and is_authorised is true.

        print(("Authorized:", contacts.is_authorized()))
    
        pattern = re.compile('^(0([2346789])|\(0([2346789])\))')
        for person in contacts.get_all_people():
            if person.full_name != 'David Edson': continue
            #print person.full_name
            
            for p in range(len(person.phone)):
                t_phone = person.phone[p]
                l_phone = list(t_phone)
                number = str(l_phone[1])
                match = pattern.match(number)
                if match:
                    changed = pattern.sub('+61 %s'%match.group(2),number)
                    print(number, changed)
                    l_phone[1] = changed
                    print l_phone
                    t_phone = tuple(l_phone)
                    print t_phone
                    person.phone[p] = t_phone
                    
            print person.phone
        print('save:',contacts.save())
        
    

    with the output like this

    ('Authorized:', True)
    ('0408 680 808', '+61 408 680 808')
    [u'_$!<Mobile>!$_', '+61 408 680 808']
    (u'_$!<Mobile>!$_', '+61 408 680 808')
    [(u'_$!<Mobile>!$_', u'0408 680 808')]
    ('save:', True)
    

    posted in Pythonista read more
  • eddo888

    elegent response, thanks for taking the time to provide a thorough detailed description. I'm glad I have an opportunity to try and contribute to such a wonderful app such is Pythonista. one of my favourite in flight/bus/walking/lunch/etc entertainment apps.

    posted in Pythonista read more
  • eddo888

    @ccc at the risk of going on about it,
    if shortcusts didn't put a redunant arg on the args list
    I wouldn't have to do anything.

    posted in Pythonista read more
  • eddo888

    @cvp Thanks for responding, it is encouraging that a thriving Pythonista community exists.
    my desire is to have a Rossum approach to code so my scripts work on all my platforms

    posted in Pythonista read more
  • eddo888

    @ccc said:

    sys.argv.pop() # does not seem too ugly

    #more like

    try:
        # from pythonista libraries
        import editor
        # fix for pythonista tools icons
        if sys.argv[-1] == editor.get_path():
            argv = sys.argv[1:-1]
        else:
            argv = sys.argv[1:]
    except:
        argv = sys.argv[1:]
    

    posted in Pythonista read more
  • eddo888

    @cvp sys.argv[0] is allways the actual script

    posted in Pythonista read more
  • eddo888

    i have noticed similar behaviour definitely related to icloud sharing
    jump out of pythonista and the icloud is hung as well

    posted in Pythonista read more
  • eddo888

    the actual calling script is in sys.argv[0]
    the current editor can be obtained from editor.get_path()
    so why does shortcut need to append the editor path to the args, this is redundant and not the same behaviour as from the command line cf stash
    i use the args in the shortcut and have to do all sorts of ugly logic to remove the editor path

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!