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
Aurélien Vermylen
erp5
Commits
f4bb4e3d
Commit
f4bb4e3d
authored
Nov 07, 2014
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SMSGateway: Move property sheet from file system to portal_property_sheets
parent
d47df833
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
322 additions
and
72 deletions
+322
-72
bt5/erp5_short_message/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
...rtalTypePropertySheetTemplateItem/property_sheet_list.xml
+11
-0
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Dummy%20Gateway.xml
...e/PortalTypeTemplateItem/portal_types/Dummy%20Gateway.xml
+6
-0
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml
...ortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml
+6
-0
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml
...e/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml
+6
-0
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/SMS%20Tool.xml
...essage/PortalTypeTemplateItem/portal_types/SMS%20Tool.xml
+1
-1
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway.xml
...tySheetTemplateItem/portal_property_sheets/SMSGateway.xml
+64
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/default_sender_property.xml
...al_property_sheets/SMSGateway/default_sender_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_account_id_property.xml
...roperty_sheets/SMSGateway/gateway_account_id_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_account_property.xml
...l_property_sheets/SMSGateway/gateway_account_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_password_property.xml
..._property_sheets/SMSGateway/gateway_password_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_user_property.xml
...rtal_property_sheets/SMSGateway/gateway_user_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/simulation_mode_property.xml
...l_property_sheets/SMSGateway/simulation_mode_property.xml
+32
-0
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/title_mode_property.xml
...portal_property_sheets/SMSGateway/title_mode_property.xml
+32
-0
bt5/erp5_short_message/bt/template_portal_type_property_sheet_list
...short_message/bt/template_portal_type_property_sheet_list
+3
-0
bt5/erp5_short_message/bt/template_property_sheet_id_list
bt5/erp5_short_message/bt/template_property_sheet_id_list
+1
-0
product/ERP5ShortMessage/PropertySheet/SMSGateway.py
product/ERP5ShortMessage/PropertySheet/SMSGateway.py
+0
-71
product/ERP5ShortMessage/PropertySheet/__init__.py
product/ERP5ShortMessage/PropertySheet/__init__.py
+0
-0
No files found.
bt5/erp5_short_message/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
0 → 100644
View file @
f4bb4e3d
<property_sheet_list>
<portal_type
id=
"Dummy Gateway"
>
<item>
SMSGateway
</item>
</portal_type>
<portal_type
id=
"Essendex Gateway"
>
<item>
SMSGateway
</item>
</portal_type>
<portal_type
id=
"Mobyt Gateway"
>
<item>
SMSGateway
</item>
</portal_type>
</property_sheet_list>
\ No newline at end of file
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Dummy%20Gateway.xml
View file @
f4bb4e3d
...
@@ -61,6 +61,12 @@
...
@@ -61,6 +61,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
DummyGateway
</string>
</value>
<value>
<string>
DummyGateway
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
...
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml
View file @
f4bb4e3d
...
@@ -65,6 +65,12 @@
...
@@ -65,6 +65,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
EssendexGateway
</string>
</value>
<value>
<string>
EssendexGateway
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
...
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml
View file @
f4bb4e3d
...
@@ -61,6 +61,12 @@
...
@@ -61,6 +61,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
MobytGateway
</string>
</value>
<value>
<string>
MobytGateway
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
...
bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/SMS%20Tool.xml
View file @
f4bb4e3d
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
Folder
</string>
</value>
<value>
<string>
Products.ERP5ShortMessage.Tool.SMSTool.SMSTool
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
...
...
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Sheet"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Properties to store information related to send SMS
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SMSGateway
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Sheet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/default_sender_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Default sender when send message.
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
default_sender_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_account_id_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Id of the accound. Can be used for push notification
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gateway_account_id_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_account_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Account to use.
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gateway_account_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_password_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Password to connect
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gateway_password_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/gateway_user_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
User name to connect
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gateway_user_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/simulation_mode_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/boolean
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Force the simulation mode.
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
simulation_mode_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/PropertySheetTemplateItem/portal_property_sheets/SMSGateway/title_mode_property.xml
0 → 100644
View file @
f4bb4e3d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/boolean
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Allow or not to send by title
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
title_mode_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_short_message/bt/template_portal_type_property_sheet_list
0 → 100644
View file @
f4bb4e3d
Dummy Gateway | SMSGateway
Essendex Gateway | SMSGateway
Mobyt Gateway | SMSGateway
\ No newline at end of file
bt5/erp5_short_message/bt/template_property_sheet_id_list
0 → 100644
View file @
f4bb4e3d
SMSGateway
\ No newline at end of file
product/ERP5ShortMessage/PropertySheet/SMSGateway.py
deleted
100644 → 0
View file @
d47df833
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
# Francois-Xavier Algrain <fxalgrain@tiolive.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
class
SMSGateway
:
"""
Agent properties for Agent objects
"""
_properties
=
(
{
'id'
:
'gateway_user'
,
'description'
:
'User name to connect '
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'gateway_password'
,
'description'
:
'Password to connect'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'gateway_account'
,
'description'
:
'Account to use.'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'gateway_account_id'
,
'description'
:
'Id of the accound. Can be used for push notification'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'default_sender'
,
'description'
:
'Default sender when send message.'
,
'type'
:
'string'
,
'mode'
:
'w'
},
{
'id'
:
'simulation_mode'
,
'description'
:
'Force the simulation mode.'
,
'type'
:
'boolean'
,
'mode'
:
'w'
},
{
'id'
:
'title_mode'
,
'description'
:
'Allow or not to send by title'
,
'type'
:
'boolean'
,
'mode'
:
'w'
},
)
\ No newline at end of file
product/ERP5ShortMessage/PropertySheet/__init__.py
deleted
100644 → 0
View file @
d47df833
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