Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fastkml
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
fastkml
Commits
4ef5a833
Commit
4ef5a833
authored
Nov 26, 2013
by
Christian Ledermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecate UntypedExtendedDataElement and UntypedExtendedData
parent
b12d320a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
fastkml/__init__.py
fastkml/__init__.py
+1
-1
fastkml/kml.py
fastkml/kml.py
+7
-2
No files found.
fastkml/__init__.py
View file @
4ef5a833
...
...
@@ -22,6 +22,6 @@ from .kml import Schema
from
.styles
import
StyleUrl
,
Style
,
StyleMap
from
.styles
import
IconStyle
,
LineStyle
,
PolyStyle
from
.styles
import
LabelStyle
#
, BalloonStyle
from
.styles
import
LabelStyle
,
BalloonStyle
from
.atom
import
Link
,
Author
,
Contributor
fastkml/kml.py
View file @
4ef5a833
...
...
@@ -1002,7 +1002,10 @@ class ExtendedData(_BaseObject):
self
.
elements
.
append
(
el
)
class
UntypedExtendedData
(
ExtendedData
):
warnings
.
warn
(
"UntypedExtendedData is deprecated use ExtendedData instead"
,
DeprecationWarning
)
def
__init__
(
self
,
ns
=
None
,
id
=
None
,
elements
=
None
):
super
(
UntypedExtendedData
,
self
).
__init__
(
ns
,
id
,
elements
)
warnings
.
warn
(
"UntypedExtendedData is deprecated use ExtendedData instead"
,
DeprecationWarning
)
class
Data
(
_BaseObject
):
...
...
@@ -1042,4 +1045,6 @@ class Data(_BaseObject):
self
.
display_name
=
display_name
.
text
class
UntypedExtendedDataElement
(
Data
):
warnings
.
warn
(
"UntypedExtendedDataElement is deprecated use Data instead"
,
DeprecationWarning
)
def
__init__
(
self
,
ns
=
None
,
id
=
None
,
name
=
None
,
value
=
None
,
display_name
=
None
):
super
(
UntypedExtendedDataElement
,
self
).
__init__
(
ns
,
id
,
name
,
value
,
display_name
)
warnings
.
warn
(
"UntypedExtendedDataElement is deprecated use Data instead"
,
DeprecationWarning
)
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