From 0437d3fecad93b20974a7884b73e41222902b060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 18 Nov 2011 15:33:03 +0100 Subject: [PATCH] add sync of appendix number --- tabellio/pcfdb/sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 2ab1e4d..4e3c057 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -716,7 +716,7 @@ class SyncFromPcfDbView(BrowserView): where_ts = '' if timestamp: where_ts = cursor.mogrify('AND t_document.ts > %s', (timestamp,)) - cursor.execute('''SELECT t_document.id, type, sess, date, no, nodoc, + cursor.execute('''SELECT t_document.id, type, sess, date, no, nodoc, anx, intit, auteurs, matiereids, comppols, imageid, textdefts, textprovts FROM t_document @@ -735,7 +735,7 @@ class SyncFromPcfDbView(BrowserView): if row is None: break count += 1 - (doc_id, doctype, sess, date, no, nodoc, intit, authors, topics, + (doc_id, doctype, sess, date, no, nodoc, anx, intit, authors, topics, polgroups, image_id, textprovts, textdefts) = row if intit is None: @@ -766,6 +766,7 @@ class SyncFromPcfDbView(BrowserView): object.nodoc = str(nodoc) else: object.nodoc = None + object.noannexe = anx object.doctype = doctype object.file_image_id = image_id object.topics = topics