|
1 |
|
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
4 |
|
5 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
6 <head> |
|
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
8 <title>pyams_content.component.gallery package — PyAMS User Guide 0.1.0 documentation</title> |
|
9 <link rel="stylesheet" href="_static/pyramid.css" type="text/css" /> |
|
10 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> |
|
11 <script type="text/javascript"> |
|
12 var DOCUMENTATION_OPTIONS = { |
|
13 URL_ROOT: './', |
|
14 VERSION: '0.1.0', |
|
15 COLLAPSE_INDEX: false, |
|
16 FILE_SUFFIX: '.html', |
|
17 HAS_SOURCE: true, |
|
18 SOURCELINK_SUFFIX: '.txt' |
|
19 }; |
|
20 </script> |
|
21 <script type="text/javascript" src="_static/jquery.js"></script> |
|
22 <script type="text/javascript" src="_static/underscore.js"></script> |
|
23 <script type="text/javascript" src="_static/doctools.js"></script> |
|
24 <link rel="index" title="Index" href="genindex.html" /> |
|
25 <link rel="search" title="Search" href="search.html" /> |
|
26 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&subset=latin" type="text/css" media="screen" charset="utf-8" /> |
|
27 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&subset=latin" type="text/css" media="screen" charset="utf-8" /> |
|
28 <!--[if lte IE 6]> |
|
29 <link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" /> |
|
30 <![endif]--> |
|
31 |
|
32 </head> |
|
33 <body> |
|
34 |
|
35 <div class="related" role="navigation" aria-label="related navigation"> |
|
36 <h3>Navigation</h3> |
|
37 <ul> |
|
38 <li class="right" style="margin-right: 10px"> |
|
39 <a href="genindex.html" title="General Index" |
|
40 accesskey="I">index</a></li> |
|
41 <li class="right" > |
|
42 <a href="py-modindex.html" title="Python Module Index" |
|
43 >modules</a> |</li> |
|
44 <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> »</li> |
|
45 </ul> |
|
46 </div> |
|
47 |
|
48 <div class="document"> |
|
49 <div class="documentwrapper"> |
|
50 <div class="bodywrapper"> |
|
51 <div class="body" role="main"> |
|
52 |
|
53 <div class="section" id="pyams-content-component-gallery-package"> |
|
54 <h1>pyams_content.component.gallery package<a class="headerlink" href="#pyams-content-component-gallery-package" title="Permalink to this headline">¶</a></h1> |
|
55 <div class="section" id="subpackages"> |
|
56 <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2> |
|
57 <div class="toctree-wrapper compound"> |
|
58 <ul> |
|
59 <li class="toctree-l1"><a class="reference internal" href="pyams_content.component.gallery.interfaces.html">pyams_content.component.gallery.interfaces package</a><ul> |
|
60 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.interfaces.html#module-pyams_content.component.gallery.interfaces">Module contents</a></li> |
|
61 </ul> |
|
62 </li> |
|
63 <li class="toctree-l1"><a class="reference internal" href="pyams_content.component.gallery.zmi.html">pyams_content.component.gallery.zmi package</a><ul> |
|
64 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.zmi.html#submodules">Submodules</a></li> |
|
65 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.zmi.html#module-pyams_content.component.gallery.zmi.file">pyams_content.component.gallery.zmi.file module</a></li> |
|
66 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.zmi.html#module-pyams_content.component.gallery.zmi.interfaces">pyams_content.component.gallery.zmi.interfaces module</a></li> |
|
67 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.zmi.html#module-pyams_content.component.gallery.zmi.paragraph">pyams_content.component.gallery.zmi.paragraph module</a></li> |
|
68 <li class="toctree-l2"><a class="reference internal" href="pyams_content.component.gallery.zmi.html#module-pyams_content.component.gallery.zmi">Module contents</a></li> |
|
69 </ul> |
|
70 </li> |
|
71 </ul> |
|
72 </div> |
|
73 </div> |
|
74 <div class="section" id="submodules"> |
|
75 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2> |
|
76 </div> |
|
77 <div class="section" id="module-pyams_content.component.gallery.file"> |
|
78 <span id="pyams-content-component-gallery-file-module"></span><h2>pyams_content.component.gallery.file module<a class="headerlink" href="#module-pyams_content.component.gallery.file" title="Permalink to this headline">¶</a></h2> |
|
79 <dl class="class"> |
|
80 <dt id="pyams_content.component.gallery.file.GalleryFile"> |
|
81 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">GalleryFile</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile" title="Permalink to this definition">¶</a></dt> |
|
82 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">persistent.Persistent</span></code>, <code class="xref py py-class docutils literal"><span class="pre">zope.container.contained.Contained</span></code></p> |
|
83 <p>Gallery file info</p> |
|
84 <dl class="attribute"> |
|
85 <dt id="pyams_content.component.gallery.file.GalleryFile.alt_title"> |
|
86 <code class="descname">alt_title</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.alt_title" title="Permalink to this definition">¶</a></dt> |
|
87 <dd><p>Computed attributes based on schema fields</p> |
|
88 <p>Field properties provide default values, data validation and error messages |
|
89 based on data found in field meta-data.</p> |
|
90 <p>Note that FieldProperties cannot be used with slots. They can only |
|
91 be used for attributes stored in instance dictionaries.</p> |
|
92 </dd></dl> |
|
93 |
|
94 <dl class="attribute"> |
|
95 <dt id="pyams_content.component.gallery.file.GalleryFile.author"> |
|
96 <code class="descname">author</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.author" title="Permalink to this definition">¶</a></dt> |
|
97 <dd><p>Computed attributes based on schema fields</p> |
|
98 <p>Field properties provide default values, data validation and error messages |
|
99 based on data found in field meta-data.</p> |
|
100 <p>Note that FieldProperties cannot be used with slots. They can only |
|
101 be used for attributes stored in instance dictionaries.</p> |
|
102 </dd></dl> |
|
103 |
|
104 <dl class="attribute"> |
|
105 <dt id="pyams_content.component.gallery.file.GalleryFile.author_comments"> |
|
106 <code class="descname">author_comments</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.author_comments" title="Permalink to this definition">¶</a></dt> |
|
107 <dd><p>Computed attributes based on schema fields</p> |
|
108 <p>Field properties provide default values, data validation and error messages |
|
109 based on data found in field meta-data.</p> |
|
110 <p>Note that FieldProperties cannot be used with slots. They can only |
|
111 be used for attributes stored in instance dictionaries.</p> |
|
112 </dd></dl> |
|
113 |
|
114 <dl class="attribute"> |
|
115 <dt id="pyams_content.component.gallery.file.GalleryFile.data"> |
|
116 <code class="descname">data</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.data" title="Permalink to this definition">¶</a></dt> |
|
117 <dd></dd></dl> |
|
118 |
|
119 <dl class="attribute"> |
|
120 <dt id="pyams_content.component.gallery.file.GalleryFile.description"> |
|
121 <code class="descname">description</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.description" title="Permalink to this definition">¶</a></dt> |
|
122 <dd><p>Computed attributes based on schema fields</p> |
|
123 <p>Field properties provide default values, data validation and error messages |
|
124 based on data found in field meta-data.</p> |
|
125 <p>Note that FieldProperties cannot be used with slots. They can only |
|
126 be used for attributes stored in instance dictionaries.</p> |
|
127 </dd></dl> |
|
128 |
|
129 <dl class="attribute"> |
|
130 <dt id="pyams_content.component.gallery.file.GalleryFile.pif_number"> |
|
131 <code class="descname">pif_number</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.pif_number" title="Permalink to this definition">¶</a></dt> |
|
132 <dd><p>Computed attributes based on schema fields</p> |
|
133 <p>Field properties provide default values, data validation and error messages |
|
134 based on data found in field meta-data.</p> |
|
135 <p>Note that FieldProperties cannot be used with slots. They can only |
|
136 be used for attributes stored in instance dictionaries.</p> |
|
137 </dd></dl> |
|
138 |
|
139 <dl class="attribute"> |
|
140 <dt id="pyams_content.component.gallery.file.GalleryFile.sound"> |
|
141 <code class="descname">sound</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.sound" title="Permalink to this definition">¶</a></dt> |
|
142 <dd><p>Property class used to handle files</p> |
|
143 </dd></dl> |
|
144 |
|
145 <dl class="attribute"> |
|
146 <dt id="pyams_content.component.gallery.file.GalleryFile.sound_description"> |
|
147 <code class="descname">sound_description</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.sound_description" title="Permalink to this definition">¶</a></dt> |
|
148 <dd><p>Computed attributes based on schema fields</p> |
|
149 <p>Field properties provide default values, data validation and error messages |
|
150 based on data found in field meta-data.</p> |
|
151 <p>Note that FieldProperties cannot be used with slots. They can only |
|
152 be used for attributes stored in instance dictionaries.</p> |
|
153 </dd></dl> |
|
154 |
|
155 <dl class="attribute"> |
|
156 <dt id="pyams_content.component.gallery.file.GalleryFile.sound_title"> |
|
157 <code class="descname">sound_title</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.sound_title" title="Permalink to this definition">¶</a></dt> |
|
158 <dd><p>Computed attributes based on schema fields</p> |
|
159 <p>Field properties provide default values, data validation and error messages |
|
160 based on data found in field meta-data.</p> |
|
161 <p>Note that FieldProperties cannot be used with slots. They can only |
|
162 be used for attributes stored in instance dictionaries.</p> |
|
163 </dd></dl> |
|
164 |
|
165 <dl class="attribute"> |
|
166 <dt id="pyams_content.component.gallery.file.GalleryFile.title"> |
|
167 <code class="descname">title</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.title" title="Permalink to this definition">¶</a></dt> |
|
168 <dd><p>Computed attributes based on schema fields</p> |
|
169 <p>Field properties provide default values, data validation and error messages |
|
170 based on data found in field meta-data.</p> |
|
171 <p>Note that FieldProperties cannot be used with slots. They can only |
|
172 be used for attributes stored in instance dictionaries.</p> |
|
173 </dd></dl> |
|
174 |
|
175 <dl class="attribute"> |
|
176 <dt id="pyams_content.component.gallery.file.GalleryFile.visible"> |
|
177 <code class="descname">visible</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFile.visible" title="Permalink to this definition">¶</a></dt> |
|
178 <dd><p>Computed attributes based on schema fields</p> |
|
179 <p>Field properties provide default values, data validation and error messages |
|
180 based on data found in field meta-data.</p> |
|
181 <p>Note that FieldProperties cannot be used with slots. They can only |
|
182 be used for attributes stored in instance dictionaries.</p> |
|
183 </dd></dl> |
|
184 |
|
185 </dd></dl> |
|
186 |
|
187 <dl class="class"> |
|
188 <dt id="pyams_content.component.gallery.file.GalleryFileContentChecker"> |
|
189 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">GalleryFileContentChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFileContentChecker" title="Permalink to this definition">¶</a></dt> |
|
190 <dd><p>Bases: <a class="reference internal" href="pyams_content.features.checker.html#pyams_content.features.checker.BaseContentChecker" title="pyams_content.features.checker.BaseContentChecker"><code class="xref py py-class docutils literal"><span class="pre">pyams_content.features.checker.BaseContentChecker</span></code></a></p> |
|
191 <p>Gallery file content checker</p> |
|
192 <dl class="method"> |
|
193 <dt id="pyams_content.component.gallery.file.GalleryFileContentChecker.inner_check"> |
|
194 <code class="descname">inner_check</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFileContentChecker.inner_check" title="Permalink to this definition">¶</a></dt> |
|
195 <dd></dd></dl> |
|
196 |
|
197 <dl class="attribute"> |
|
198 <dt id="pyams_content.component.gallery.file.GalleryFileContentChecker.label"> |
|
199 <code class="descname">label</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFileContentChecker.label" title="Permalink to this definition">¶</a></dt> |
|
200 <dd></dd></dl> |
|
201 |
|
202 </dd></dl> |
|
203 |
|
204 <dl class="class"> |
|
205 <dt id="pyams_content.component.gallery.file.GalleryFilePermissionChecker"> |
|
206 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">GalleryFilePermissionChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFilePermissionChecker" title="Permalink to this definition">¶</a></dt> |
|
207 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p> |
|
208 <p>Gallery file permission checker</p> |
|
209 <dl class="attribute"> |
|
210 <dt id="pyams_content.component.gallery.file.GalleryFilePermissionChecker.edit_permission"> |
|
211 <code class="descname">edit_permission</code><a class="headerlink" href="#pyams_content.component.gallery.file.GalleryFilePermissionChecker.edit_permission" title="Permalink to this definition">¶</a></dt> |
|
212 <dd></dd></dl> |
|
213 |
|
214 </dd></dl> |
|
215 |
|
216 <dl class="function"> |
|
217 <dt id="pyams_content.component.gallery.file.handle_added_gallery_file"> |
|
218 <code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">handle_added_gallery_file</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.handle_added_gallery_file" title="Permalink to this definition">¶</a></dt> |
|
219 <dd><p>Handle added gallery file</p> |
|
220 </dd></dl> |
|
221 |
|
222 <dl class="function"> |
|
223 <dt id="pyams_content.component.gallery.file.handle_modified_gallery_file"> |
|
224 <code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">handle_modified_gallery_file</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.handle_modified_gallery_file" title="Permalink to this definition">¶</a></dt> |
|
225 <dd><p>Handle modified gallery file</p> |
|
226 </dd></dl> |
|
227 |
|
228 <dl class="function"> |
|
229 <dt id="pyams_content.component.gallery.file.handle_removed_gallery_file"> |
|
230 <code class="descclassname">pyams_content.component.gallery.file.</code><code class="descname">handle_removed_gallery_file</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.file.handle_removed_gallery_file" title="Permalink to this definition">¶</a></dt> |
|
231 <dd><p>Handle removed gallery file</p> |
|
232 </dd></dl> |
|
233 |
|
234 </div> |
|
235 <div class="section" id="module-pyams_content.component.gallery.paragraph"> |
|
236 <span id="pyams-content-component-gallery-paragraph-module"></span><h2>pyams_content.component.gallery.paragraph module<a class="headerlink" href="#module-pyams_content.component.gallery.paragraph" title="Permalink to this headline">¶</a></h2> |
|
237 <dl class="class"> |
|
238 <dt id="pyams_content.component.gallery.paragraph.Gallery"> |
|
239 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.paragraph.</code><code class="descname">Gallery</code><a class="headerlink" href="#pyams_content.component.gallery.paragraph.Gallery" title="Permalink to this definition">¶</a></dt> |
|
240 <dd><p>Bases: <a class="reference internal" href="#pyams_content.component.gallery.Gallery" title="pyams_content.component.gallery.Gallery"><code class="xref py py-class docutils literal"><span class="pre">pyams_content.component.gallery.Gallery</span></code></a>, <a class="reference internal" href="pyams_content.component.paragraph.html#pyams_content.component.paragraph.BaseParagraph" title="pyams_content.component.paragraph.BaseParagraph"><code class="xref py py-class docutils literal"><span class="pre">pyams_content.component.paragraph.BaseParagraph</span></code></a></p> |
|
241 <p>Gallery class</p> |
|
242 <dl class="attribute"> |
|
243 <dt id="pyams_content.component.gallery.paragraph.Gallery.icon_class"> |
|
244 <code class="descname">icon_class</code><em class="property"> = 'fa-picture-o'</em><a class="headerlink" href="#pyams_content.component.gallery.paragraph.Gallery.icon_class" title="Permalink to this definition">¶</a></dt> |
|
245 <dd></dd></dl> |
|
246 |
|
247 <dl class="attribute"> |
|
248 <dt id="pyams_content.component.gallery.paragraph.Gallery.icon_hint"> |
|
249 <code class="descname">icon_hint</code><em class="property"> = 'Images gallery'</em><a class="headerlink" href="#pyams_content.component.gallery.paragraph.Gallery.icon_hint" title="Permalink to this definition">¶</a></dt> |
|
250 <dd></dd></dl> |
|
251 |
|
252 </dd></dl> |
|
253 |
|
254 <dl class="class"> |
|
255 <dt id="pyams_content.component.gallery.paragraph.GalleryFactory"> |
|
256 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.paragraph.</code><code class="descname">GalleryFactory</code><a class="headerlink" href="#pyams_content.component.gallery.paragraph.GalleryFactory" title="Permalink to this definition">¶</a></dt> |
|
257 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p> |
|
258 <p>Gallery paragraph factory</p> |
|
259 <dl class="attribute"> |
|
260 <dt id="pyams_content.component.gallery.paragraph.GalleryFactory.content_type"> |
|
261 <code class="descname">content_type</code><a class="headerlink" href="#pyams_content.component.gallery.paragraph.GalleryFactory.content_type" title="Permalink to this definition">¶</a></dt> |
|
262 <dd><p>alias of <a class="reference internal" href="#pyams_content.component.gallery.paragraph.Gallery" title="pyams_content.component.gallery.paragraph.Gallery"><code class="xref py py-class docutils literal"><span class="pre">Gallery</span></code></a></p> |
|
263 </dd></dl> |
|
264 |
|
265 <dl class="attribute"> |
|
266 <dt id="pyams_content.component.gallery.paragraph.GalleryFactory.name"> |
|
267 <code class="descname">name</code><em class="property"> = 'Images gallery'</em><a class="headerlink" href="#pyams_content.component.gallery.paragraph.GalleryFactory.name" title="Permalink to this definition">¶</a></dt> |
|
268 <dd></dd></dl> |
|
269 |
|
270 </dd></dl> |
|
271 |
|
272 <dl class="class"> |
|
273 <dt id="pyams_content.component.gallery.paragraph.GalleryParagraphContentChecker"> |
|
274 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.paragraph.</code><code class="descname">GalleryParagraphContentChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.paragraph.GalleryParagraphContentChecker" title="Permalink to this definition">¶</a></dt> |
|
275 <dd><p>Bases: <a class="reference internal" href="pyams_content.component.paragraph.html#pyams_content.component.paragraph.BaseParagraphContentChecker" title="pyams_content.component.paragraph.BaseParagraphContentChecker"><code class="xref py py-class docutils literal"><span class="pre">pyams_content.component.paragraph.BaseParagraphContentChecker</span></code></a></p> |
|
276 <p>Gallery paragraph content checker</p> |
|
277 <dl class="method"> |
|
278 <dt id="pyams_content.component.gallery.paragraph.GalleryParagraphContentChecker.inner_check"> |
|
279 <code class="descname">inner_check</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.paragraph.GalleryParagraphContentChecker.inner_check" title="Permalink to this definition">¶</a></dt> |
|
280 <dd></dd></dl> |
|
281 |
|
282 </dd></dl> |
|
283 |
|
284 </div> |
|
285 <div class="section" id="module-pyams_content.component.gallery"> |
|
286 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyams_content.component.gallery" title="Permalink to this headline">¶</a></h2> |
|
287 <dl class="class"> |
|
288 <dt id="pyams_content.component.gallery.Gallery"> |
|
289 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">Gallery</code><a class="headerlink" href="#pyams_content.component.gallery.Gallery" title="Permalink to this definition">¶</a></dt> |
|
290 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.container.BTreeOrderedContainer" title="pyams_utils.container.BTreeOrderedContainer"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.container.BTreeOrderedContainer</span></code></a></p> |
|
291 <p>Gallery persistent class</p> |
|
292 <dl class="method"> |
|
293 <dt id="pyams_content.component.gallery.Gallery.append"> |
|
294 <code class="descname">append</code><span class="sig-paren">(</span><em>value</em>, <em>notify=True</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.Gallery.append" title="Permalink to this definition">¶</a></dt> |
|
295 <dd></dd></dl> |
|
296 |
|
297 <dl class="attribute"> |
|
298 <dt id="pyams_content.component.gallery.Gallery.description"> |
|
299 <code class="descname">description</code><a class="headerlink" href="#pyams_content.component.gallery.Gallery.description" title="Permalink to this definition">¶</a></dt> |
|
300 <dd><p>Computed attributes based on schema fields</p> |
|
301 <p>Field properties provide default values, data validation and error messages |
|
302 based on data found in field meta-data.</p> |
|
303 <p>Note that FieldProperties cannot be used with slots. They can only |
|
304 be used for attributes stored in instance dictionaries.</p> |
|
305 </dd></dl> |
|
306 |
|
307 <dl class="method"> |
|
308 <dt id="pyams_content.component.gallery.Gallery.get_visible_images"> |
|
309 <code class="descname">get_visible_images</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.Gallery.get_visible_images" title="Permalink to this definition">¶</a></dt> |
|
310 <dd></dd></dl> |
|
311 |
|
312 <dl class="attribute"> |
|
313 <dt id="pyams_content.component.gallery.Gallery.last_id"> |
|
314 <code class="descname">last_id</code><em class="property"> = 1</em><a class="headerlink" href="#pyams_content.component.gallery.Gallery.last_id" title="Permalink to this definition">¶</a></dt> |
|
315 <dd></dd></dl> |
|
316 |
|
317 <dl class="attribute"> |
|
318 <dt id="pyams_content.component.gallery.Gallery.renderer"> |
|
319 <code class="descname">renderer</code><a class="headerlink" href="#pyams_content.component.gallery.Gallery.renderer" title="Permalink to this definition">¶</a></dt> |
|
320 <dd><p>Computed attributes based on schema fields</p> |
|
321 <p>Field properties provide default values, data validation and error messages |
|
322 based on data found in field meta-data.</p> |
|
323 <p>Note that FieldProperties cannot be used with slots. They can only |
|
324 be used for attributes stored in instance dictionaries.</p> |
|
325 </dd></dl> |
|
326 |
|
327 <dl class="attribute"> |
|
328 <dt id="pyams_content.component.gallery.Gallery.title"> |
|
329 <code class="descname">title</code><a class="headerlink" href="#pyams_content.component.gallery.Gallery.title" title="Permalink to this definition">¶</a></dt> |
|
330 <dd><p>Computed attributes based on schema fields</p> |
|
331 <p>Field properties provide default values, data validation and error messages |
|
332 based on data found in field meta-data.</p> |
|
333 <p>Note that FieldProperties cannot be used with slots. They can only |
|
334 be used for attributes stored in instance dictionaries.</p> |
|
335 </dd></dl> |
|
336 |
|
337 </dd></dl> |
|
338 |
|
339 <dl class="class"> |
|
340 <dt id="pyams_content.component.gallery.GalleryContainerNamespace"> |
|
341 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryContainerNamespace</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContainerNamespace" title="Permalink to this definition">¶</a></dt> |
|
342 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p> |
|
343 <p>++gallery++ namespace traverser</p> |
|
344 <dl class="method"> |
|
345 <dt id="pyams_content.component.gallery.GalleryContainerNamespace.traverse"> |
|
346 <code class="descname">traverse</code><span class="sig-paren">(</span><em>name</em>, <em>furtherpath=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContainerNamespace.traverse" title="Permalink to this definition">¶</a></dt> |
|
347 <dd></dd></dl> |
|
348 |
|
349 </dd></dl> |
|
350 |
|
351 <dl class="class"> |
|
352 <dt id="pyams_content.component.gallery.GalleryContainerSublocations"> |
|
353 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryContainerSublocations</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContainerSublocations" title="Permalink to this definition">¶</a></dt> |
|
354 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p> |
|
355 <p>Galleries container sublocations</p> |
|
356 <dl class="method"> |
|
357 <dt id="pyams_content.component.gallery.GalleryContainerSublocations.sublocations"> |
|
358 <code class="descname">sublocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContainerSublocations.sublocations" title="Permalink to this definition">¶</a></dt> |
|
359 <dd></dd></dl> |
|
360 |
|
361 </dd></dl> |
|
362 |
|
363 <dl class="class"> |
|
364 <dt id="pyams_content.component.gallery.GalleryContentChecker"> |
|
365 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryContentChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContentChecker" title="Permalink to this definition">¶</a></dt> |
|
366 <dd><p>Bases: <a class="reference internal" href="pyams_content.features.checker.html#pyams_content.features.checker.BaseContentChecker" title="pyams_content.features.checker.BaseContentChecker"><code class="xref py py-class docutils literal"><span class="pre">pyams_content.features.checker.BaseContentChecker</span></code></a></p> |
|
367 <p>Gallery content checker</p> |
|
368 <dl class="method"> |
|
369 <dt id="pyams_content.component.gallery.GalleryContentChecker.inner_check"> |
|
370 <code class="descname">inner_check</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryContentChecker.inner_check" title="Permalink to this definition">¶</a></dt> |
|
371 <dd></dd></dl> |
|
372 |
|
373 <dl class="attribute"> |
|
374 <dt id="pyams_content.component.gallery.GalleryContentChecker.label"> |
|
375 <code class="descname">label</code><em class="property"> = 'Gallery'</em><a class="headerlink" href="#pyams_content.component.gallery.GalleryContentChecker.label" title="Permalink to this definition">¶</a></dt> |
|
376 <dd></dd></dl> |
|
377 |
|
378 <dl class="attribute"> |
|
379 <dt id="pyams_content.component.gallery.GalleryContentChecker.sep"> |
|
380 <code class="descname">sep</code><em class="property"> = '\n'</em><a class="headerlink" href="#pyams_content.component.gallery.GalleryContentChecker.sep" title="Permalink to this definition">¶</a></dt> |
|
381 <dd></dd></dl> |
|
382 |
|
383 <dl class="attribute"> |
|
384 <dt id="pyams_content.component.gallery.GalleryContentChecker.weight"> |
|
385 <code class="descname">weight</code><em class="property"> = 60</em><a class="headerlink" href="#pyams_content.component.gallery.GalleryContentChecker.weight" title="Permalink to this definition">¶</a></dt> |
|
386 <dd></dd></dl> |
|
387 |
|
388 </dd></dl> |
|
389 |
|
390 <dl class="class"> |
|
391 <dt id="pyams_content.component.gallery.GalleryPermissionChecker"> |
|
392 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryPermissionChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryPermissionChecker" title="Permalink to this definition">¶</a></dt> |
|
393 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p> |
|
394 <p>Gallery permission checker</p> |
|
395 <dl class="attribute"> |
|
396 <dt id="pyams_content.component.gallery.GalleryPermissionChecker.edit_permission"> |
|
397 <code class="descname">edit_permission</code><a class="headerlink" href="#pyams_content.component.gallery.GalleryPermissionChecker.edit_permission" title="Permalink to this definition">¶</a></dt> |
|
398 <dd></dd></dl> |
|
399 |
|
400 </dd></dl> |
|
401 |
|
402 <dl class="class"> |
|
403 <dt id="pyams_content.component.gallery.GalleryRendererVocabulary"> |
|
404 <em class="property">class </em><code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryRendererVocabulary</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryRendererVocabulary" title="Permalink to this definition">¶</a></dt> |
|
405 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.schema.vocabulary.SimpleVocabulary</span></code></p> |
|
406 <p>Gallery renderer utilities vocabulary</p> |
|
407 </dd></dl> |
|
408 |
|
409 <dl class="function"> |
|
410 <dt id="pyams_content.component.gallery.GalleryTargetContentChecker"> |
|
411 <code class="descclassname">pyams_content.component.gallery.</code><code class="descname">GalleryTargetContentChecker</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.GalleryTargetContentChecker" title="Permalink to this definition">¶</a></dt> |
|
412 <dd></dd></dl> |
|
413 |
|
414 <dl class="function"> |
|
415 <dt id="pyams_content.component.gallery.gallery_factory"> |
|
416 <code class="descclassname">pyams_content.component.gallery.</code><code class="descname">gallery_factory</code><span class="sig-paren">(</span><em>target</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.gallery_factory" title="Permalink to this definition">¶</a></dt> |
|
417 <dd><p>Galleries container factory</p> |
|
418 </dd></dl> |
|
419 |
|
420 <dl class="function"> |
|
421 <dt id="pyams_content.component.gallery.handle_added_gallery"> |
|
422 <code class="descclassname">pyams_content.component.gallery.</code><code class="descname">handle_added_gallery</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.handle_added_gallery" title="Permalink to this definition">¶</a></dt> |
|
423 <dd><p>Handle added gallery</p> |
|
424 </dd></dl> |
|
425 |
|
426 <dl class="function"> |
|
427 <dt id="pyams_content.component.gallery.handle_modified_gallery"> |
|
428 <code class="descclassname">pyams_content.component.gallery.</code><code class="descname">handle_modified_gallery</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.handle_modified_gallery" title="Permalink to this definition">¶</a></dt> |
|
429 <dd><p>Handle modified gallery</p> |
|
430 </dd></dl> |
|
431 |
|
432 <dl class="function"> |
|
433 <dt id="pyams_content.component.gallery.handle_removed_gallery"> |
|
434 <code class="descclassname">pyams_content.component.gallery.</code><code class="descname">handle_removed_gallery</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_content.component.gallery.handle_removed_gallery" title="Permalink to this definition">¶</a></dt> |
|
435 <dd><p>Handle removed gallery</p> |
|
436 </dd></dl> |
|
437 |
|
438 </div> |
|
439 </div> |
|
440 |
|
441 |
|
442 </div> |
|
443 </div> |
|
444 </div> |
|
445 <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> |
|
446 <div class="sphinxsidebarwrapper"> |
|
447 <h3><a href="index.html">Table Of Contents</a></h3> |
|
448 <ul> |
|
449 <li><a class="reference internal" href="#">pyams_content.component.gallery package</a><ul> |
|
450 <li><a class="reference internal" href="#subpackages">Subpackages</a></li> |
|
451 <li><a class="reference internal" href="#submodules">Submodules</a></li> |
|
452 <li><a class="reference internal" href="#module-pyams_content.component.gallery.file">pyams_content.component.gallery.file module</a></li> |
|
453 <li><a class="reference internal" href="#module-pyams_content.component.gallery.paragraph">pyams_content.component.gallery.paragraph module</a></li> |
|
454 <li><a class="reference internal" href="#module-pyams_content.component.gallery">Module contents</a></li> |
|
455 </ul> |
|
456 </li> |
|
457 </ul> |
|
458 |
|
459 <div id="searchbox" style="display: none" role="search"> |
|
460 <h3>Quick search</h3> |
|
461 <form class="search" action="search.html" method="get"> |
|
462 <div><input type="text" name="q" /></div> |
|
463 <div><input type="submit" value="Go" /></div> |
|
464 <input type="hidden" name="check_keywords" value="yes" /> |
|
465 <input type="hidden" name="area" value="default" /> |
|
466 </form> |
|
467 </div> |
|
468 <script type="text/javascript">$('#searchbox').show(0);</script> |
|
469 </div> |
|
470 </div> |
|
471 <div class="clearer"></div> |
|
472 </div> |
|
473 <div class="related" role="navigation" aria-label="related navigation"> |
|
474 <h3>Navigation</h3> |
|
475 <ul> |
|
476 <li class="right" style="margin-right: 10px"> |
|
477 <a href="genindex.html" title="General Index" |
|
478 >index</a></li> |
|
479 <li class="right" > |
|
480 <a href="py-modindex.html" title="Python Module Index" |
|
481 >modules</a> |</li> |
|
482 <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> »</li> |
|
483 </ul> |
|
484 </div> |
|
485 <div class="footer" role="contentinfo"> |
|
486 © Copyright 2017, Thierry Florac. |
|
487 Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5. |
|
488 </div> |
|
489 </body> |
|
490 </html> |