notepad

Check-in [df124d1636]
Login

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

Overview
Comment:Argh, need to provide the key.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:df124d1636805219aaf2d81d81e171ad5d4685e3de12e796bd80df8fe9204338
User & Date: vandys 2018-10-12 13:01:31
Context
2018-10-12
13:01
Need to ref "value" field of input element. check-in: 10d20b52c3 user: vandys tags: master, trunk
13:01
Argh, need to provide the key. check-in: df124d1636 user: vandys tags: master, trunk
02:48
Get delete and edit-in-place working check-in: 9e91926a05 user: vandys tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to sync.py.

    51     51   # Gather our current notes, keyed by note's index name (noteXXXX)
    52     52   onotes = {}
    53     53   c = conn.cursor()
    54     54   c.execute(
    55     55    "select key,tm,title,content from notes where user=? and tm>?",
    56     56    (user, tm))
    57     57   for tup in c:
    58         -    onotes[tup[0]] = {"tm": tup[1], "title": tup[2], "content": tup[3]}
           58  +    onotes[tup[0]] = {"tm": tup[1], "key": tup[0],
           59  +	"title": tup[2], "content": tup[3]}
    59     60   
    60     61   # For each note which they've changed, either accept the change,
    61     62   #  or send back the newer content which we've already received.
    62     63   resp = {}
    63     64   changes = False
    64     65   c = conn.cursor()
    65     66   for key,note in req.iteritems():