~ubuntu-branches/ubuntu/precise/moovida/precise

« back to all changes in this revision

Viewing changes to docs/api/elisa.core.plugin_registry.html

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-07-14 14:05:15 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090714140515-e8umtzznfvywkeow
Tags: 1.0.5-0ubuntu1
* New upstream release.
* Merge with Debian Experimental, remaining Ubuntu changes:
 - debian/rules: Python 2.6 transition.
  + Don't use site-packages
  + Move DEB_PYTHON_INSTALL_ARGS_ALL after the includes.
* Synchronize with pkg-gstreamer svn:
 - debian/copyright: Completely reworked and updated.
 - debian/rules:
  + Bumped standards version to 3.8.2; no changes required.
  + Added recommends on xdg-user-dirs-gtk and python-xdg so that media in
    standard locations will be located. 
  + Changed build-depend on python-central into python-support.
 - debian/python-moovida.preinst:
  + Added to handle the migration from python-central to python-support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html
2
 
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
 
  "DTD/xhtml1-strict.dtd">
4
 
<html>
5
 
  <head>
6
 
    <title>API docs for &ldquo;elisa.core.plugin_registry&rdquo;</title>
7
 
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
8
 
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
9
 
    <script src="sorttable.js" type="text/javascript"></script>
10
 
    
11
 
  </head>
12
 
  <body>
13
 
    <h1 class="module">Module e.c.plugin_registry</h1>
14
 
    <p>
15
 
      <span id="part">Part of <a href="elisa.html">elisa</a>.<a href="elisa.core.html">core</a></span>
16
 
      
17
 
      
18
 
    </p>
19
 
    <div>
20
 
      
21
 
    </div>
22
 
    <div class="undocumented">No module docstring</div>
23
 
 
24
 
    
25
 
    
26
 
    <div id="splitTables">
27
 
      <table class="children sortable" id="id169">
28
 
  
29
 
  <tr>
30
 
    <th>Line #</th>
31
 
    <th>Kind</th>
32
 
    <th>Name</th>
33
 
    <th>Docs</th>
34
 
  </tr>
35
 
<tr class="function">
36
 
    
37
 
    <td class="lineno">66</td>
38
 
    <td>Function</td>
39
 
    <td><a href="elisa.core.plugin_registry.html#is_development_egg">is_development_egg</a></td>
40
 
    <td><span>Check if the distribution is a development egg.</span></td>
41
 
  </tr><tr class="function">
42
 
    
43
 
    <td class="lineno">79</td>
44
 
    <td>Function</td>
45
 
    <td><a href="elisa.core.plugin_registry.html#get_plugin_toplevel_directory">get_plugin_toplevel_directory</a></td>
46
 
    <td><span>Get the top level directory of a plugin distribution.</span></td>
47
 
  </tr><tr class="class">
48
 
    
49
 
    <td class="lineno">107</td>
50
 
    <td>Class</td>
51
 
    <td><a href="elisa.core.plugin_registry.InvalidComponentPath.html">InvalidComponentPath</a></td>
52
 
    <td><span class="undocumented">Undocumented</span></td>
53
 
  </tr><tr class="class">
54
 
    
55
 
    <td class="lineno">114</td>
56
 
    <td>Class</td>
57
 
    <td><a href="elisa.core.plugin_registry.ComponentNotFound.html">ComponentNotFound</a></td>
58
 
    <td><span class="undocumented">Undocumented</span></td>
59
 
  </tr><tr class="class">
60
 
    
61
 
    <td class="lineno">121</td>
62
 
    <td>Class</td>
63
 
    <td><a href="elisa.core.plugin_registry.PluginNotFound.html">PluginNotFound</a></td>
64
 
    <td><span class="undocumented">Undocumented</span></td>
65
 
  </tr><tr class="class">
66
 
    
67
 
    <td class="lineno">124</td>
68
 
    <td>Class</td>
69
 
    <td><a href="elisa.core.plugin_registry.PluginAlreadyEnabled.html">PluginAlreadyEnabled</a></td>
