summaryrefslogtreecommitdiffstats
path: root/tabellio
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-11 11:52:26 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-11 11:52:26 (GMT)
commit5f2fdf01e00038d89dc310dc12b2da1b2cf40c28 (patch)
tree2381462e7461cfd5d661bc6a905b3c7cb05c4152 /tabellio
parent4bc0e196cc230dbefa43544c78aa4cbc890e0c95 (diff)
downloadtabellio.pcfdb-5f2fdf01e00038d89dc310dc12b2da1b2cf40c28.zip
tabellio.pcfdb-5f2fdf01e00038d89dc310dc12b2da1b2cf40c28.tar.gz
tabellio.pcfdb-5f2fdf01e00038d89dc310dc12b2da1b2cf40c28.tar.bz2
do not include date/time in event titles (#871)
Diffstat (limited to 'tabellio')
-rw-r--r--tabellio/pcfdb/sync.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index cb4586a..460fb8d 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -939,19 +939,20 @@ class SyncFromPcfDbView(BrowserView):
title = None
if type == 'SE':
- title = u'Séance du %s' % formatter.format(start)
+ title = u'Séance plénière'
+ basetype = 'tabellio.agenda.parlevent'
elif type == 'CP':
- title = u'Commission plénière du %s' % formatter.format(start)
+ title = u'Commission plénière'
+ basetype = 'tabellio.agenda.comevent'
elif type == 'CO':
if not comid:
- title = u'Commission du %s' % formatter.format(start)
+ title = u'Commission'
else:
- title = u'%s du %s' % (commission.title,
- formatter.format(start))
+ title = u'%s' % commission.title
+ basetype = 'tabellio.agenda.comevent'
if not hasattr(self.parlevents_folder, reu_id):
- self.parlevents_folder.invokeFactory('tabellio.agenda.parlevent',
- reu_id, title=title)
+ self.parlevents_folder.invokeFactory(basetype, reu_id, title=title)
object = getattr(self.parlevents_folder, reu_id)
if not (debreel and object.title):
# do not set the title if it was already set and the real