Commit 54da4f63 authored by Aurel's avatar Aurel

it syncml table does not exist, create it

parent 8a94819b
...@@ -36,6 +36,7 @@ from copy import deepcopy ...@@ -36,6 +36,7 @@ from copy import deepcopy
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from DateTime import DateTime from DateTime import DateTime
from MySQLdb import ProgrammingError
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
...@@ -1175,7 +1176,11 @@ class SyncMLSubscription(XMLObject): ...@@ -1175,7 +1176,11 @@ class SyncMLSubscription(XMLObject):
portal = self.getPortalObject() portal = self.getPortalObject()
# First we must unindex everything # First we must unindex everything
portal.z_unindex_syncml_data(path=self.getSearchableSourcePath()) try:
portal.z_unindex_syncml_data(path=self.getSearchableSourcePath())
except ProgrammingError:
# First use of syncml, create table
portal.z_create_syncml()
if self.getIsActivityEnabled(): if self.getIsActivityEnabled():
activate_kw = { activate_kw = {
'activity' : 'SQLQueue', 'activity' : 'SQLQueue',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment