Re: [Qgis-developer] Capturing stdout from a plugin

2013-03-17 Thread Salvatore Larosa
Hi Gary,

I issued a pull request [1] to revert that method.

Regards,

-SL

[1] - https://github.com/qgis/Quantum-GIS/pull/470


2013/3/15 Gary Sherman gsher...@geoapt.com

 In the 1.x console API, you could use:

 output = sys.stdout.get_and_clean_data()

 to grab what was sent to stdout via print statements.

 Is there an equivalent way to do this with the 2.0 API? I'm not seeing
 it...

 Thanks,
 -gary


 --
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Gary Sherman
 Chair, QGIS Project Steering Committee
 -Desktop GIS Book:
  *http://desktopgisbook.com
 -Alaska Novel:
  *http://alaskana.co
 -Geospatial Consulting  Hosting:
  *http://geoapt.com
 We work virtually everywhere
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Capturing stdout from a plugin

2013-03-15 Thread Salvatore Larosa
Hi,

2013/3/15 Gary Sherman gsher...@geoapt.com

 In the 1.x console API, you could use:

 output = sys.stdout.get_and_clean_data()

 to grab what was sent to stdout via print statements.

 Is there an equivalent way to do this with the 2.0 API? I'm not seeing
 it...


currently doesn't exist a similar method in the new console, but all the
print
statements are catched from the console.

I had to delete the QgisOutputCatcher class because I got some problem with
the text styling in qscintilla lexer.

However, I think it is better revert that method or add a similar.
I'll try fix it asap.

Thanks for catching it :-)

Regards,

-SL




 Thanks,
 -gary


 --
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Gary Sherman
 Chair, QGIS Project Steering Committee
 -Desktop GIS Book:
  *http://desktopgisbook.com
 -Alaska Novel:
  *http://alaskana.co
 -Geospatial Consulting  Hosting:
  *http://geoapt.com
 We work virtually everywhere
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer