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
Hardik Juneja
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
Show 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
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.CMFDefault.utils
import
formatRFC822Headers
import
re
...
...
@@ -137,8 +138,8 @@ class Coordinate(Base):
"""
return
self
.
asText
()
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
coordinate_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
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
...
...
@@ -80,6 +81,7 @@ class GeographicAddress(Coordinate, Base):
return
result
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
coordinate_text
):
"""
Tries to recognize the coordinate_text to update
...
...
product/ERP5/Document/InternetProtocolAddress.py
View file @
949917dc
...
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
convertToUpperCase
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
...
...
@@ -72,6 +73,7 @@ class InternetProtocolAddress(Base, Coordinate):
result
=
'
\
n
'
.
join
(
tmp
)
return
result
@
deprecated
def
fromText
(
self
,
coordinate_text
):
"""
Try to import data from text.
...
...
product/ERP5/Document/Telephone.py
View file @
949917dc
...
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
import
re
...
...
product/ERP5/Document/Url.py
View file @
949917dc
...
...
@@ -31,6 +31,7 @@ from AccessControl import ClassSecurityInfo
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5.Document.Coordinate
import
Coordinate
from
Products.ERP5.mixin.url
import
UrlMixin
,
no_crawl_protocol_list
,
\
no_host_protocol_list
,
default_protocol_dict
...
...
@@ -71,6 +72,7 @@ class Url(Coordinate, Base, UrlMixin):
return
self
.
getUrlString
()
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'fromText'
)
@
deprecated
def
fromText
(
self
,
text
):
"""
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