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">
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>
740
<dd><ul class="first last simple">
741
<li><strong>(str)</strong> - the name of the collection.</li>
745
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">get_collection_authors</span><span class="p">(</span><span class="s">"config"</span><span class="p">,</span> <span class="s">"has_u1"</span><span class="p">)</span>
746
<span class="go">True</span>
731
753
<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>
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">
825
<dd><ul class="first last simple">
826
<li><strong>(list)</strong> - the list of accomplishment IDs.</li>
830
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_accomplishments</span><span class="p">()</span>
831
<span class="go">["ubuntu-community/registered-on-launchpad", "ubuntu-community/ubuntu-member", . . .]</span>
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">
847
<dd><ul class="first last simple">
848
<li><strong>(list)</strong> - the list of accomplishment IDs for all trophies.</li>
852
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_collections</span><span class="p">()</span>
853
<span class="go">["ubuntu-community", "ubuntu-desktop"]</span>
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>
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
871
<dl class="docutils">
875
<dd><ul class="first last simple">
876
<li><strong>(list)</strong> - the list of opportunity accomplishment IDs.</li>
880
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_opportunitues</span><span class="p">()</span>
881
<span class="go">["ubuntu-community/registered-on-launchpad", "ubuntu-community/ubuntu-member", . . .]</span>
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">
896
<dd><ul class="first last simple">
897
<li><strong>(list)</strong> - the list of accomplishment IDs for all trophies.</li>
901
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_trophies</span><span class="p">()</span>
902
<span class="go">["ubuntu-community/registered-on-launchpad", "ubuntu-community/ubuntu-member", . . .]</span>
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">
918
<dd><ul class="first last simple">
919
<li><strong>(list)</strong> - the list of unlocked opportunity accomplishment IDs.</li>
923
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_unlocked</span><span class="p">()</span>
924
<span class="go">["ubuntu-community/registered-on-launchpad", "ubuntu-community/ubuntu-member", . . .]</span>
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">
940
<dd><ul class="first last simple">
941
<li><strong>(list)</strong> - the list of unlocked opportunity accomplishment IDs.</li>
945
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">obj</span><span class="o">.</span><span class="n">list_unlocked</span><span class="p">()</span>
946
<span class="go">["ubuntu-community/registered-on-launchpad", "ubuntu-community/ubuntu-member", . . .]</span>