예제 #1
0
파일: daemondoc.py 프로젝트: ess-dmsc/nicos
 def before_content(self):
     dstring = prepare_docstring(self.object.__doc__ or '')
     # overwrite content of directive
     self.content = ViewList(dstring)
     PyFunction.before_content(self)
예제 #2
0
파일: daemondoc.py 프로젝트: ess-dmsc/nicos
 def handle_signature(self, sig, signode):
     self.object = command_wrappers[sig].orig_function
     sig = '%s%s' % (sig, formatArgs(self.object, strip_self=True))
     return PyFunction.handle_signature(self, sig, signode)
예제 #3
0
 def run(self):
     # a decorator function is a function after all
     self.name = 'py:function'
     return PyFunction.run(self)
예제 #4
0
 def run(self):
     self.name = 'py:function'
     return PyFunction.run(self)
예제 #5
0
 def run(self):
     self.name = "py:function"
     return PyFunction.run(self)