Hi guys,<br>I finally completed the integration with clamrefactor. Now it works without setting the PYTHONPATH. The code has en error though, when the function that uses clamrefactor is called this shows:<br>Traceback (most recent call last):<br>

  File "<string>", line 342, in <module><br>  File "/usr/lib/python2.6/optparse.py", line 1376, in parse_args<br>    rargs = self._get_args(args)<br>  File "/usr/lib/python2.6/optparse.py", line 1358, in _get_args<br>

    return sys.argv[1:]<br>I don't know why or how to change it.<br><br>Bye!<br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 4:31 PM, Xavier Serra Román <span dir="ltr"><<a href="mailto:xvr.serra@gmail.com">xvr.serra@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Patch after another refactoring. <br>The error messages are shown through Qt message box and not on the console. Also, the migrationScript is now embedded in NetworkEditor, so the only thing left to decide is where to put the migrationScript (right now it's in the parent directory of NetworkEditor) and change the line where it is embedded to the final location.<br>


<br>I'm still working to solve the issue about clamrefactor.py, because right now the PYTHONPATH enviroment variable has to be set up to where clamrefactor.py is for it to fully work<br><br>Bye!<div><div></div><div class="h5">

<br><br><div class="gmail_quote">
On Fri, Sep 10, 2010 at 2:10 PM, David García Garzón <span dir="ltr"><<a href="mailto:david.garcia@barcelonamedia.org" target="_blank">david.garcia@barcelonamedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


After a refactoring session with Xavi, the patch is commited but the actual<br>
upgrading is disabled as it needs the migration script to be at specific<br>
locations. When Xavi solves that the functionality will be working.<br>
<br>
Important: That commit adds a new dependency on python-dev to compile<br>
NetworkEditor.<br>
<br>
David.<br>
<div><div></div><div><br>
On Saturday 31 July 2010 02:57:04 Xavier Serra wrote:<br>
> On Jul 30, 2010, at 6:19 PM, David García Garzón wrote:<br>
><br>
> On Tuesday 27 July 2010 18:55:43 Xavier Serra Román wrote:<br>
> Hi guys,<br>
> I finished the integration of clamrefactor with NetworkEditor. The code is<br>
> in the patch. I'm sorry for all the warning it throws, I don't know how to<br>
> silence them. The code has some limitations:<br>
><br>
> 1. clamrefactor.py and migrationScript need to be in the same directory<br>
> from where you launch NetworkEditor 2. NetworkEditor has to be launched<br>
> using: PYTHONPATH=`pwd` ./NetworkEditor This is needed for the Python<br>
> Interpreter embedded to find the module.<br>
><br>
> The SConstruct file is changed too because it's needed to link with the<br>
> Python libraries<br>
><br>
> Bye!<br>
><br>
> We should meet to decide what to do with the scripts and paths. Embedding<br>
> would be the perfect solution, at least for the migration script but also<br>
> for the clamrefactor module. Is that possible?<br>
><br>
><br>
> I don't really know. The safest assumption would be that it's possible.<br>
> I'll search around to see If I find something. We should decide too how to<br>
> treat errors (tell the user the specific error; just tell that something<br>
> happened; do nothing and load the network file without any change...)<br>
><br>
><br>
> It also looks like the loadFromString and loadFrom file have some code<br>
> duplication, and that the python bit looks like an alien we should move<br>
> apart to some class.<br>
><br>
><br>
> I though so too, but I didn't know how to solve the problem. Maybe we can<br>
> come up with a solution together.<br>
><br>
> If you are still by Barcelona, drop yourself by my office and let's do some<br>
> pair programming.<br>
><br>
> David.<br>
> _______________________________________________<br>
> clam-devel mailing list<br>
</div></div>> <a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><mailto:<a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a>><br>


<div><div></div><div>> <a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
_______________________________________________<br>
clam-devel mailing list<br>
<a href="mailto:clam-devel@lists.clam-project.org" target="_blank">clam-devel@lists.clam-project.org</a><br>
<a href="http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org" target="_blank">http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>