Skip to content

Commit

Permalink
xml
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 11, 2020
1 parent a965677 commit fb0aff1
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docs/reference/xml2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,23 +204,23 @@ def documentation(self):
@property
def action(self):
action = self._defs.get("python")
if action is None:
# FIXME: Remove when magics is ready
action = self._defs.get("action")
if action == "pcont":
action = "mcont"
# elif action == "pgrib":
# action = "mgrib"
# elif action == "pnetcdf":
# action = "mnetcdf"
# elif action == "ptable":
# action = "mtable"
# elif action == "pinput":
# action = "minput"
# elif action == "ptext":
# action = "output"
else:
action = None
# if action is None:
# # FIXME: Remove when magics is ready
# action = self._defs.get("action")
# if action == "pcont":
# action = "mcont"
# # elif action == "pgrib":
# # action = "mgrib"
# # elif action == "pnetcdf":
# # action = "mnetcdf"
# # elif action == "ptable":
# # action = "mtable"
# # elif action == "pinput":
# # action = "minput"
# # elif action == "ptext":
# # action = "output"
# else:
# action = None

if action is None:
for parent in self.inherits:
Expand Down Expand Up @@ -248,8 +248,8 @@ def parameters(self):
parms = [parms]

for p in parms:
# if p.get("python", True):
self._parameters.append(Param(p))
if p.get("python", True):
self._parameters.append(Param(p))
return self._parameters

@property
Expand Down

0 comments on commit fb0aff1

Please sign in to comment.