Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
54da4f63
Commit
54da4f63
authored
Jun 12, 2014
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
it syncml table does not exist, create it
parent
8a94819b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+6
-1
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
54da4f63
...
@@ -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',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment