Re: external program output
Oh, you're right. I have thought about using MySQL/PostgreSQL, but it's not that easy due to some specific configurations I have on Postfix. I'm working on it. However, even I made my question related to Postfix, I have the same problem with other app I've developed that need to call external programs/scripts and it would be nice to get the output - just like Webmin does :) - Thanks for your time. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Newbie problem with unicode in model (pgsql)
Excerpts from Marius Gedminas's message of Wed Nov 11 16:48:23 -0300 2009: On Tue, Nov 10, 2009 at 04:43:54PM -0300, Mariano Mara wrote: Hi, I'm facing the current situation and I don't know how to fix it. What I want to do, of course, is to store unicode data, have unicode data in the database and retrieve unicode data. But I don't know what I'm missing. Your code looks correct to me. If I try to store unicode data in the database, when I try to retrieve it all I get is garbage. A full example with paster shell (as you can see my database store garbage too): In [1]: x = model.Language() In [2]: x.id = u'es' In [3]: x.name = u'Español' I see from the shape of your prompt that you're using IPython. IPython has a bug where you cannot really input Unicode literals. Try it: $ ipython In [1]: len(u'ñ') Out[1]: 2 --- WROOONG $ python len(u'ñ') 1 --- correct The bug is reported upstream and might even be fixed in ipython's trunk. Marius Gedminas Thank you very much Marius, indeed I was having problems with Ipython. Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: external program output
On Nov 12, 8:32 am, gsandorx gsand...@gmail.com wrote: However, even I made my question related to Postfix, I have the same problem with other app I've developed that need to call external programs/scripts and it would be nice to get the output - just like import os os.popen(ls -al /var/www).readlines() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: external program output
i have no clue. that looks like it should be right. maybe there's an os issue ? there's a version of subprocess that ships in paster /paste/util/subprocess24 try importing that as subprocess ? a bunch of the paste scripts use that as a failover if the main dist of subprocesss isn't available. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: external program output
Maybe I'm totally wrong but maybe the program is outputting to stderr which you seem to be ignoring: (stdoutOutput, stderrOutput) = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() print stdout, stdoutOutput print stderr, stderrOutput On Thu, Nov 12, 2009 at 12:38 PM, Jonathan Vanasco jonat...@findmeon.com wrote: i have no clue. that looks like it should be right. maybe there's an os issue ? there's a version of subprocess that ships in paster /paste/util/subprocess24 try importing that as subprocess ? a bunch of the paste scripts use that as a failover if the main dist of subprocesss isn't available. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Building EGGs
On Nov 10, 2009, at 7:33 AM, gsandorx wrote: Hi, When building egg packages, do I need to run the command “python setup.py bdist_egg” with every python executable corresponding to my desired supported versions? Doing so would require me to have virtual enviroments for at least 3 python versions (2.4, 2.5, 2.6), wouldn’t? Isn’t there an easy way? (I’m currently using python26) Pretty much, but as Tom mentions you rare should need to do this, sdist should be enough. Otherwise I've done this on OS X using MacPorts installations of Python, which will install the non-default Python as python2.x. Then I've just ran python setup.py bdist_egg, python2.3 setup.py bdist_egg, etc -- Philip Jenvey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Caching templates
On Nov 9, 2009, at 12:40 AM, alex_zh wrote: Hello. I have a problem with caching of templates. Sometimes users get the pages, that opened before. I don't khow the reason. Is it possible to turn off all the caching in whole pylons project? You can set cache_enabled = False in the ini file to disable @beaker_cache caching -- Philip Jenvey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---