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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
949917dc
Commit
949917dc
authored
Jun 17, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecate fromText Methods
parent
8d745dfe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1 deletion
+9
-1
product/ERP5/Document/Coordinate.py
product/ERP5/Document/Coordinate.py
+2
-1
product/ERP5/Document/GeographicAddress.py
product/ERP5/Document/GeographicAddress.py
+2
-0
product/ERP5/Document/InternetProtocolAddress.py
product/ERP5/Document/InternetProtocolAddress.py
+2
-0
product/ERP5/Document/Telephone.py
product/ERP5/Document/Telephone.py
+1
-0
product/ERP5/Document/Url.py
product/ERP5/Document/Url.py
+2
-0
No files found.
product/ERP5/Document/Coordinate.py
View file @
949917dc
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.CMFDefault.utils
import
formatRFC822Headers
from
Products.CMFDefault.utils
import
formatRFC822Headers
import
re
import
re
...
@@ -136,9 +137,9 @@ class Coordinate(Base):
...
@@ -136,9 +137,9 @@ class Coordinate(Base):
calls asText
calls asText
"""
"""
return
self
.
asText
()
return
self
.
asText
()
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
coordinate_text
):
def
fromText
(
self
,
coordinate_text
):
"""
"""
modifies the coordinate according to the input text
modifies the coordinate according to the input text
...
...
product/ERP5/Document/GeographicAddress.py
View file @
949917dc
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.Document.Coordinate
import
Coordinate
...
@@ -80,6 +81,7 @@ class GeographicAddress(Coordinate, Base):
...
@@ -80,6 +81,7 @@ class GeographicAddress(Coordinate, Base):
return
result
return
result
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
coordinate_text
):
def
fromText
(
self
,
coordinate_text
):
"""
"""
Tries to recognize the coordinate_text to update
Tries to recognize the coordinate_text to update
...
...
product/ERP5/Document/InternetProtocolAddress.py
View file @
949917dc
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
convertToUpperCase
from
Products.ERP5Type.Utils
import
convertToUpperCase
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.Document.Coordinate
import
Coordinate
...
@@ -72,6 +73,7 @@ class InternetProtocolAddress(Base, Coordinate):
...
@@ -72,6 +73,7 @@ class InternetProtocolAddress(Base, Coordinate):
result
=
'
\
n
'
.
join
(
tmp
)
result
=
'
\
n
'
.
join
(
tmp
)
return
result
return
result
@
deprecated
def
fromText
(
self
,
coordinate_text
):
def
fromText
(
self
,
coordinate_text
):
"""
"""
Try to import data from text.
Try to import data from text.
...
...
product/ERP5/Document/Telephone.py
View file @
949917dc
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.Document.Coordinate
import
Coordinate
import
re
import
re
...
...
product/ERP5/Document/Url.py
View file @
949917dc
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
from
Products.CMFCore.utils
import
getToolByName
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.mixin.url
import
UrlMixin
,
no_crawl_protocol_list
,
\
from
Products.ERP5.mixin.url
import
UrlMixin
,
no_crawl_protocol_list
,
\
no_host_protocol_list
,
default_protocol_dict
no_host_protocol_list
,
default_protocol_dict
...
@@ -71,6 +72,7 @@ class Url(Coordinate, Base, UrlMixin):
...
@@ -71,6 +72,7 @@ class Url(Coordinate, Base, UrlMixin):
return
self
.
getUrlString
()
return
self
.
getUrlString
()
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
text
):
def
fromText
(
self
,
text
):
"""
"""
Sets url_string a.k.a. scheme-specific-part of a URL
Sets url_string a.k.a. scheme-specific-part of a URL
...
...
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