<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 4:41 AM, Kamal Kaur <span dir="ltr"><<a href="mailto:kamal.kaur188@gmail.com" target="_blank">kamal.kaur188@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello<br>
<br>
I have found that the functions that show content and objects in the<br>
develop activity are in<br>
sugar-build/activities/develop-activity/develop_app.py and<br>
sugar-build/activities/develop-activity/sourceview_editor.py files<br>
<br>
In def save_source_jobject function in develop_app.py, there is a comment:<br>
<br>
# dict.update method is missing =(<br>
<br>
What is this comment referring to? And what is the dictionary update<br>
method supposed to do? Can someone please help? I need to update the<br>
icon on altering the .svg file and feeling lack of proper comments<br>
there in the code.<br>
<br></blockquote><div><br></div><div>The comment is old, very old, (you can learn to use "git blame" </div><div>to get the changes in context. I assume the programmer </div><div>wanted a method to update a dict based in the content of another.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Or please point me to some documentation where there each function<br>
will be defined. How can I get what is done where? Even there are<br>
functions that don't have a single comment. The coding standard tell<br>
to add description in quotes that make the documentation using some<br>
software. About each and every function comments should be there.<br>
Please help, I'm stuck.<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>True, not much documentation in the code.</div><div>We don't use comments in every function or method,</div><div>and the code should be easy to read, but honestly</div>
<div>Develop was unmaintained for a long time, I started a few months ago</div><div>to put it in shape to be used again.</div><div> </div><div>Sorry, I can't help you much more. If you are stuck with this task,</div><div>
maybe can look at other easier bugs</div><div><br></div><div><a href="http://wiki.sugarlabs.org/go/Activities/Develop#Pending_tasks">http://wiki.sugarlabs.org/go/Activities/Develop#Pending_tasks</a><br></div><div><br></div>
<div>Gonzalo</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
<br>
--<br>
Kamaljeet Kaur<br>
<a href="http://kamalkaur188.wordpress.com" target="_blank">kamalkaur188.wordpress.com</a><br>
<br>
"I am not what I am compared to others, I am what I am compared to my<br>
yesterday."<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div></div>