<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>flumotion.common.identity</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script> </head> <body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <th class="navbar" width="100%"></th> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> Package flumotion :: <a href="flumotion.common-module.html">Package common</a> :: Module identity </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" onclick="toggle_private();">hide private</a>]</span></td></tr> </table> </td> </tr> </table> <h1 class="epydoc">Source Code for <a href="flumotion.common.identity-module.html">Module flumotion.common.identity</a></h1> <pre class="py-src"> <a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment"># -*- Mode: Python -*-</tt> </tt> <a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-comment"># vi:si:et:sw=4:sts=4:ts=4</tt> </tt> <a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt> <a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-comment"># Flumotion - a streaming media server</tt> </tt> <a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-comment"># Copyright (C) 2004,2005,2006,2007 Fluendo, S.L. (www.fluendo.com).</tt> </tt> <a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-comment"># All rights reserved.</tt> </tt> <a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"> </tt> <a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-comment"># This file may be distributed and/or modified under the terms of</tt> </tt> <a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-comment"># the GNU General Public License version 2 as published by</tt> </tt> <a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"><tt class="py-comment"># the Free Software Foundation.</tt> </tt> <a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"><tt class="py-comment"># This file is distributed without any warranty; without even the implied</tt> </tt> <a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"><tt class="py-comment"># warranty of merchantability or fitness for a particular purpose.</tt> </tt> <a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"><tt class="py-comment"># See "LICENSE.GPL" in the source distribution for more information.</tt> </tt> <a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> </tt> <a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"><tt class="py-comment"># Licensees having purchased or holding a valid Flumotion Advanced</tt> </tt> <a name="L16"></a><tt class="py-lineno">16</tt> <tt class="py-line"><tt class="py-comment"># Streaming Server license may use this file in accordance with the</tt> </tt> <a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"><tt class="py-comment"># Flumotion Advanced Streaming Server Commercial License Agreement.</tt> </tt> <a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"><tt class="py-comment"># See "LICENSE.Flumotion" in the source distribution for more information.</tt> </tt> <a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"> </tt> <a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"><tt class="py-comment"># Headers in this file shall remain intact.</tt> </tt> <a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> </tt> <a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"><tt class="py-docstring">"""manager-side identities of objects.</tt> </tt> <a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"><tt class="py-docstring">Manager-side identities of objects that can request operations</tt> </tt> <a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"><tt class="py-docstring">from the manager.</tt> </tt> <a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt> <a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> </tt> <a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">"$Rev: 7368 $"</tt> </tt> <a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"> </tt> <a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"> </tt> <a name="Identity"></a><div id="Identity-def"><a name="L30"></a><tt class="py-lineno">30</tt> <a class="py-toggle" href="#" id="Identity-toggle" onclick="return toggle('Identity');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="flumotion.common.identity.Identity-class.html">Identity</a><tt class="py-op">:</tt> </tt> </div><div id="Identity-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Identity-expanded"><a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L32"></a><tt class="py-lineno">32</tt> <tt class="py-line"><tt class="py-docstring"> I represent the identity of an object that can ask the manager to</tt> </tt> <a name="L33"></a><tt class="py-lineno">33</tt> <tt class="py-line"><tt class="py-docstring"> perform functions.</tt> </tt> <a name="L34"></a><tt class="py-lineno">34</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L35"></a><tt class="py-lineno">35</tt> <tt class="py-line"><tt class="py-docstring"> I exist for the AdminAction socket, defined in</tt> </tt> <a name="L36"></a><tt class="py-lineno">36</tt> <tt class="py-line"><tt class="py-docstring"> L{flumotion.component.plugs.adminaction}, so that specific actions</tt> </tt> <a name="L37"></a><tt class="py-lineno">37</tt> <tt class="py-line"><tt class="py-docstring"> can be taken when I request to perform a function.</tt> </tt> <a name="L38"></a><tt class="py-lineno">38</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"><tt class="py-docstring"> I serve as a point of extensibility for the IdentityProviderPlug socket,</tt> </tt> <a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"><tt class="py-docstring"> defined in L{flumotion.component.plugs.identity}.</tt> </tt> <a name="L41"></a><tt class="py-lineno">41</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L42"></a><tt class="py-lineno">42</tt> <tt class="py-line"><tt class="py-docstring"> Subclasses should only implement __str__</tt> </tt> <a name="L43"></a><tt class="py-lineno">43</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L44"></a><tt class="py-lineno">44</tt> <tt class="py-line"> </tt> <a name="Identity.__str__"></a><div id="Identity.__str__-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="#" id="Identity.__str__-toggle" onclick="return toggle('Identity.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.common.identity.Identity-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="Identity.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Identity.__str__-expanded"><a name="L46"></a><tt class="py-lineno">46</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">NotImplementedError</tt> </tt> </div></div><a name="L47"></a><tt class="py-lineno">47</tt> <tt class="py-line"> </tt> <a name="L48"></a><tt class="py-lineno">48</tt> <tt class="py-line"> </tt> <a name="LocalIdentity"></a><div id="LocalIdentity-def"><a name="L49"></a><tt class="py-lineno">49</tt> <a class="py-toggle" href="#" id="LocalIdentity-toggle" onclick="return toggle('LocalIdentity');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="flumotion.common.identity.LocalIdentity-class.html">LocalIdentity</a><tt class="py-op">(</tt><tt class="py-base-class">Identity</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="LocalIdentity-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="LocalIdentity-expanded"><a name="L50"></a><tt class="py-lineno">50</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L51"></a><tt class="py-lineno">51</tt> <tt class="py-line"><tt class="py-docstring"> I represent a local identity.</tt> </tt> <a name="L52"></a><tt class="py-lineno">52</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L53"></a><tt class="py-lineno">53</tt> <tt class="py-line"> </tt> <a name="LocalIdentity.__init__"></a><div id="LocalIdentity.__init__-def"><a name="L54"></a><tt class="py-lineno">54</tt> <a class="py-toggle" href="#" id="LocalIdentity.__init__-toggle" onclick="return toggle('LocalIdentity.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.common.identity.LocalIdentity-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="LocalIdentity.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LocalIdentity.__init__-expanded"><a name="L55"></a><tt class="py-lineno">55</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Variable flumotion.admin.command.component.PropertyGet.name=flumotion.admin.command.component.PropertyGet-class.html#name,Variable flumotion.admin.command.component.PropertyList.name=flumotion.admin.command.component.PropertyList-class.html#name,Variable flumotion.admin.gtk.configurationassistant.ScenarioStep.name=flumotion.admin.gtk.configurationassistant.ScenarioStep-class.html#name,Variable flumotion.admin.gtk.configurationassistant.WelcomeStep.name=flumotion.admin.gtk.configurationassistant.WelcomeStep-class.html#name,Variable flumotion.admin.gtk.greeter.Authenticate.name=flumotion.admin.gtk.greeter.Authenticate-class.html#name,Variable flumotion.admin.gtk.greeter.ConnectExisting.name=flumotion.admin.gtk.greeter.ConnectExisting-class.html#name,Variable flumotion.admin.gtk.greeter.ConnectToExisting.name=flumotion.admin.gtk.greeter.ConnectToExisting-class.html#name,Variable flumotion.admin.gtk.greeter.Greeter.name=flumotion.admin.gtk.greeter.Greeter-class.html#name,Variable flumotion.admin.gtk.greeter.Initial.name=flumotion.admin.gtk.greeter.Initial-class.html#name,Variable flumotion.admin.gtk.greeter.LoadConnection.name=flumotion.admin.gtk.greeter.LoadConnection-class.html#name,Variable flumotion.admin.gtk.greeter.StartNew.name=flumotion.admin.gtk.greeter.StartNew-class.html#name,Variable flumotion.admin.gtk.greeter.StartNewError.name=flumotion.admin.gtk.greeter.StartNewError-class.html#name,Variable flumotion.admin.gtk.greeter.StartNewSuccess.name=flumotion.admin.gtk.greeter.StartNewSuccess-class.html#name,Variable flumotion.admin.gtk.overlaystep.OverlayStep.name=flumotion.admin.gtk.overlaystep.OverlayStep-class.html#name,Variable flumotion.component.encoders.dirac.wizard_gtk.DiracStep.name=flumotion.component.encoders.dirac.wizard_gtk.DiracStep-class.html#name,Variable flumotion.component.encoders.jpeg.wizard_gtk.JPEGStep.name=flumotion.component.encoders.jpeg.wizard_gtk.JPEGStep-class.html#name,Variable flumotion.component.encoders.mulaw.wizard_gtk.MulawStep.name=flumotion.component.encoders.mulaw.wizard_gtk.MulawStep-class.html#name,Variable flumotion.component.encoders.smoke.wizard_gtk.SmokeStep.name=flumotion.component.encoders.smoke.wizard_gtk.SmokeStep-class.html#name,Variable flumotion.component.encoders.speex.wizard_gtk.SpeexStep.name=flumotion.component.encoders.speex.wizard_gtk.SpeexStep-class.html#name,Variable flumotion.component.encoders.theora.wizard_gtk.TheoraStep.name=flumotion.component.encoders.theora.wizard_gtk.TheoraStep-class.html#name,Variable flumotion.component.encoders.vorbis.wizard_gtk.VorbisStep.name=flumotion.component.encoders.vorbis.wizard_gtk.VorbisStep-class.html#name,Variable flumotion.component.producers.audiotest.wizard_gtk.TestAudioProducerStep.name=flumotion.component.producers.audiotest.wizard_gtk.TestAudioProducerStep-class.html#name,Variable flumotion.component.producers.bttv.wizard_gtk.TVCardStep.name=flumotion.component.producers.bttv.wizard_gtk.TVCardStep-class.html#name,Variable flumotion.component.producers.firewire.wizard_gtk.FireWireAudioStep.name=flumotion.component.producers.firewire.wizard_gtk.FireWireAudioStep-class.html#name,Variable flumotion.component.producers.firewire.wizard_gtk.FireWireVideoStep.name=flumotion.component.producers.firewire.wizard_gtk.FireWireVideoStep-class.html#name,Variable flumotion.component.producers.looper.wizard_gtk.LoopAudioStep.name=flumotion.component.producers.looper.wizard_gtk.LoopAudioStep-class.html#name,Variable flumotion.component.producers.looper.wizard_gtk.LoopVideoStep.name=flumotion.component.producers.looper.wizard_gtk.LoopVideoStep-class.html#name,Variable flumotion.component.producers.soundcard.wizard_gtk.SoundcardStep.name=flumotion.component.producers.soundcard.wizard_gtk.SoundcardStep-class.html#name,Variable flumotion.component.producers.videotest.wizard_gtk.TestVideoProducerStep.name=flumotion.component.producers.videotest.wizard_gtk.TestVideoProducerStep-class.html#name,Variable flumotion.component.producers.webcam.wizard_gtk.WebcamStep.name=flumotion.component.producers.webcam.wizard_gtk.WebcamStep-class.html#name,Variable flumotion.extern.command.command.Command.name=flumotion.extern.command.command.Command-class.html#name,Variable flumotion.launch.parse.Component.name=flumotion.launch.parse.Component-class.html#name"><a title="flumotion.admin.command.component.PropertyGet.name flumotion.admin.command.component.PropertyList.name flumotion.admin.gtk.configurationassistant.ScenarioStep.name flumotion.admin.gtk.configurationassistant.WelcomeStep.name flumotion.admin.gtk.greeter.Authenticate.name flumotion.admin.gtk.greeter.ConnectExisting.name flumotion.admin.gtk.greeter.ConnectToExisting.name flumotion.admin.gtk.greeter.Greeter.name flumotion.admin.gtk.greeter.Initial.name flumotion.admin.gtk.greeter.LoadConnection.name flumotion.admin.gtk.greeter.StartNew.name flumotion.admin.gtk.greeter.StartNewError.name flumotion.admin.gtk.greeter.StartNewSuccess.name flumotion.admin.gtk.overlaystep.OverlayStep.name flumotion.component.encoders.dirac.wizard_gtk.DiracStep.name flumotion.component.encoders.jpeg.wizard_gtk.JPEGStep.name flumotion.component.encoders.mulaw.wizard_gtk.MulawStep.name flumotion.component.encoders.smoke.wizard_gtk.SmokeStep.name flumotion.component.encoders.speex.wizard_gtk.SpeexStep.name flumotion.component.encoders.theora.wizard_gtk.TheoraStep.name flumotion.component.encoders.vorbis.wizard_gtk.VorbisStep.name flumotion.component.producers.audiotest.wizard_gtk.TestAudioProducerStep.name flumotion.component.producers.bttv.wizard_gtk.TVCardStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireAudioStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireVideoStep.name flumotion.component.producers.looper.wizard_gtk.LoopAudioStep.name flumotion.component.producers.looper.wizard_gtk.LoopVideoStep.name flumotion.component.producers.soundcard.wizard_gtk.SoundcardStep.name flumotion.component.producers.videotest.wizard_gtk.TestVideoProducerStep.name flumotion.component.producers.webcam.wizard_gtk.WebcamStep.name flumotion.extern.command.command.Command.name flumotion.launch.parse.Component.name" class="py-name" href="#" onclick="return doclink('link-0', 'name', 'link-0');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-1" class="py-name"><a title="flumotion.admin.command.component.PropertyGet.name flumotion.admin.command.component.PropertyList.name flumotion.admin.gtk.configurationassistant.ScenarioStep.name flumotion.admin.gtk.configurationassistant.WelcomeStep.name flumotion.admin.gtk.greeter.Authenticate.name flumotion.admin.gtk.greeter.ConnectExisting.name flumotion.admin.gtk.greeter.ConnectToExisting.name flumotion.admin.gtk.greeter.Greeter.name flumotion.admin.gtk.greeter.Initial.name flumotion.admin.gtk.greeter.LoadConnection.name flumotion.admin.gtk.greeter.StartNew.name flumotion.admin.gtk.greeter.StartNewError.name flumotion.admin.gtk.greeter.StartNewSuccess.name flumotion.admin.gtk.overlaystep.OverlayStep.name flumotion.component.encoders.dirac.wizard_gtk.DiracStep.name flumotion.component.encoders.jpeg.wizard_gtk.JPEGStep.name flumotion.component.encoders.mulaw.wizard_gtk.MulawStep.name flumotion.component.encoders.smoke.wizard_gtk.SmokeStep.name flumotion.component.encoders.speex.wizard_gtk.SpeexStep.name flumotion.component.encoders.theora.wizard_gtk.TheoraStep.name flumotion.component.encoders.vorbis.wizard_gtk.VorbisStep.name flumotion.component.producers.audiotest.wizard_gtk.TestAudioProducerStep.name flumotion.component.producers.bttv.wizard_gtk.TVCardStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireAudioStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireVideoStep.name flumotion.component.producers.looper.wizard_gtk.LoopAudioStep.name flumotion.component.producers.looper.wizard_gtk.LoopVideoStep.name flumotion.component.producers.soundcard.wizard_gtk.SoundcardStep.name flumotion.component.producers.videotest.wizard_gtk.TestVideoProducerStep.name flumotion.component.producers.webcam.wizard_gtk.WebcamStep.name flumotion.extern.command.command.Command.name flumotion.launch.parse.Component.name" class="py-name" href="#" onclick="return doclink('link-1', 'name', 'link-0');">name</a></tt> </tt> </div><a name="L56"></a><tt class="py-lineno">56</tt> <tt class="py-line"> </tt> <a name="LocalIdentity.__str__"></a><div id="LocalIdentity.__str__-def"><a name="L57"></a><tt class="py-lineno">57</tt> <a class="py-toggle" href="#" id="LocalIdentity.__str__-toggle" onclick="return toggle('LocalIdentity.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.common.identity.LocalIdentity-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="LocalIdentity.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LocalIdentity.__str__-expanded"><a name="L58"></a><tt class="py-lineno">58</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"<%s>"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="flumotion.admin.command.component.PropertyGet.name flumotion.admin.command.component.PropertyList.name flumotion.admin.gtk.configurationassistant.ScenarioStep.name flumotion.admin.gtk.configurationassistant.WelcomeStep.name flumotion.admin.gtk.greeter.Authenticate.name flumotion.admin.gtk.greeter.ConnectExisting.name flumotion.admin.gtk.greeter.ConnectToExisting.name flumotion.admin.gtk.greeter.Greeter.name flumotion.admin.gtk.greeter.Initial.name flumotion.admin.gtk.greeter.LoadConnection.name flumotion.admin.gtk.greeter.StartNew.name flumotion.admin.gtk.greeter.StartNewError.name flumotion.admin.gtk.greeter.StartNewSuccess.name flumotion.admin.gtk.overlaystep.OverlayStep.name flumotion.component.encoders.dirac.wizard_gtk.DiracStep.name flumotion.component.encoders.jpeg.wizard_gtk.JPEGStep.name flumotion.component.encoders.mulaw.wizard_gtk.MulawStep.name flumotion.component.encoders.smoke.wizard_gtk.SmokeStep.name flumotion.component.encoders.speex.wizard_gtk.SpeexStep.name flumotion.component.encoders.theora.wizard_gtk.TheoraStep.name flumotion.component.encoders.vorbis.wizard_gtk.VorbisStep.name flumotion.component.producers.audiotest.wizard_gtk.TestAudioProducerStep.name flumotion.component.producers.bttv.wizard_gtk.TVCardStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireAudioStep.name flumotion.component.producers.firewire.wizard_gtk.FireWireVideoStep.name flumotion.component.producers.looper.wizard_gtk.LoopAudioStep.name flumotion.component.producers.looper.wizard_gtk.LoopVideoStep.name flumotion.component.producers.soundcard.wizard_gtk.SoundcardStep.name flumotion.component.producers.videotest.wizard_gtk.TestVideoProducerStep.name flumotion.component.producers.webcam.wizard_gtk.WebcamStep.name flumotion.extern.command.command.Command.name flumotion.launch.parse.Component.name" class="py-name" href="#" onclick="return doclink('link-2', 'name', 'link-0');">name</a></tt> </tt> </div></div><a name="L59"></a><tt class="py-lineno">59</tt> <tt class="py-line"> </tt> <a name="L60"></a><tt class="py-lineno">60</tt> <tt class="py-line"> </tt> <a name="RemoteIdentity"></a><div id="RemoteIdentity-def"><a name="L61"></a><tt class="py-lineno">61</tt> <a class="py-toggle" href="#" id="RemoteIdentity-toggle" onclick="return toggle('RemoteIdentity');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="flumotion.common.identity.RemoteIdentity-class.html">RemoteIdentity</a><tt class="py-op">(</tt><tt class="py-base-class">Identity</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="RemoteIdentity-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="RemoteIdentity-expanded"><a name="L62"></a><tt class="py-lineno">62</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L63"></a><tt class="py-lineno">63</tt> <tt class="py-line"><tt class="py-docstring"> I represent the identity of a remote avatar.</tt> </tt> <a name="L64"></a><tt class="py-lineno">64</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L65"></a><tt class="py-lineno">65</tt> <tt class="py-line"><tt class="py-docstring"> I hold the username and host of the remote avatar.</tt> </tt> <a name="L66"></a><tt class="py-lineno">66</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L67"></a><tt class="py-lineno">67</tt> <tt class="py-line"> </tt> <a name="RemoteIdentity.__init__"></a><div id="RemoteIdentity.__init__-def"><a name="L68"></a><tt class="py-lineno">68</tt> <a class="py-toggle" href="#" id="RemoteIdentity.__init__-toggle" onclick="return toggle('RemoteIdentity.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.common.identity.RemoteIdentity-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">username</tt><tt class="py-op">,</tt> <tt class="py-param">host</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="RemoteIdentity.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RemoteIdentity.__init__-expanded"><a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Variable flumotion.twisted.pb.Authenticator.username=flumotion.twisted.pb.Authenticator-class.html#username,Variable flumotion.twisted.pb.RemoteAuthenticator.username=flumotion.twisted.pb.RemoteAuthenticator-class.html#username,Variable twisted.spread.pb.Broker.username=twisted.spread.pb.Broker-class.html#username"><a title="flumotion.twisted.pb.Authenticator.username flumotion.twisted.pb.RemoteAuthenticator.username twisted.spread.pb.Broker.username" class="py-name" href="#" onclick="return doclink('link-3', 'username', 'link-3');">username</a></tt> <tt class="py-op">=</tt> <tt id="link-4" class="py-name"><a title="flumotion.twisted.pb.Authenticator.username flumotion.twisted.pb.RemoteAuthenticator.username twisted.spread.pb.Broker.username" class="py-name" href="#" onclick="return doclink('link-4', 'username', 'link-3');">username</a></tt> </tt> <a name="L70"></a><tt class="py-lineno">70</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Variable flumotion.twisted.rtsp.RTSPRequest.host=flumotion.twisted.rtsp.RTSPRequest-class.html#host"><a title="flumotion.twisted.rtsp.RTSPRequest.host" class="py-name" href="#" onclick="return doclink('link-5', 'host', 'link-5');">host</a></tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name"><a title="flumotion.twisted.rtsp.RTSPRequest.host" class="py-name" href="#" onclick="return doclink('link-6', 'host', 'link-5');">host</a></tt> </tt> </div><a name="L71"></a><tt class="py-lineno">71</tt> <tt class="py-line"> </tt> <a name="RemoteIdentity.__str__"></a><div id="RemoteIdentity.__str__-def"><a name="L72"></a><tt class="py-lineno">72</tt> <a class="py-toggle" href="#" id="RemoteIdentity.__str__-toggle" onclick="return toggle('RemoteIdentity.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.common.identity.RemoteIdentity-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="RemoteIdentity.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RemoteIdentity.__str__-expanded"><a name="L73"></a><tt class="py-lineno">73</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">'%s@%s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="flumotion.twisted.pb.Authenticator.username flumotion.twisted.pb.RemoteAuthenticator.username twisted.spread.pb.Broker.username" class="py-name" href="#" onclick="return doclink('link-7', 'username', 'link-3');">username</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">'<unknown user>'</tt><tt class="py-op">,</tt> </tt> <a name="L74"></a><tt class="py-lineno">74</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="flumotion.twisted.rtsp.RTSPRequest.host" class="py-name" href="#" onclick="return doclink('link-8', 'host', 'link-5');">host</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">'<unknown host>'</tt><tt class="py-op">)</tt> </tt> </div></div><a name="L75"></a><tt class="py-lineno">75</tt> <tt class="py-line"> </tt><script type="text/javascript"> <!-- expandto(location.href); // --> </script> </pre> <br /> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <th class="navbar" width="100%"></th> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Sun Sep 13 13:14:34 2009 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr> </table> <script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --> </script> </body> </html>