[Doxygen-users] function into another in python
Brought to you by:
dimitri
|
From: Olivier M. <re...@fr...> - 2015-02-03 08:24:22
|
Hello,
I wanted to use Doxygen to generate the documentation of my software in Python.
I use doxypy and all was fine until I need to type this kind of code :
179 def downloadFile(self, path):
180 """
181 This function read the file pointed by path
182 @param path an absolute path to the file to be read
183 @return the datas of the read file as a StringIO object
184 """
185 d = Deferred()
186 attr_dict = {}
187 file_str = StringIO()
188
189 def fileOpen(file_desc):
190 """
191 """
192 def _finished(failure):
193 reason = failure.trap(EOFError)
194 if reason != EOFError:
195 stderr.write(
196 "download of {file} was cancel by {reason}\n".format(
197 file=path,
198 reason=reason
199 )
200 )
201 file_str.seek(0)
202 d.callback(file_str)
203 file_desc.close()
204 file_str.close()
205
206 def _data_read(data):
207 """
208 Read the content of the file (by 2^16 octets packet)
209 write the datas in the local file_type object
210 @param data a part of the reading file
211 """
212 file_str.write(data)
213 file_desc.readChunk(
214 len(file_str.getvalue()),
215 attr_dict['size']
216 ).addCallback(_data_read).addErrback(_finished)
217
218 file_desc.readChunk(
219 0,
220 attr_dict['size']
221 ).addCallback(_data_read).addErrback(_finished)
222
223 def readAttrs(attrs):
224 """
225 Get the attributes of the file and use them to open the file
and I see doxygen (or doxypy I'm not sure) don't support the function into another function.
and return a result like that :
http://img11.hostingpics.net/pics/268799doxygen.png
Is it a missing function or maybe I made something wrong ?
Regards.
|