snose

Check-in [f26f676e5d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Explicitly set snose tag during sync

Because otherwise it gets removed - this is due to Simperium changes that
require everything to be set and since we don't set it here the tags get set to
a default of empty in simplenote.py now.

It would be nicer to not remove other tags if set, but I can live with this
just setting "snose".

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256: f26f676e5d6cd680b5a0c5888fec31663c4f088b978828d0de90e38c6b474cae
User & Date: simon 2018-10-18 19:58:08
Context
2018-10-18
20:13
Update README to reflect --file and other recent changes. check-in: 36abba8d1a user: simon tags: trunk, master
19:58
Explicitly set snose tag during sync

Because otherwise it gets removed - this is due to Simperium changes that
require everything to be set and since we don't set it here the tags get set to
a default of empty in simplenote.py now.

It would be nicer to not remove other tags if set, but I can live with this
just setting "snose". check-in: f26f676e5d user: simon tags: trunk, master

19:32
Tweak command line args more to suit --file check-in: bdaac3057a user: simon tags: trunk, master
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to snose.py.

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
                        with open(name, 'r') as f:
                            content = f.read()
                    except IOError as e:
                        print("Failed to read local note %s" % name)
                        print("Skipping synchronisation for this note")
                    else:
                        try:
                            returned = snclient.update_note({'key': local['key'], 'version': local['version'], 'content': content, 'modifydate': sysmodifydate })
                            print("Updated remote version of %s" % name)
                        except IOError as e:
                            print("Failed to update remote verison of local note %s" % name)
                        else:
                            #Get returned metadata
                            snose[name]['version'] = returned[0]['version']
                            snose[name]['modifydate'] = sysmodifydate #Use local value to avoid differences in accuracy (decimal places. etc) between local and remote timestamps







|







281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
                        with open(name, 'r') as f:
                            content = f.read()
                    except IOError as e:
                        print("Failed to read local note %s" % name)
                        print("Skipping synchronisation for this note")
                    else:
                        try:
                            returned = snclient.update_note({'key': local['key'], 'version': local['version'], 'content': content, 'modifydate': sysmodifydate, 'tags': ['snose']  })
                            print("Updated remote version of %s" % name)
                        except IOError as e:
                            print("Failed to update remote verison of local note %s" % name)
                        else:
                            #Get returned metadata
                            snose[name]['version'] = returned[0]['version']
                            snose[name]['modifydate'] = sysmodifydate #Use local value to avoid differences in accuracy (decimal places. etc) between local and remote timestamps