Accepting a SAML 2 Assertion

2010-11-22 Thread raghu bg
Hello, I am working on providing a SSO solution to a customer who acts as an identity provider. He already has IDP on his side to generate SAML 2 assertions with user first name , last name and time stamp as parameters. Our task is to accept this assertion which is signed, decrypt it and send it

RE: string in files

2008-12-30 Thread Narasimhan Raghu-RBQG84
Simple solution: us result=yourString.split(" ") and you get a list with all the words. -Original Message- From: python-list-bounces+rbqg84=motorola@python.org [mailto:python-list-bounces+rbqg84=motorola@python.org] On Behalf Of ibpe...@gmail.com Sent: Tuesday, December 30, 2008 3

Windows SSH (remote execution of commands) - Python Automation

2008-12-29 Thread Narasimhan Raghu-RBQG84
- Putty window opens up as well. But obviously I am unable to run any commands in that. I need to find something like a handle to that Putty window so that I can execute commands there. Can anyone provide me some help in achieving this ? Thanks, -- Raghu -- http://mail.python.org/mailman

Explanation about pickle module

2007-01-30 Thread raghu
can any one explain about pickle i read in the book but they have not provided any example for that so please explain with a simple example -- http://mail.python.org/mailman/listinfo/python-list

Diff between opening files in 'r' and 'r+' mode

2007-01-30 Thread raghu
i want to know the difference between 'r' mode and 'r+' mode 1.i = open('c:\python25\integer.txt','w')>for writiing i.write('hai')->written some content in text file i = open('c:\python25\integer.txt','r')>for reading print i.read()>for printing the contents in that te

Standard streams

2007-01-19 Thread raghu
what is standard streams in case of python? -- http://mail.python.org/mailman/listinfo/python-list

Re: How can i eval subindex on list[ ][ ] ?

2007-01-17 Thread raghu
its working for me i think its better to mention the value of i and j for both lists or you might have done mistake while formatting strings it should be %s for strings and %d for numbers if any subelement in lists does not formatted properly it may lead to error -- http://mail.python.org/mailma

Explanation about for loop

2007-01-11 Thread raghu
can any one help me explaining for loop and its execution and its syntax with a simple example. -- http://mail.python.org/mailman/listinfo/python-list

Re: referrers

2006-05-24 Thread raghu
Diez, I did look into gc, specifically gc.get_referrers(), but it seemed to give me something that I cant decipher. I added the following line. print "referrers ",gc.get_referrers(x0) This is what I got. referrers [{'__builtins__': , '__file__': './tst1.py', 'pdb': , 'sys': , 'y': 24012, 'gc'

referrers

2006-05-24 Thread raghu
Hi All, The sys.getrefcount() is very useful to get the number of references on a particular object. Is there any companion function to get "who" the referrers are ? for e.g. global x global y global z x0=24012 y=x0 z=x0 print "ref count ",sys.getrefcount(x0) This prints a ref count of 5.

Re: Reference Counts

2006-05-18 Thread raghu
Hmm... I tried the gc.collect(). It aint helping. The reference count still keeps growing till 5 after it which it drops. As you said, it is not gonna hurt right away. The only downside in that mysterious up and down thingie is that , we could get to a wrong conclusion about a leak, if we ran the

Re: Reference Counts

2006-05-18 Thread raghu
Heiko, Thanks for the explanation. I understood the idea of 1 being interned. Also I understood the globals vars having a reference in the internal dict. I ran the "leaky" version of the program and yes...it showed a progressively increasing totalrefcount as below. Before 0 : 16579 After 0 : 1658

Reference Counts

2006-05-17 Thread raghu
Hi All, I am a new user of Python and am having a bit of problem understanding the Reference counting and memory leakage issues. Requesting help from experienced users I wrote the following simple program. #!/usr/bin/python import sys global a print "Total Reference count at the start ="

Re: mod_python and PHP sharing same session

2006-04-04 Thread K Raghu Prasad
the way, won't it be easy to use cookies to shared data between these two applications? Raghu -- http://mail.python.org/mailman/listinfo/python-list