70
 
    <td><span class="undocumented">Undocumented</span></td>
71
 
  </tr><tr class="class">
72
 
    
73
 
    <td class="lineno">127</td>
74
 
    <td>Class</td>
75
 
    <td><a href="elisa.core.plugin_registry.PluginAlreadyDisabled.html">PluginAlreadyDisabled</a></td>
76
 
    <td><span class="undocumented">Undocumented</span></td>
77
 
  </tr><tr class="class">
78
 
    
79
 
    <td class="lineno">130</td>
80
 
    <td>Class</td>
81
 
    <td><a href="elisa.core.plugin_registry.DeserializationError.html">DeserializationError</a></td>
82
 
    <td><span class="undocumented">Undocumented</span></td>
83
 
  </tr><tr class="class">
84
 
    
85
 
    <td class="lineno">133</td>
86
 
    <td>Class</td>
87
 
    <td><a href="elisa.core.plugin_registry.PluginStatusMessage.html">PluginStatusMessage</a></td>
88
 
    <td><span>A plugin has been enabled or disabled.</span></td>
89
 
  </tr><tr class="class">
90
 
    
91
 
    <td class="lineno">151</td>
92
 
    <td>Class</td>
93
 
    <td><a href="elisa.core.plugin_registry.PluginRegistry.html">PluginRegistry</a></td>
94
 
    <td><span>The plugin registry handles plugins in Elisa as long as it is 
95
 
running.</span></td>
96
 
  </tr>
97
 
  
98
 
</table>
99
 
      
100
 
      
101
 
    </div>
102
 
    
103
 
    
104
 
    
105
 
 
106
 
    <div class="function">
107
 
  <a name="elisa.core.plugin_registry.is_development_egg">
108
 
    
109
 
  </a>
110
 
  <a name="is_development_egg">
111
 
    
112
 
  </a>
113
 
  <div class="functionHeader">
114
 
    
115
 
    def
116
 
    is_development_egg(dist):
117
 
    
118
 
  </div>
119
 
  <div class="functionBody">
120
 
    
121
 
    <div>Check if the distribution is a development egg.</p>
122
 
<p>Development eggs store egg-info and python code in the same toplevel 
123
 
directory.<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">dist</td><td>plugin distribution
124
 
 (type: <code>Distribution</code>
125
 
)</td></tr></table></div>
126
 
  </div>
127
 
</div><div class="function">
128
 
  <a name="elisa.core.plugin_registry.get_plugin_toplevel_directory">
129
 
    
130
 
  </a>
131
 
  <a name="get_plugin_toplevel_directory">
132
 
    
133
 
  </a>
134
 
  <div class="functionHeader">
135
 
    
136
 
    def
137
 
    get_plugin_toplevel_directory(dist):
138
 
    
139
 
  </div>
140
 
  <div class="functionBody">
141
 
    
142
 
    <div><p>Get the top level directory of a plugin distribution.</p>
143
 
<p>Regular eggs and development eggs store files in different locations. 
144
 
Use this function to access the top level directory of a plugin eg:</p>
145
 
<pre class="literalblock">
146
 
   toplevel_directory = get_plugin_toplevel_directory(dist)
147
 
   sub_directory = '%s/%s' % (toplevel_directory, 'sub')
148
 
   requirement = pkg_resources.Requirement.parse(dist.project_name)
149
 
   if pkg_resources.resource_isdir(requirement, sub_directory):
150
 
       real_sub_path = pkg_resources.resource_filename(requirement,
151
 
               sub_directory)
152
 
</pre>
153
 
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Parameters</td><td class="fieldArg">dist</td><td>plugin distribution
154
 
 (type: <code>Distribution</code>
155
 
)</td></tr></table></div>
156
 
  </div>
157
 
</div>
158
 
    <address>
159
 
      <a href="index.html">API Documentation</a> for <a href="http://elisa.fluendo.com">Elisa Media Center</a>, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2009-05-25 19:09:45.
160
 
    </address>
161
 
  </body>
162
 
</html>
 
 
b'\\ No newline at end of file'