connection after a certain
connection time, in the middle of a download!
That is the best I can help you out with the information.
Have a happy New Year.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
above did not handle multiple occurances of elements well (or
may be it was me!), for example for multiple accounts in a download XML
config file I created, only got one account instance instead of 3.
Hope this helps.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
/sysinfo/base/initiatesystemshutdown.asp
Looks like this is the documented outcome. You could alternatively try
setting a little XML-RPC app to invoke 'shutdown -s' on the remote PC
from your PC (e.g. using Twisted Python).
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
the server before the client.
Do you have some firewall software installed that prevents the client
from connecting to the server?
Thanks
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Catalin,
Some explanation about what you are tring to do will be of immense
help.
Did you want to capture some other Windows object from Python or do you
want to capture a Python GUI application from Python?
I might be able to help out, but please send more details.
Thank you,
--Kartic
socket.gethostbyaddr(socket.gethostname())
will return a tuple containing fully qualified hostname, alternative
hostnames, ip addresses (>1 if multihomed).
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
or
socket.gethostbyname(socket.gethostname())
--
http://mail.python.org/mailman/listinfo/python-list
Hi Catalin,
Here are the modifications to your code. I am emailing you the complete
file back to your email address. Please note that you need PIL (Python
Imaging Library) to grab the window. I included a step to save the
image, but you can do whatever you want with it.
Thanks,
--Kartic
ail module -
http://python.org/doc/2.4/lib/module-email.html ? It is elegant and
easy to use.
Thank you,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
e
excelobj = None
del sheetobj
del wbkobj
del excelobj
4. At the end of my scripts, I do the following during the development
stage:
ActiveComConn = pythoncom._GetInterfaceCount()
print 'Done! Active Com Connections :',ActiveComConn # Print count of
Active COM connections.
Thank you
p the Add method for the Worksheets collection. VBA will show the
code completion, with all the arguments for the method call. Try the
same for any of the methods.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Sorry, I was thinking of the move() method. Move() takes the after=
argument.
See this link for usage. (The left nav bar has all other method of the
worksheets collection, so bookmark this page :-)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrtskhowtoaddnewwor
different/directory after the script completes.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Hmmm... I take it back... that is not working! I think it changes the
path only during execution time.
--
http://mail.python.org/mailman/listinfo/python-list
/)
Good luck and python your way!
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
s python code before you load it into your
application's namespace.
Cheers!
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ed in your application (e.g. only
the creator of a record and his/her superiors can edit it, all others
view it)
Please send more details to receive useful recommendations.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
> Sounds to me like you need to add a rights layer to gadfly.
Aha...I did not consider that possibility. I have not gone indepth into
Gadfly...is that a straigtforward thing to implement?
--
http://mail.python.org/mailman/listinfo/python-list
Try this:;
>>> import filegen
>>> import inspect
>>> print inspect.getsourcefile(filegen.SomeClass)
'C:\\Python23\\Lib\\site-packages\\filegen\filegen.py'
Cheers,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
That is because your module in not in a standard location that python
can find it in. It is not that inspect.getsourcefile() is not working.
Actually if you try reloading your filegen module after the os.chdir(),
you will see that import fails. If you copy your filegen directory to
the site-packag
on in your windows machine.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
tax checking using pycheck and has
good debug capabilities. From what I have seen, I like SPE quite a bit
(except for my wx programs hanging).
SPE - http://spe.pycs.net/
DrPython - http://drpython.sourceforge.net/
WingIDE - http://www.wingide.com/
You can google for Python IDE and see what comes up.
reversible.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
service, space is very limited but should more than
serve your needs now.
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
And yes, they have python installed...
--
http://mail.python.org/mailman/listinfo/python-list
other the python-sqlite module itself.
Good choice on selecting Sqlite..I love it and hope you will enjoy it
too!
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
3!"!!8!!3!%!*!)i!)!!!3!!&Hl!3!$!!#%!!!3!*!
%%!!!%!#3"K!!N!Z3!-%!!-J!N!5J!J"B1!#3'[!5!!!F!*!M8!)!!-`!N!33!!$
F!J#3'LjdCAKdrVm3`!3!N!iJ!!"J,Q4KG'%!!!"mb`%!!0!
(... Big Snip ...)
Or how about this?
>>> f = open('C:/windows/
at this cookbook entry:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/219300
Defines lambdas to convert integer to binary. The one you probably want is -
>>> bstr = lambda n, l=16: n<0 and binarystr((2L<>1).lstrip('0')+str(n&1) or '0'
>
27;
>>> NewBackupFilename
'c:skpdc01Backups\\2005-01-21 12-26-21.373000.tar.bz2'
>>> TarFileBackup = tarfile.open(NewBackupFilename, 'w:bz2')
>>> # Works!
I changed your DirBackup to 'C:\skpdc01\Backups'
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
imported)
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Steve,
Hmmm... Yes, I see what you are saying. Could you post your create
table statement so that I can create a db and play around with
dbimport?
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
simpler but not asynchronous, I found
this at the Vault called pyFTPDrop, which is aimed at *NIX.
http://www.mythi.cx/python/pyFTPdrop.py
/
Thank you,
--Kartic
PS: I am sure Medusa is fairly straightforward too, but I have no
experience with it.
--
http://mail.python.org/mailman/listinfo/python
accessing the import internals. There is also a simple example in
this section.
Is this is what you are looking for?
Thanks,
--Kartic
PS: This about how much I know...the more I find out, I will share :-)
--
http://mail.python.org/mailman/listinfo/python-list
t;Spam, " * 115)]
Since you are starting off, please read and follow the tuturial that
available with your Python installation or on the Python.org site at
http://docs.python.org/tut/tut.html
Thank you,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
for you.
Thank you,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
hon24\Lib\site-packages\wi
n32;C:\Python24\Lib\site-packages\win32\lib;C:\Python24\Lib\site-packages\Python
win;C:\WorkArea\Python
/
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ages at IBM.com but
I dont know if they have articles covering mysql.
HTH!
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
itefile = file('sitelist', 'r+', 1)
while True:
siteline = sitefile.readline()
if len(siteline) == 0:
break
site_rawlist = siteline.split()
sitelist[site_rawlist[0]] = site_rawlist[1:]
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Kartic said the following on 1/30/2005 8:21 PM:
[EMAIL PROTECTED] said the following on 1/30/2005 7:43 PM:
Hi - It looks like your code encountered a blank line when you got this
error.
You should move "if len(siteline) == 0" part right after your readline.
The way you have done it r
em object
if subject.startswith('reboot'):
os.system('shutdown -r') # reboot the Server
For more information, please read the email module in the Python Module
Docs.
Hope that will help you get started!
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
within for answers :-)
That way you will reinforce your theory and learn Python as well.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
tock Python install
that comes with Cygwin; it is tkinter enabled and works just fine?
(unless you have a compelling reason to install from source)
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ted.
http://docs.python.org/tut/tut.html
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
and it is called a "List" in Python parlance.
--
http://mail.python.org/mailman/listinfo/python-list
Tom,
It has to be iMatrix.append(k), not iMatrix[index] = k. Python will
give an error - list assignment index out of range - for that.
Just curious - what book are you following?
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
allocate your list.
iMatrix = [''] * size # where size is an integer
and this will give you a list of size empty elements. If you do this,
do not use iMatrix.append(). Use the array notation like you have in
you code currently.
Thanks
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ms and tell me what you got?
I'd like to know what it returns on different operating systems because
I'm developing a multiplatform software.
Thank you all.
Neat!
Works fine on Freebsd 5.3, Python 2.4
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
e).
It might also do you some good to join mod_python mailing list if you
are going to use it regularly.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
s pdb if debug
is on. IPython is nifty but I am just getting a feel for it.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
or the layout kill the browser. CSS is the way to go.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
HTML tables. And with CSS,
since you style the various HTML tags, you can create different "skins"
for your site too. This is definitely OT, like you said, but if you are
interested, please contact me directly. I don't pretend to be a CSS
expert but I can help you as much as I can.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
arted.
Also, there are good recipes in ASPN -
http://aspn.activestate.com/ASPN/Cookbook/Python?kwd=Threads
And last but not least, the chapter on Threads in Python Standard
Library by Fredrik Lundh - http://effbot.org/zone/books.htm
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Ah! I forgot about this link the slideshow is very informative.
--
http://mail.python.org/mailman/listinfo/python-list
py> import time
py> date_str = time.strftime('%Y-%m-%d', time.localtime())
py> date_str
'2005-02-04'
py> time.strptime(date_str, '%Y-%m-%d')
(2005, 2, 4, 0, 0, 0, 4, 35, -1)
That work?
--
http://mail.python.org/mailman/listinfo/python-list
hould use
'elif' for subsequent conditions after 'if'.)
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Winamp plugin that would
achieve this for you?
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
hat you asked this question as part of due diligence. These are
the factors I can point out. If I have missed something or misquoted,
gurus out there can correct me.
Hope that helped!
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
False, False)
This finds 'Contosa' and replaces all occurances with 'Fabricam'.
For a full explanation about the arguments to Execute, look it up in the
VBA Help.
Thanks,
-Kartic
The Great 'KK' uttered these words on 9/3/2005 11:14 AM:
> the code below is taken
programs
into .exe files that can be executed on any Win32 machine.
So you can develop the code using the python interpreter and deploy it
using either of these. I have used py2exe and nsis installer to create
setup versions of my applications and it deployment is really smooth,
just like any c
The Great 'KK' uttered these words on 9/7/2005 7:57 AM:
> Hello,
> I guess you could reproduce my problem, Kartic. I have tried the one u
> suggested, but sadly it didn't work for me. I think the COM of pywin is
> quite tricky, or it might be a bug. I have some friends w
ftp = ftplib.FTP("ftp.sadpanda.cjb.cc")
ftp.login("sadpanda","s4dp4nd4b1g")
file = "/FrenchBrochure.pages.zip.gz"
ftp.storbinary("STOR " + file, ProgressFile(file, "rb"), 1024)
ftp.quit()
Thanks,
-K
Hello,
> file = "/FrenchBrochure.pages.zip"
> ftp.storbinary("STOR " + file, ProgressFile(file, "rb"), 1024)
You are using file = "/FrenchBrochure.pages.zip" (sorry I did not notice
earlier).
You can not use file as variable name like you have, as it represents a
file object in pyt
t name:
filename = "/FrenchBrochure.pages.zip"
target = "FrenchBrochure.pages.zip"
ftp.storbinary("STOR " + target, ProgressFile(filename, "rb"), 1024)
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
tside? That is the only
possibility I can think of that prevents a non-local client from
connecting.
Also, please do a netstat -a on the machine running the server and see
the IP addresses to which the listening port is bound.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ules that my app uses.
I don't know if any other option is possible. Do my stated options
cover the possibilities and if so, which of these are the correct legal
one that I would follow?
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
urse, you have the usual popen() functions that you can use to
invoke SSH.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
process and also
receive the email into a user account, you have to list the recipients
in your .forward file. If you want to process the email through your
script and _then_ send it to a user, I think the only way would be to
send the email from your script to next intended recipient.
Thank you,
-
I just read your requirement of a pass through... Writing the email
back into sys.stdout from your script might do the trick of passing it
through to the original intended recipient.
--
http://mail.python.org/mailman/listinfo/python-list
I use PVCS for version control and use IDLE or Vim (depending on my
mood :-)) to write the programs.
So far I have had no issues, works pretty well. Somehow, and it is just
me, I don't care much for version control integrated with the IDE.
Thanks,
-Kartic
--
http://mail.python.org/ma
work?
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Andre said the following on 2/9/2005 7:28 PM:
Thank, Kartic
I actually tried doing it with several other accounts, notably mail.com and
netscape.com
When i do it with netscape the dialog goes like the following:
The username and password are naturally valid, but something else is wrong.
Do you
ch to download.
Thanks!
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
uot;)
tn.write("tail -f /tmp/logfile.txt\n")
telnet_resp.append(tn.read_until("$ "))
tn.write("exit\n")
telnet_resp.append(tn.read_all() )
tn.close()
telnet_out = open(OUTPUT, 'a')
telnet_out.write('\n'.join(telnet_resp))
telnet_out.close()
Alternatively, if your box has FTP access, you can FTP the log file to a
CStringIO file and operate on it.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
MM said the following on 2/13/2005 4:50 PM:
Hi,
I downloaded the latest win32all build 202 and tried to install under
win2000 with Py2.4. Install complains about 'couldn't open py2.4 to run
script pywin32-preinstall.py'. I checked the directories and there was
no sign of this file (preinstall.py
ou will get a lot of other ideas from the other fine people
on this list.
HTH!
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
>>> exec(exec2)
sweet
>>> exec(exec1)
sweet
>>> exec1.co_varnames
('m',)
>>> exec2.co_varnames
('m', 'has_key')
>>>
The code generated with the has_key() version is slightly large (3
bytes) than the one with the membership test. The co_varnames for the
two code objects vary, as the second one has the has_key method also,
which the other version does not.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
mail delivery completely,
but that means you will not get any answers related to your questions
either.
Believe me, it is not a bad idea or an inconvenience to receive other
emails on the list; you will learn a thing or two!
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
.
You can download for your OS from:
http://www.foolabs.com/xpdf/download.html
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
*'-'
conn.close()
Please also go thru the IMAP RFC to learn more about the flags field and
the IMAP protocol in general. If you're developing something serious
using IMAP, it will be very beneficial to you to understand the protocol.
http://www.imap.org/papers/biblio.html
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
can choose whether or not to receive emails).
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
http://twisted.sourceforge.net/TwistedDocs-1.1.0/man/mktap-man.html
(ftp is explained)
If you have no reason to use Twisted, may be you can take a look at
http://www.mythi.cx/python/pyFTPdrop.py but this is for UNIXish
operating systems.
HTH!
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Efrat Regev wrote:
> Hello,
>
> I was wondering whether there are any Python modules for various
> Internet protocols, e.g., is there something similar to
>
Erfat...yes...batteries included!
http://docs.python.org/lib/internet.html
Thanks,
-Kartic
--
http://mail.pyt
Will Stuyvesant said the following on 2/24/2005 5:10 PM:
[Varun]
For details about samhita http://www.samhita.info/
"The Madras Institute of Technology (MIT)" it says there.
The MIT acronym is taken already guys..
Will - It is a local acronym!
--
http://mail.python.org/mailman/listinfo/python-list
Harlin Seritt said the following on 2/24/2005 8:30 PM:
Actually MIT is an abbreviation and not an acronym in the true sense of
the word :)
Yes...I was caught unawares by the previous poster. But in a strange way
I was using the abbreviation MIT to talk about the acronym MIT (M*
Institute of Tech
. It is geared
towards the wxWidget C++ library but the information can be used to
build wxPython apps rather easily. The Help also annotates differences
between the C++ class and wxPython (and wxPerl) usage where approporiate.
Have fun!
-Kartic
--
http://mail.python.org/mailman/listinfo/python
BYou probably meant self.channel = choice
Also, there is a problem in your posted version. You have not defined
volume before usage. So I added it to __init__(..,.., volume=120) to
make it work.
Cheers,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
d PCs).
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] said the following on 2/27/2005 8:40 AM:
Hello Kartic & NG,
Thank you for your prompt answer. In effect, I'm trying to work on
a NT network of 6 PC (plus the server). Sorry to not have been clearer.
Ideally, I'm trying to monitor the Internet activity of each
Kartic said the following on 2/27/2005 8:54 AM:
For a homegrown solution, if I am not mistaken, you will have to use
libpcap (or pypcap) to monitor the packets being sent and received,
taking care to exclude the local subnet (or your reporting will be
skewed as packets sent to the monitoring
ename and that filename probably contains
characters not allowed by the local file system OR you generate a path
that does not exist. For open() to work with the 'w' flag, the path
where the file you say should be created should exist.
Thanks,
-Kartic
--
http://mail.python.org/mailman/listinfo/python-list
Could you please post your entire program, if possible?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
to do this? so that when i press enter
key, The key id or the event to be handled. Help me pls.
Take a look at the KeyEvents demo code under Processes and Events of the
wxPython Demo application.
In a nutshell, you have to handle the KEY_DOWN and KEY_UP events for the
window.
Thanks,
-Kartic
from source is
not an option as I do not have MSVC.
Thank you,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
BTW, I googled using some keywords and found nothing that would solve
my problem. I could also not find a searchable version of the twisted
mailing list.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks. Does this mean I have to upgrade python 2.3.3 to python 2.4 in
order to get this working?
--
http://mail.python.org/mailman/listinfo/python-list
under admin.
Twisted bought that and installed as Admin!
(Though I am not entire happy about installing it as admin, this should
do it for now)
Thank you for your efforts to help.
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
d more the Horizontal Scroll bar
might appear. In my limited knowledge, I can not tell whether or not
there is anything you can do about it. I don't think there is a way to
just prevent the H. Scroll Bar from appearing at all.
Thanks,
--Kartic
--
http://mail.python.org/mailman/listinfo/python-list
ore you can execute it.
To achieve what you describe (select a portion and execute) in IDLE, I
use exec() or alternatively the compiler module both of which can take
statements in a string variable and execute it. This works for me; may
be there is a better way.
Thanks,
--Kartic
--
h
Have you explored the wxPython Demo application? It is a pretty helpful
learning tool.
--
http://mail.python.org/mailman/listinfo/python-list
-bin and put a testcgi.py, this module
executes the .py file and displays the contents in the browser :-)
Thanks,
--Kartic
PS: You can handle query strings accordingly now.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 125 matches
Mail list logo