secure uploading
hi i'm after a way to securely upload a file to a web server and I'm wondering how to go about it. basically i want to upload a small text file to my hosted webspace once every hour or so. because it will be happening once an hour, i want to make sure the transaction is encrypted, but i don't really know how to do this. can someone point me in the right direction? i'm a reasonably noob scripter so go easy on me. :) thanks! -h. -- http://mail.python.org/mailman/listinfo/python-list
Re: secure uploading
well I want a script to upload something automatically, so i need a python script to do that for me. my hoster has ssl enabled on their server and I have generated a key. but now I need to know how to upload something using ssl to the server. how to I ftp something to the server using ssl? thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: secure uploading
ok, so what can I do to get something uploaded? how can I upload something via http? -- http://mail.python.org/mailman/listinfo/python-list
Re: secure uploading
oh ok cool. I'll ask them for some advice. thanks! -- http://mail.python.org/mailman/listinfo/python-list
__new__ woes with list
i'm having a hell of a time getting this to work. basically I want to
be able to instantiate an object using either a list, or a string, but
the class inherits from list.
if the class is instantiated with a string, then run a method over it
to tokenize it in a meaningful way.
so how come this doesn't work??? if I do this:
a=TMP( 'some string' )
it does nothing more than list('some string') and seems to be ignoring
the custom __new__ method.
def convertDataToList( data ): return [1,2,3]
class TMP(list):
def __new__( cls, data ):
if isinstance(data, basestring):
new = convertDataToList( data )
return list.__new__( cls, new )
if isinstance(data, list):
return list.__new__( cls, data )
--
http://mail.python.org/mailman/listinfo/python-list
Re: __new__ woes with list
ok thansk - i will search again. i did try searching but didn't find anything relevant... -- http://mail.python.org/mailman/listinfo/python-list
