Commit 581591fb authored by Mame Coumba Sall's avatar Mame Coumba Sall Committed by Julien Muchembled

Migrate property sheets of erp5_egov and erp5_registry_ohada

parent 329c196d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Fabien Morin <fabien@nexedi.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 EGovGenericProperties:
"""
Autorisation properties and categories
"""
_properties = (
# Autorisation properties
{ 'id' : 'corporate_registration_code'
, 'description': 'The corporate registration code of this organisation'
, 'type' : 'string'
, 'mode' : 'w'
},
)
##############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Fabien Morin <fabien@nexedi.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 EGovOrganisation:
"""
Organisation properties and categories specific for egov
"""
_properties = (
# Personnal properties
{ 'id' : 'password',
'description': 'The password used by ERP5Security',
'type' : 'string',
'write_permission' : 'Set own password',
'read_permission' : 'Manage users',
'mode' : 'w' },
)
##############################################################################
#
# Copyright (c) 2002-2007 Nexedi SARL and Contributors. All Rights Reserved.
#
# 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 PDFForm:
"""
PDFForm properties for all scribus files properties
There properties will be used for displaying form
"""
_properties = (
{ 'id' : 'height',
'description' : 'desired height of the displayed pdf form',
'type' : 'int',
'mode' : 'w' },
{ 'id' : 'width',
'description' : 'desired width of the displayed pdf form',
'type' : 'int',
'mode' : 'w' },
{ 'id' : 'resolution',
'description' : 'desired resolution',
'type' : 'int',
'mode' : 'w' },
)
<?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>id</string> </key>
<value> <string>EGovGenericProperties</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>
<?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>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>mode</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/string</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The corporate registration code of this organisation</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>corporate_registration_code_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
<value> <string>w</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>id</string> </key>
<value> <string>EGovOrganisation</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>
<?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>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>mode</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/string</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The password used by ERP5Security</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>password_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
<value> <string>w</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
<item>
<key> <string>read_permission</string> </key>
<value> <string>Manage users</string> </value>
</item>
<item>
<key> <string>write_permission</string> </key>
<value> <string>Set own password</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>id</string> </key>
<value> <string>PDFForm</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>
<?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>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>mode</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/int</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>desired height of the displayed pdf form</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>height_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
<value> <string>w</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>mode</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/int</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>desired resolution</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>resolution_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
<value> <string>w</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>mode</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/int</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>desired width of the displayed pdf form</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>width_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
<value> <string>w</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
759
\ No newline at end of file
760
\ No newline at end of file
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Fabien Morin <fabien@nexedi.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 M0Constraint:
"""
M0 Constrants
"""
_constraints = (
{ 'id' : 'title_existence',
'description' : 'Property title must be definied',
'type' : 'PropertyExistence',
'title' : None,
'message_no_such_property': 'The naming must be defined',
},
{ 'id' : 'name_existence',
'description' : 'Property name must be definied',
'type' : 'PropertyExistence',
'name' : None,
'message_no_such_property': 'The commercial name must be defined',
},
{ 'id' : 'head_office_address_existence',
'description' : 'Property address must be definied',
'type' : 'PropertyExistence',
'head_office_address' : None,
},
{ 'id' : 'work_address_existence',
'description' : 'Property work_address must be definied',
'type' : 'PropertyExistence',
'work_address' : None,
},
{ 'id' : 'legal_form_existence',
'description' : 'Property legal_form must be definied',
'type' : 'PropertyExistence',
'legal_form' : None,
},
{ 'id' : 'duration',
'description' : 'Property duration must be definied',
'type' : 'PropertyExistence',
'duration' : None,
},
{ 'id' : 'activity_free_text_existence',
'description' : 'Property activity_free_text must be definied',
'type' : 'PropertyExistence',
'activity_free_text': None,
},
{ 'id' : 'first_administrator_lastname_existence',
'description' : 'Property first_administrator_lastname must be definied',
'type' : 'PropertyExistence',
'first_administrator_lastname': None,
},
{ 'id' : 'first_administrator_firstname_existence',
'description' : 'Property first_administrator_firstname must be definied',
'type' : 'PropertyExistence',
'first_administrator_firstname' : None,
},
{ 'id' : 'first_administrator_birthday_existence',
'description' : 'Property first_administrator_birthday must be definied',
'type' : 'PropertyExistence',
'first_administrator_birthday' : None,
},
{ 'id' : 'first_administrator_birthplace_existence',
'description' : 'Property first_administrator_birthplace must be definied',
'type' : 'PropertyExistence',
'first_administrator_birthplace' : None,
},
{ 'id' : 'first_administrator_address_existence',
'description' : 'Property first_administrator_address must be definied',
'type' : 'PropertyExistence',
'first_administrator_address': None,
},
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
{ 'id' : 'rccm_check_existence',
'description' : 'Property rccm check must be definied',
'type' : 'PropertyExistence',
'rccm_check' : None,
'condition' : 'python: object.getInscriptionCheck() == None',
},
{ 'id' : 'inscription_check_existence',
'description' : 'Property inscription check must be definied',
'type' : 'PropertyExistence',
'inscription_check' : None,
'condition' : 'python: object.getRccmCheck() == None',
},
)
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Thibaut Deheunynck <thibaut@nexedi.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 M2Constraint:
"""
M2 Constraints
"""
_constraints = (
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
# { 'id' : 'corporate_registration_code_existence',
# 'description' : 'Property corporate registration code must be definied',
# 'type' : 'PropertyExistence',
# 'corporate_registration_code' : None,
# 'message_no_such_property': 'The corporate registration must be defined',
# },
# { 'id' : 'old_headquarters_existence',
# 'description' : 'Property old_headquarters must be definied',
# 'type' : 'PropertyExistence',
# 'old_headquarters' : None,
# },
# { 'id' : 'old_legal_form_existence',
# 'description' : 'Property old_legal_form must be definied',
# 'type' : 'PropertyExistence',
# 'old_legal_form' : None,
# },
# { 'id' : 'old_corporate_registration_code_existence',
# 'description' : 'Property old corporate registration code must be definied',
# 'type' : 'PropertyExistence',
# 'old_corporate_registration_code' : None,
# },
# { 'id' : 'new_corporate_registration_code_existence',
# 'description' : 'Property new corporate registration code must be definied',
# 'type' : 'PropertyExistence',
# 'new_corporate_registration_code' : None,
# },
# { 'id' : 'old_title_existence',
# 'description' : 'Property old_title must be definied',
# 'type' : 'PropertyExistence',
# 'old_title' : None,
# },
# { 'id' : 'new_address_existence',
# 'description' : 'Property new address must be definied',
# 'type' : 'PropertyExistence',
# 'new_address' : None,
# },
# { 'id' : 'first_rccm_check_existence',
# 'description' : 'Property first rccm check must be definied',
# 'type' : 'PropertyExistence',
# 'first_rccm_check' : None,
# 'condition' : 'python: object.getSecondRccmCheck() == None',
# },
# { 'id' : 'second_rccm_check_existence',
# 'description' : 'Property radiation check must be definied',
# 'type' : 'PropertyExistence',
# 'second_rccm_check' : None,
# 'condition' : 'python: object.getFirstRccmCheck() == None',
#
# },
)
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Thibaut Deheunynck <thibaut@nexedi.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 M4Constraint:
"""
M4 Constraints
"""
_constraints = (
{ 'id' : 'title_existence',
'description' : 'Property title must be definied',
'type' : 'PropertyExistence',
'title' : None,
'message_no_such_property': 'The naming must be defined',
},
{ 'id' : 'corporate_registration_code_existence',
'description' : 'Property corporate registration code must be definied',
'type' : 'PropertyExistence',
'corporate_registration_code' : None,
},
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
)
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Thibaut Deheunynck <thibaut@nexedi.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 P0Constraint:
"""
P0 Constraints
"""
_constraints = (
{ 'id' : 'last_name_existence',
'description' : 'Property last name must be definied',
'type' : 'PropertyExistence',
'last_name' : None,
'message_no_such_property': 'The last name must be defined',
},
{ 'id' : 'first_name_existence',
'description' : 'Property first name code must be definied',
'type' : 'PropertyExistence',
'first_name' : None,
'message_no_such_property': 'The first name address must be defined',
},
{ 'id' : 'date_exitence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
{ 'id' : 'miss_check_existence',
'description' : 'Property miss check must be definied',
'type' : 'PropertyExistence',
'miss_check' : None,
'condition' : 'python: object.getMrsCheck() == None \
and object.getMrCheck() == None',
},
{ 'id' : 'mrs_check_existence',
'description' : 'Property mrs check must be definied',
'type' : 'PropertyExistence',
'mrs_check' : None,
'condition' : 'python: object.getMissCheck() == None \
and object.getMrCheck() == None',
},
{ 'id' : 'mr_check_existence',
'description' : 'Property mr check must be definied',
'type' : 'PropertyExistence',
'mr_check' : None,
'condition' : 'python: object.getMrsCheck() == None \
and object.getMissCheck() == None',
},
{ 'id' : 'divorced_check_existence',
'description' : 'Property divorced check must be definied',
'type' : 'PropertyExistence',
'divorced_check' : None,
'condition' : 'python: object.getMarriedCheck() == None and \
object.getSingleCheck() == None and \
object.getWidowerCheck() == None',
},
{ 'id' : 'married_check_existence',
'description' : 'Property married check must be definied',
'type' : 'PropertyExistence',
'married_check' : None,
'condition' : 'python: object.getDivorcedCheck() == None and \
object.getSingleCheck() == None and \
object.getWidowerCheck() == None',
},
{ 'id' : 'single_check_existence',
'description' : 'Property single check must be definied',
'type' : 'PropertyExistence',
'single_check' : None,
'condition' : 'python: object.getMarriedCheck() == None and \
object.getDivorcedCheck() == None and \
object.getWidowerCheck() == None',
},
{ 'id' : 'widower_check_existence',
'description' : 'Property Widower check must be definied',
'type' : 'PropertyExistence',
'widower_check' : None,
'condition' : 'python: object.getMarriedCheck() == None and \
object.getSingleCheck() == None and \
object.getDivorcedCheck() == None',
},
{ 'id' : 'creation_check_existence',
'description' : 'Property creation check must be definied',
'type' : 'PropertyExistence',
'creation_check' : None,
'condition' : 'python: object.getOtherCheck() == None \
and object.getPurchaseCheck() == None \
and object.getContributionCheck() == None \
and object.getRentCheck() == None ',
},
{ 'id' : 'purchase_check_existence',
'description' : 'Property purchase check must be definied',
'type' : 'PropertyExistence',
'purchase_check' : None,
'condition' : 'python: object.getCreationCheck() == None \
and object.getOtherCheck() == None \
and object.getContributionCheck() == None \
and object.getRentCheck() == None ',
},
{ 'id' : 'contribution_check_existence',
'description' : 'Property contribution check must be definied',
'type' : 'PropertyExistence',
'contribution_check' : None,
'condition' : 'python: object.getCreationCheck() == None \
and object.getPurchaseCheck() == None \
and object.getOtherCheck() == None \
and object.getRentCheck() == None ',
},
{ 'id' : 'rent_check_existence',
'description' : 'Property rent check must be definied',
'type' : 'PropertyExistence',
'rent_check' : None,
'condition' : 'python: object.getCreationCheck() == None \
and object.getPurchaseCheck() == None \
and object.getContributionCheck() == None \
and object.getOtherCheck() == None ',
},
{ 'id' : 'other_check_existence',
'description' : 'Property other check must be definied',
'type' : 'PropertyExistence',
'other_check' : None,
'condition' : 'python: object.getCreationCheck() == None \
and object.getPurchaseCheck() == None \
and object.getContributionCheck() == None \
and object.getRentCheck() == None ',
},
{ 'id' : 'rccm_check_existence',
'description' : 'Property rccm check must be definied',
'type' : 'PropertyExistence',
'rccm_check' : None,
'condition' : 'python: object.getInscriptionCheck() == None',
},
{ 'id' : 'inscription_check_existence',
'description' : 'Property inscription check must be definied',
'type' : 'PropertyExistence',
'inscription_check' : None,
'condition' : 'python: object.getRccmCheck() == None',
},
{ 'id' : 'previous_activity_corporate_registration_code_existence',
'description' : 'Property must be definied',
'type' : 'PropertyExistence',
'previous_activity_corporate_registration_code' : None,
'condition' : 'python: object.getActivityRestartCheck() ==1',
'message_no_such_property': 'for a restart activity you must define the previous registration code',
},
)
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Thibaut Deheunynck <thibaut@nexedi.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 P2Constraint:
"""
P2 Constraints
"""
_constraints = (
{ 'id' : 'owner_last_name_existence',
'description' : 'Property owner last name must be definied',
'type' : 'PropertyExistence',
'owner_last_name' : None,
'message_no_such_property': 'The owner last name must be defined',
},
{ 'id' : 'owner_first_name_existence',
'description' : 'Property owner first name code must be definied',
'type' : 'PropertyExistence',
'owner_first_name' : None,
'message_no_such_property': 'The owner first name address must be defined',
},
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
{ 'id' : 'company_modifications_existence',
'description' : 'Property company modifcation must be definied',
'type' : 'PropertyExistence',
'company_modifications' : None,
'condition' : 'python: object.getEstablishmentModification() == 0',
},
{ 'id' : 'establishment_modification_existence',
'description' : 'Property my establishment modification must be definied',
'type' : 'PropertyExistence',
'establishment_modification' : None,
'condition' : 'python: object.getCompanyModifications() == None',
},
{ 'id' : 'rccm_check_existence',
'description' : 'Property rccm check must be definied',
'type' : 'PropertyExistence',
'rccm_check' : None,
'condition' : 'python: object.getRadiationRccmCheck() == None',
},
{ 'id' : 'radiation_rccm_check_existence',
'description' : 'Property radiation rccm check must be definied',
'type' : 'PropertyExistence',
'rccm_check' : None,
'condition' : 'python: object.getRccmCheck() == None',
},
{ 'id' : 'company_corporate_registration_code_existence',
'description' : 'Property must be definied',
'type' : 'PropertyExistence',
'company_corporate_registration_code' : None,
'condition' : 'python: object.getCompanyModifications() != None',
'message_no_such_property': 'for an orgnisation modification you must define the company registration code',
},
{ 'id' : 'establishment_corporate_registration_code_existence',
'description' : 'Property must be definied',
'type' : 'PropertyExistence',
'establishment_corporate_registration_code' : None,
'condition' : 'python: object.getEstablishmentModification() != None',
'message_no_such_property': 'for an establishment modification you must define the establishment registration code',
},
)
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Thibaut Deheunynck <thibaut@nexedi.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 P4Constraint:
"""
P4 Constraints
"""
_constraints = (
{ 'id' : 'owner_last_name_existence',
'description' : 'Property owner last name must be definied',
'type' : 'PropertyExistence',
'owner_last_name' : None,
'message_no_such_property': 'The owner last name must be defined',
},
{ 'id' : 'owner_first_name_existence',
'description' : 'Property owner first name code must be definied',
'type' : 'PropertyExistence',
'owner_first_name' : None,
'message_no_such_property': 'The owner first name address must be defined',
},
{ 'id' : 'corporate_registration_code_existence',
'description' : 'Property corporate registration code must be definied',
'type' : 'PropertyExistence',
'corporate_registration_code' : None,
},
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
{ 'id' : 'ask_to_change_check_existence',
'description' : 'Property ask_to_change_check must be definied',
'type' : 'PropertyExistence',
'ask_to_change_check' : None,
'condition' : 'python: object.getAskToChangeCheck() == None',
},
{ 'id' : 'ask_to_delete_check_existence',
'description' : 'Property ask_to_delete_check check must be definied',
'type' : 'PropertyExistence',
'ask_to_delete_check' : None,
'condition' : 'python: object.getAskToChangeCheck() == None',
},
)
# -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Fabien Morin <fabien@nexedi.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 PsjMailMessage:
"""
specific psj properties for mail message
"""
_properties = (
# Autorisation properties
{ 'id' : 'report_number'
, 'description': "Numéro d'association des pièces jointes"
, 'type' : 'string'
, 'mode' : 'w'
},
)
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>destination_category</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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