Commit 8d745dfe authored by Nicolas Delaby's avatar Nicolas Delaby

Add Coordinate Propertysheet

Associate it to all Coordinate Classes.
It defines data property to hold user input value
parent 545641b6
......@@ -88,6 +88,7 @@ class Coordinate(Base):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.Coordinate
)
### helper methods
......
......@@ -60,6 +60,7 @@ class GeographicAddress(Coordinate, Base):
, PropertySheet.SimpleItem
, PropertySheet.SortIndex
, PropertySheet.CategoryCore
, PropertySheet.Coordinate
, PropertySheet.GeographicAddress
)
......
......@@ -51,6 +51,7 @@ class InternetProtocolAddress(Base, Coordinate):
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Coordinate
, PropertySheet.InternetProtocolAddress
)
......
......@@ -63,6 +63,7 @@ class Telephone(Coordinate, Base):
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.SortIndex
, PropertySheet.Coordinate
, PropertySheet.Telephone
)
# This is a list of regex.
......
......@@ -53,6 +53,7 @@ class Url(Coordinate, Base, UrlMixin):
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.Coordinate
, PropertySheet.Url
, PropertySheet.SortIndex
)
......
<?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>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Coordinate</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</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>categories</string> </key>
<value>
<tuple>
<string>elementary_type/string</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Store user input of coordinate</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>data_property</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Account
Coordinate
StringAttributeMatchConstraint
AttributeUnicityConstraint
AccountingPreference
......
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