xarconverter
converter
node
script.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
6
7
""" Contains a class that holds diagram informations
8
.. module:: node
9
"""
10
11
import
converter.node
as
node
12
13
14
class
Script
(
node.Node
):
15
""" Stores informations about script in the xar format
16
"""
17
18
def
__init__
(self, attrs):
19
super(Script, self).
__init__
(
"Script"
)
20
21
# Attributes
22
self.
language
= attrs.getValue(
'language'
)
23
24
# Elements
25
self.
content
=
""
26
27
self.
_function_map
= {
'content'
: Script.attach_content}
28
29
def
attach_content
(self, content):
30
self.
content
= content
31
32
def
beacon
(self):
33
return
"script"
converter.node
Definition:
xarconverter/converter/node/__init__.py:1
converter.node.script.Script.content
content
Definition:
script.py:25
converter.node.script.Script.attach_content
def attach_content(self, content)
Definition:
script.py:29
converter.node.script.Script.language
language
Definition:
script.py:22
converter.node.script.Script
Definition:
script.py:14
converter.node.Node._function_map
_function_map
Definition:
xarconverter/converter/node/__init__.py:25
converter.node.script.Script.__init__
def __init__(self, attrs)
Definition:
script.py:18
converter.node.script.Script.beacon
def beacon(self)
Definition:
script.py:32
converter.node.Node
Definition:
xarconverter/converter/node/__init__.py:12
naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41