~imbrandon/ubuntu-accomplishments-daemon/new-theme

« back to all changes in this revision

Viewing changes to docs/_build/html/clientref.html

  • Committer: Jono Bacon
  • Date: 2012-07-10 23:32:55 UTC
  • Revision ID: jono@ubuntu.com-20120710233255-l1c72tsubrnyc6ch
 * More docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
725
725
<dl class="method">
726
726
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.get_config_value">
727
727
<tt class="descname">get_config_value</tt><big>(</big><em>section</em>, <em>item</em><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.get_config_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.get_config_value" title="Permalink to this definition">¶</a></dt>
728
 
<dd><p>DOCS NEEDED</p>
 
728
<dd><p>Returns the required value from the configuration file. For a list of available values
 
729
see <a class="reference external" href="https://wiki.ubuntu.com/Accomplishments/GetInvolved/Hacking#Configuration_Files">https://wiki.ubuntu.com/Accomplishments/GetInvolved/Hacking#Configuration_Files</a></p>
 
730
<p>Config files are stored in Python ConfigParser format in which you look up the value by
 
731
section and value.</p>
 
732
<dl class="docutils">
 
733
<dt>Args:</dt>
 
734
<dd><ul class="first last simple">
 
735
<li><strong>section</strong> - (str) the section in the config file (usually <cite>config</cite>).</li>
 
736
<li><strong>value</strong> - (str) the value you want the data for.</li>
 
737
</ul>
 
738
</dd>
 
739
<dt>Returns:</dt>
 
740
<dd><ul class="first last simple">
 
741
<li><strong>(str)</strong> - the name of the collection.</li>
 
742
</ul>
 
743
</dd>
 
744
<dt>Example:</dt>
 
745
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">get_collection_authors</span><span class="p">(</span><span class="s">&quot;config&quot;</span><span class="p">,</span> <span class="s">&quot;has_u1&quot;</span><span class="p">)</span>
 
746
<span class="go">True</span>
 
747
</pre></div>
 
748
</div>
 
749
</dd>
 
750
</dl>
729
751
</dd></dl>
730
752
 
731
753
<dl class="method">
785
807
</dl>
786
808
</dd></dl>
787
809
 
 
810
<dl class="method">
 
811
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.invalidate_extra_information">
 
812
<tt class="descname">invalidate_extra_information</tt><big>(</big><em>extrainfo</em><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.invalidate_extra_information"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.invalidate_extra_information" title="Permalink to this definition">¶</a></dt>
 
813
<dd><p>DOCS NEEDED</p>
 
814
</dd></dl>
 
815
 
 
816
<dl class="method">
 
817
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_accomplishments">
 
818
<tt class="descname">list_accomplishments</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_accomplishments"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_accomplishments" title="Permalink to this definition">¶</a></dt>
 
819
<dd><p>Returns a list of accomplishment IDs for the all available accomplishments. This includes all accomplishment IDs
 
820
from all collections.</p>
 
821
<dl class="docutils">
 
822
<dt>Args:</dt>
 
823
<dd>None.</dd>
 
824
<dt>Returns:</dt>
 
825
<dd><ul class="first last simple">
 
826
<li><strong>(list)</strong> - the list of accomplishment IDs.</li>
 
827
</ul>
 
828
</dd>
 
829
<dt>Example:</dt>
 
830
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_accomplishments</span><span class="p">()</span>
 
831
<span class="go">[&quot;ubuntu-community/registered-on-launchpad&quot;, &quot;ubuntu-community/ubuntu-member&quot;, . . .]</span>
 
832
</pre></div>
 
833
</div>
 
834
</dd>
 
835
</dl>
 
836
</dd></dl>
 
837
 
 
838
<dl class="method">
 
839
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_collections">
 
840
<tt class="descname">list_collections</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_collections"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_collections" title="Permalink to this definition">¶</a></dt>
 
841
<dd><p>Returns a list of collections available. Collections are listed in their
 
842
unique formats (e.g. <cite>ubuntu-community</cite>).</p>
 
843
<dl class="docutils">
 
844
<dt>Args:</dt>
 
845
<dd>None.</dd>
 
846
<dt>Returns:</dt>
 
847
<dd><ul class="first last simple">
 
848
<li><strong>(list)</strong> - the list of accomplishment IDs for all trophies.</li>
 
849
</ul>
 
850
</dd>
 
851
<dt>Example:</dt>
 
852
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_collections</span><span class="p">()</span>
 
853
<span class="go">[&quot;ubuntu-community&quot;, &quot;ubuntu-desktop&quot;]</span>
 
854
</pre></div>
 
855
</div>
 
856
</dd>
 
857
</dl>
 
858
</dd></dl>
 
859
 
 
860
<dl class="method">
 
861
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_depending_on">
 
862
<tt class="descname">list_depending_on</tt><big>(</big><em>accomID</em><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_depending_on"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_depending_on" title="Permalink to this definition">¶</a></dt>
 
863
<dd><p>DOCS NEEDED</p>
 
864
</dd></dl>
 
865
 
 
866
<dl class="method">
 
867
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_opportunitues">
 
868
<tt class="descname">list_opportunitues</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_opportunitues"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_opportunitues" title="Permalink to this definition">¶</a></dt>
 
869
<dd><p>Returns a list of accomplishment IDs for the all available opportunities. This includes all accomplishment IDs
 
870
from all sets.</p>
 
871
<dl class="docutils">
 
872
<dt>Args:</dt>
 
873
<dd>None.</dd>
 
874
<dt>Returns:</dt>
 
875
<dd><ul class="first last simple">
 
876
<li><strong>(list)</strong> - the list of opportunity accomplishment IDs.</li>
 
877
</ul>
 
878
</dd>
 
879
<dt>Example:</dt>
 
880
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_opportunitues</span><span class="p">()</span>
 
881
<span class="go">[&quot;ubuntu-community/registered-on-launchpad&quot;, &quot;ubuntu-community/ubuntu-member&quot;, . . .]</span>
 
882
</pre></div>
 
883
</div>
 
884
</dd>
 
885
</dl>
 
886
</dd></dl>
 
887
 
 
888
<dl class="method">
 
889
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_trophies">
 
890
<tt class="descname">list_trophies</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_trophies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_trophies" title="Permalink to this definition">¶</a></dt>
 
891
<dd><p>Returns a list of trophies for the all available accomplishments in accomplishment ID format.</p>
 
892
<dl class="docutils">
 
893
<dt>Args:</dt>
 
894
<dd>None.</dd>
 
895
<dt>Returns:</dt>
 
896
<dd><ul class="first last simple">
 
897
<li><strong>(list)</strong> - the list of accomplishment IDs for all trophies.</li>
 
898
</ul>
 
899
</dd>
 
900
<dt>Example:</dt>
 
901
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_trophies</span><span class="p">()</span>
 
902
<span class="go">[&quot;ubuntu-community/registered-on-launchpad&quot;, &quot;ubuntu-community/ubuntu-member&quot;, . . .]</span>
 
903
</pre></div>
 
904
</div>
 
905
</dd>
 
906
</dl>
 
907
</dd></dl>
 
908
 
 
909
<dl class="method">
 
910
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_unlocked">
 
911
<tt class="descname">list_unlocked</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_unlocked"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_unlocked" title="Permalink to this definition">¶</a></dt>
 
912
<dd><p>Returns a list of accomplishment IDs for the all unlocked opportunities. This includes all accomplishment IDs
 
913
from all collections.</p>
 
914
<dl class="docutils">
 
915
<dt>Args:</dt>
 
916
<dd>None.</dd>
 
917
<dt>Returns:</dt>
 
918
<dd><ul class="first last simple">
 
919
<li><strong>(list)</strong> - the list of unlocked opportunity accomplishment IDs.</li>
 
920
</ul>
 
921
</dd>
 
922
<dt>Example:</dt>
 
923
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_unlocked</span><span class="p">()</span>
 
924
<span class="go">[&quot;ubuntu-community/registered-on-launchpad&quot;, &quot;ubuntu-community/ubuntu-member&quot;, . . .]</span>
 
925
</pre></div>
 
926
</div>
 
927
</dd>
 
928
</dl>
 
929
</dd></dl>
 
930
 
 
931
<dl class="method">
 
932
<dt id="accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_unlocked_not_completed">
 
933
<tt class="descname">list_unlocked_not_completed</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/accomplishments/daemon/dbusapi.html#AccomplishmentsDBusService.list_unlocked_not_completed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#accomplishments.daemon.dbusapi.AccomplishmentsDBusService.list_unlocked_not_completed" title="Permalink to this definition">¶</a></dt>
 
934
<dd><p>Returns a list of accomplishment IDs for the all unlocked opportunities that are not completed. This includes all accomplishment IDs
 
935
from all collections.</p>
 
936
<dl class="docutils">
 
937
<dt>Args:</dt>
 
938
<dd>None.</dd>
 
939
<dt>Returns:</dt>
 
940
<dd><ul class="first last simple">
 
941
<li><strong>(list)</strong> - the list of unlocked opportunity accomplishment IDs.</li>
 
942
</ul>
 
943
</dd>
 
944
<dt>Example:</dt>
 
945
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">obj</span><span class="o">.</span><span class="n">list_unlocked</span><span class="p">()</span>
 
946
<span class="go">[&quot;ubuntu-community/registered-on-launchpad&quot;, &quot;ubuntu-community/ubuntu-member&quot;, . . .]</span>
 
947
</pre></div>
 
948
</div>
 
949
</dd>
 
950
</dl>
 
951
</dd></dl>
 
952
 
788
953
</dd></dl>
789
954
 
790
955
</div>