python kinterbasdb - check default charset of db or table

2012-04-18 Thread miamia
Hello, I am using python 2.7 and kinterbasdb. How could I find out default charset used by database? I need to check it and then according to used charset decode returned strings. thank you -- http://mail.python.org/mailman/listinfo/python-list

gettext localize strings with variables

2011-07-28 Thread miamia
Hello, I have variable OUHH and print _('This is %(OUHH)s a translatable string.' % locals()) how can I translate this ? -- http://mail.python.org/mailman/listinfo/python-list

multilanguage application - step by step

2011-07-28 Thread miamia
Hello guys, I would like to translate all strings in my application for several languages (eng, es, de, etc) and user should be able to switch app from one language to another. I am still newbie with python so is there any "step-by-step" tutorial how to to this? thanks for help -- http://mail.pyt

Re: The following modules appear to be missing - py2exe

2011-07-20 Thread miamia
hello, thanks for your answer. >  From the stuff below, you appear to be compiling for Windows. yes > > > The following modules appear to be missing > > ['Carbon', 'Carbon.Files', > This is Mac gui stuff which you neither need nor want in a Windows > binary. I suspect mis-specification somewhere.

Re: The following modules appear to be missing - py2exe

2011-07-19 Thread miamia
On Jul 19, 1:13 pm, Noon Silk wrote: > On Tue, Jul 19, 2011 at 7:47 PM, Peter Irbizon wrote: > > Hello, please I have problem with "The following modules appear to be > > missing" message during compiling my app exe file with py2exe. What should I > > do with this? Many thanks in advance. > > > T

The following modules appear to be missing - py2exe

2011-07-19 Thread miamia
Hello, please I have problem with "The following modules appear to be missing" message during compiling my app exe file with py2exe. What should I do with this? Many thanks in advance. The following modules appear to be missing ['Carbon', 'Carbon.Files', '_scproxy', 'fixedpoint', 'gdk', 'mx', 'un

Re: module problem on windows 64bit

2011-07-07 Thread miamia
On Jul 5, 5:05 pm, Thomas Jollans wrote: > On 06/27/2011 06:59 PM, miamia wrote: > > > Hello, > > > on 32-bit windows everything works ok but on 64-bit win I am getting > > this error: > > Traceback (most recent call last): > >   File "app.py",

can I distribute Microsoft.VC90.CRT files?

2011-06-27 Thread miamia
hello, I find out that my program needs Microsoft.VC90.CRT.manifest,msvcm90.dll,msvcp90.dll,msvcr90.dll files when I want to run it on win 64bit systems. I find these files in some other software. Can I simply take it from another software then include it to my program folder and distribute it th

module problem on windows 64bit

2011-06-27 Thread miamia
Hello, on 32-bit windows everything works ok but on 64-bit win I am getting this error: Traceback (most recent call last): File "app.py", line 1040, in do_this_now File "kinterbasdb\__init__.pyc", line 119, in File "kinterbasdb\_kinterbasdb.pyc", line 12, in File "kinterbasdb\_kinterbasd

how to write to registry without admin rights on win vista/7

2011-06-24 Thread miamia
Hello, In my program I can set to run after system startup (it writes path to Software\Microsoft\Windows\CurrentVersion\Run) but when normal user is logged in my application crashes. I must right click on app an choose "Run As Admin" and then everything works. How can I do it to write to registry

compile 32bit application in python for use on 64bit win machine

2011-06-23 Thread miamia
Hello, I am using 32bit win xp pro and compiling my python scripts as exe with py2exe. Everything works ok on 32bit windows platforms. But how can I compile my program for use on 64bit Windows? On 64bit windows this error occures in event log: Activation context generation failed for "C:\Program F

ugly exe icon in win7/vista

2011-06-06 Thread miamia
Hello, I am trying to make nice icons for my program. I compiled it with py2exe but problem is that exe icon in Win 7/vista is not very nice (it looks like win7 takes 32x32 instead of 248x248icon) I used png2ico to pack icon file: png2ico icon.ico png248x248.png png32x32.png png16x16.png Any idea

Re: python + php encrypt/decrypt

2011-06-06 Thread miamia
On Jun 6, 7:41 pm, geremy condra wrote: > On Sun, Jun 5, 2011 at 3:34 AM, Peter Irbizon wrote: > > Hello, thanks, Unfortunatelly I don't understand how xml should resolve my > > issue. My problem is: > > I am trying to use aes256 cbc on python and php to decrypt "textstring". But > > results are

python + php encrypt/decrypt

2011-06-04 Thread miamia
Hello, I would like to encrypt text in python and decrypt it in my PHP script. I tried to use pycrypto and some aes php scripts but the results are not the same. Please, is there any example (the best way source codes) how to do this in python and PHP? many thanks -- http://mail.python.org/mailman

hide gtk warning

2011-05-31 Thread miamia
I am getting gtkwarning: gdk_property_change: assertion window ! =Null failed gtk.main() it is gdk bug but not fixed yet.How could I simply "not show/hide" this error warning? so user should never see it. thank you -- http://mail.python.org/mailman/listinfo/python-list

python urllib2 data post over https

2011-05-26 Thread miamia
hello, I am using this code to send data over https with post method: params='tieto data idu na sevrer\n' kamodoslat = "https://domena.tld/script.php"; req = urllib2.Request(kamodoslat) req.add_header('User-Agent', 'agent') resp = urllib2.urlopen(req, params) how can I make sure that data were re