Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
ef7a2c39
Commit
ef7a2c39
authored
Nov 07, 2014
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5ShortMessage: clean up
parent
4c92ca6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
product/ERP5ShortMessage/Document/DummyGateway.py
product/ERP5ShortMessage/Document/DummyGateway.py
+1
-8
product/ERP5ShortMessage/Document/MobytGateway.py
product/ERP5ShortMessage/Document/MobytGateway.py
+2
-3
product/ERP5ShortMessage/Errors.py
product/ERP5ShortMessage/Errors.py
+0
-1
No files found.
product/ERP5ShortMessage/Document/DummyGateway.py
View file @
ef7a2c39
...
...
@@ -34,22 +34,16 @@ import string
from
DateTime
import
DateTime
#Import Zope module
from
AccessControl
import
ClassSecurityInfo
,
\
Unauthorized
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
\
newSecurityManager
import
zope.interface
from
zLOG
import
LOG
,
INFO
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Security.ERP5UserManager
import
SUPER_USER
#Product Module
from
Products.ERP5ShortMessage.Errors
import
SMSGatewayError
class
DummyGateway
(
XMLObject
):
...
...
@@ -102,7 +96,6 @@ class DummyGateway(XMLObject):
#Send message (or test)
if
test
or
self
.
isSimulationMode
():
LOG
(
"DummyGateway"
,
INFO
,
params
)
return
None
else
:
return
self
.
_generateRandomMessageId
()
...
...
product/ERP5ShortMessage/Document/MobytGateway.py
View file @
ef7a2c39
...
...
@@ -33,8 +33,7 @@ import urllib
from
DateTime
import
DateTime
#Import Zope module
from
AccessControl
import
ClassSecurityInfo
,
\
Unauthorized
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
\
newSecurityManager
...
...
@@ -195,7 +194,7 @@ class MobytGateway(XMLObject):
if
message_type
!=
"text"
:
assert
quality
==
'n'
,
"This type of message require top level messsage quality"
assert
message_type
in
self
.
getAllowedMessageType
(),
"Unknown message type"
param
[
'operation'
]
=
message_type
.
capitalize
()
param
s
[
'operation'
]
=
message_type
.
capitalize
()
#Send message (or test)
if
test
or
self
.
isSimulationMode
():
...
...
product/ERP5ShortMessage/Errors.py
View file @
ef7a2c39
...
...
@@ -32,7 +32,6 @@
# from Products.ERP5.Errors import DeferredCatalogError
from
Products.PythonScripts.Utility
import
allow_class
from
Products.CMFCore.WorkflowCore
import
WorkflowException
class
SMSGatewayError
(
Exception
):
pass
...
...
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