<div dir="ltr"><font color="#000066"><font size="2"><font face="courier new,monospace">That's the question, this function takes "username" as parameter, </font></font></font><font color="#000066"><font size="2"><font face="courier new,monospace">so why the username is <b>mt_007</b> not <b>mtantawy</b>? That's why I thought his username was incorrect.<br>

If in the lp page, the url was well constructed then why in the loco-directory, it's not? my explanation is that, there are TWO OpenID's and the system conflict between them, but I can't figure out exactly where.<br>

<br>+Shams: I understand what you mean by "permanent" but as far as I understand here, this is dynamically created for each time you request the page, it's not stored in a static page or database, so when I change my username and open this page, the link will get updated. This function only get the permanent url associated with the given username. And actually this explains why the page "<a href="https://launchpad.net/~mt_007">https://launchpad.net/~mt_007</a>" gives a not found, because this function enforce the usage of this url: "<a href="https://launchpad.net/~">https://launchpad.net/~</a>" concatenated with the given username, and in our case here <b>mt_007</b> which is not stored on lp. (I believe stored as the OpenID handle for hotmail)<br>

<br clear="all"></font></font></font><div dir="ltr"><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;"><br></span><span style="color: rgb(0, 0, 102); font-family: courier new,monospace;"><span style="color: rgb(0, 0, 0);">-- Amahdy AbdElAziz</span><br style="color: rgb(0, 0, 0);">

<a style="color: rgb(0, 0, 0);" href="http://www.amahdy.net" target="_blank">http://www.amahdy.net</a><br style="color: rgb(0, 0, 102); font-family: courier new,monospace;"></span></div><br>
<br><br><div class="gmail_quote">On Sat, Jul 9, 2011 at 22:56, Ahmed Toulan <span dir="ltr"><<a href="mailto:thelinuxer@ubuntu.com">thelinuxer@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div dir="ltr">From what I know about openid, you have a certain link that identifies you as a user. And that link can be shared with other websites to authenticate you. So yes this link has to be permanent. <br><br>The code simply opens the HTML page of your launchpad profile and searches for some tags. Here is an example from my page:<br>


<pre><<span>link</span><span> rel</span>=<span>"openid.server"
              </span><span>href</span><span>="</span><a>https://login.launchpad.net/+openid</a><span>" </span><span><span>/</span></span>>
        <<span>link</span><span> rel</span>=<span>"openid.delegate"
              </span><span>href</span><span>="</span><a>https://login.launchpad.net/+id/stm4YzY</a><span>" </span><span><span>/</span></span>>
        <<span>link</span><span> rel</span>=<span>"openid2.provider"
              </span><span>href</span><span>="</span><a>https://login.launchpad.net/+openid</a><span>" </span><span><span>/</span></span>>
        <<span>link</span><span> rel</span>=<span>"openid2.local_id"
              </span><span>href</span><span>="</span><a>https://login.launchpad.net/+id/stm4YzY</a><span>" </span><span><span>/</span></span>><br>
<br>Then the code returns something like this:<br><br><openid.consumer.discover.OpenIDServiceEndpoint server_url='<a href="https://login.launchpad.net/+openid" target="_blank">https://login.launchpad.net/+openid</a>' claimed_id='<a href="https://launchpad.net/%7Ethelinuxer" target="_blank">https://launchpad.net/~thelinuxer</a>' local_id='<a href="https://login.launchpad.net/+id/stm4YzY" target="_blank">https://login.launchpad.net/+id/stm4YzY</a>' canonicalID=None used_yadis=False ><br>


</pre>And that's my permanent openid according to this code.<br><br>Regards,<br><font color="#888888">Ahmed Toulan.<br><br></font><div class="gmail_quote"><div class="im">On Sat, Jul 9, 2011 at 9:29 PM, Mahmoud Tantawy <span dir="ltr"><<a href="mailto:mt_007@hotmail.com" target="_blank">mt_007@hotmail.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">



<div><div dir="ltr">
<div>since i just started learning Python 2 days ago, i'll just zip-it and shut-up til someone figures out what's going on :$<br><font color="#888888"><br>Mahmoud Tantawy</font></div>                                     </div></div>
<br></div>--<div class="im"><br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></div></blockquote></div><br></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div>