Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
f4423b93
Commit
f4423b93
authored
10 years ago
by
Ghislain MARY
Browse files
Options
Download
Patches
Plain Diff
Add documentation for the properties in the Python wrapper.
parent
3603a92c
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/python/apixml2python/linphone.py
+6
-2
tools/python/apixml2python/linphone.py
tools/python/apixml2python/linphone_module.mustache
+1
-2
tools/python/apixml2python/linphone_module.mustache
with
7 additions
and
4 deletions
tools/python/apixml2python/linphone.py
+
6
−
2
View file @
f4423b93
...
...
@@ -846,10 +846,14 @@ class LinphoneModule(object):
raise
try
:
for
p
in
c
[
'class_properties'
]:
if
p
.
has_key
(
'getter_xml_node'
):
p
[
'getter_body'
]
=
GetterMethodDefinition
(
self
,
c
,
p
[
'getter_xml_node'
]).
format
()
p
[
'property_doc'
]
=
''
if
p
.
has_key
(
'setter_xml_node'
):
p
[
'setter_body'
]
=
SetterMethodDefinition
(
self
,
c
,
p
[
'setter_xml_node'
]).
format
()
p
[
'property_doc'
]
=
self
.
__format_doc
(
p
[
'setter_xml_node'
].
find
(
'briefdescription'
),
p
[
'setter_xml_node'
].
find
(
'detaileddescription'
))
if
p
.
has_key
(
'getter_xml_node'
):
p
[
'getter_body'
]
=
GetterMethodDefinition
(
self
,
c
,
p
[
'getter_xml_node'
]).
format
()
if
p
[
'property_doc'
]
==
''
:
p
[
'property_doc'
]
=
self
.
__format_doc
(
p
[
'getter_xml_node'
].
find
(
'briefdescription'
),
p
[
'getter_xml_node'
].
find
(
'detaileddescription'
))
except
Exception
,
e
:
e
.
args
+=
(
c
[
'class_name'
],
p
[
'property_name'
])
raise
...
...
This diff is collapsed.
Click to expand it.
tools/python/apixml2python/linphone_module.mustache
+
1
−
2
View file @
f4423b93
...
...
@@ -139,9 +139,8 @@ static PyMethodDef pylinphone_{{class_name}}_methods[] = {
{{/
class_properties
}}
static PyGetSetDef pylinphone_
{{
class_name
}}
_getseters[] = {
// TODO: Handle doc
{{#
class_properties
}}
{ "
{{
property_name
}}
",
{{
getter_reference
}}
,
{{
setter_reference
}}
, "" },
{ "
{{
property_name
}}
",
{{
getter_reference
}}
,
{{
setter_reference
}}
, "
{{{
property_doc
}}}
" },
{{/
class_properties
}}
/* Sentinel */
{ NULL, NULL, NULL, NULL, NULL }
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets