1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
<?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>Camelot.camelot.model.authentication.City.Admin</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">
<!-- Home link -->
<th> <a
href="Camelot.camelot-module.html">Home</a> </th>
<!-- 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>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="http://www.python-camelot.com">Camelot</a></th>
</tr></table></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
Package Camelot ::
<a href="Camelot.camelot-module.html">Package camelot</a> ::
<a href="Camelot.camelot.model-module.html">Package model</a> ::
<a href="Camelot.camelot.model.authentication-module.html">Module authentication</a> ::
<a href="Camelot.camelot.model.authentication.City-class.html">Class City</a> ::
Class Admin
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="Camelot.camelot.model.authentication.City.Admin-class.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Admin</h1><p class="nomargin-top"><span class="codelink"><a href="Camelot.camelot.model.authentication-pysrc.html#City.Admin">source code</a></span></p>
<center>
<center> <map id="uml_class_diagram_for_camelot__40" name="uml_class_diagram_for_camelot__40">
<area shape="rect" href="camelot.admin.validator.entity_validator.EntityValidator-class.html" title="A validator class validates an entity before flushing it to the database and provides the user with feedback if the entity is not ready to flush" alt="" coords="20,639,281,657"/>
<area shape="rect" href="javascript:void(0);" title="Duplicate this entity instance" alt="" coords="20,660,281,679"/>
<area shape="rect" href="javascript:void(0);" title="Returns a Qt widget that can be used to select an element from a query" alt="" coords="20,679,281,697"/>
<area shape="rect" href="javascript:void(0);" title="Returns a Qt widget containing a table view, for a certain query, using this Admin class; the table widget contains a model QueryTableModel" alt="" coords="20,697,281,716"/>
<area shape="rect" href="javascript:void(0);" title="Delete an entity instance" alt="" coords="20,716,281,735"/>
<area shape="rect" href="javascript:void(0);" title="Flush the pending changes of this entity instance to the backend" alt="" coords="20,735,281,753"/>
<area shape="rect" href="javascript:void(0);" title="Get the attributes needed to visualize the field field_name :param field_name: the name of the field" alt="" coords="20,753,281,772"/>
<area shape="rect" href="javascript:void(0);" title="Returns the filters applicable for these entities each filter is" alt="" coords="20,772,281,791"/>
<area shape="rect" href="javascript:void(0);" title="camelot.view.elixir_admin.EntityAdmin.get_list_charts" alt="" coords="20,791,281,809"/>
<area shape="rect" href="javascript:void(0);" title="displayed in the table or the selection view.  Overwrite this method to change the default query, which selects all rows in the database." alt="" coords="20,809,281,828"/>
<area shape="rect" href="javascript:void(0);" title="Get the admin class for an entity that is a subclass of this admin's entity or this admin's entity itself." alt="" coords="20,828,281,847"/>
<area shape="rect" href="javascript:void(0);" title="Returns admin objects for the subclasses of the Entity represented by this admin object." alt="" coords="20,847,281,865"/>
<area shape="rect" href="javascript:void(0);" title="Create an identifier for an object that is interpretable for the user, eg : the 'id' of an object.  This verbose identifier can be used to generate a title for a form view of an object." alt="" coords="20,865,281,884"/>
<area shape="rect" href="javascript:void(0);" title="Set the defaults of an object :param include_nullable_fields: also set defaults for nullable fields, depending on the context, this should be set to False to allow the user to set the field to None" alt="" coords="20,884,281,903"/>
<area shape="rect" href="javascript:void(0);" title="Admin class specific for classes that are mapped by sqlalchemy. This allows for much more introspection than the standard ObjectAdmin." alt="" coords="19,621,283,904"/>
<area shape="rect" href="Camelot.camelot.model.authentication.City.Admin-class.html#verbose_name" title="Camelot.camelot.model.authentication.City.Admin.verbose_name" alt="" coords="87,951,215,969"/>
<area shape="rect" href="Camelot.camelot.model.authentication.City.Admin-class.html#verbose_name_plural" title="Camelot.camelot.model.authentication.City.Admin.verbose_name_plural" alt="" coords="87,969,215,988"/>
<area shape="rect" href="Camelot.camelot.model.authentication.City.Admin-class.html#form_size" title="Camelot.camelot.model.authentication.City.Admin.form_size" alt="" coords="87,988,215,1007"/>
<area shape="rect" href="Camelot.camelot.model.authentication.City.Admin-class.html#list_display" title="Camelot.camelot.model.authentication.City.Admin.list_display" alt="" coords="87,1007,215,1025"/>
<area shape="rect" href="Camelot.camelot.model.authentication.City.Admin-class.html" title="Camelot.camelot.model.authentication.City.Admin" alt="" coords="85,933,216,1035"/>
<area shape="rect" href="javascript:void(0);" title="hash(x)" alt="" coords="17,28,284,47"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.confirm_delete" alt="" coords="17,47,284,65"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.field_attributes" alt="" coords="17,65,284,84"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.fields" alt="" coords="17,84,284,103"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.form" alt="" coords="17,103,284,121"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.form_actions" alt="" coords="17,121,284,140"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.form_display" alt="" coords="17,140,284,159"/>
<area shape="rect" href="javascript:void(0);" title="hash(x)" alt="" coords="17,159,284,177"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.list_actions" alt="" coords="17,177,284,196"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.list_charts" alt="" coords="17,196,284,215"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.list_filter" alt="" coords="17,215,284,233"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.list_search" alt="" coords="17,233,284,252"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.list_size" alt="" coords="17,252,284,271"/>
<area shape="rect" href="camelot.view.proxy.collection_proxy.CollectionProxy-class.html" title="The CollectionProxy contains a limited copy of the data in the actual collection, usable for fast visualisation in a QTableView" alt="" coords="17,271,284,289"/>
<area shape="rect" href="javascript:void(0);" title="hash(x)" alt="" coords="17,289,284,308"/>
<area shape="rect" href="javascript:void(0);" title="then the default application_admin is taken :param entity: the entity class for which this admin instance is to be used" alt="" coords="17,311,284,329"/>
<area shape="rect" href="javascript:void(0);" title="repr(x)" alt="" coords="17,329,284,348"/>
<area shape="rect" href="javascript:void(0);" title="str(x)" alt="" coords="17,348,284,367"/>
<area shape="rect" href="javascript:void(0);" title="Add an entity instance as a managed entity instance" alt="" coords="17,367,284,385"/>
<area shape="rect" href="javascript:void(0);" title="Creates a Qt widget containing a form view, for a specific index in a model.  Use this method to create a form view for a collection of objects, the user will be able to use PgUp/PgDown to move to the next object." alt="" coords="17,385,284,404"/>
<area shape="rect" href="javascript:void(0);" title="Create a Qt widget containing a form to create a new instance of the entity related to this admin class" alt="" coords="17,404,284,423"/>
<area shape="rect" href="javascript:void(0);" title="Create a form view for a single object, PgUp/PgDown will do nothing." alt="" coords="17,423,284,441"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.create_validator" alt="" coords="17,441,284,460"/>
<area shape="rect" href="javascript:void(0);" title="A dictionary of (field_name:field_attributes) for all fields that can possibly appear in a list or a form or for which field attributes have been defined" alt="" coords="17,460,284,479"/>
<area shape="rect" href="javascript:void(0);" title="The columns to be displayed in the list view, returns a list of pairs of the name of the field and its attributes needed to display it properly" alt="" coords="17,479,284,497"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.get_confirm_delete" alt="" coords="17,497,284,516"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.get_entity_admin" alt="" coords="17,516,284,535"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.get_fields" alt="" coords="17,535,284,553"/>
<area shape="rect" href="javascript:void(0);" title="camelot.admin.object_admin.ObjectAdmin.get_verbose_name_plural" alt="" coords="17,572,284,591"/>
<area shape="rect" href="javascript:void(0);" title="The ObjectAdmin class describes the interface that will be used to interact with objects of a certain class." alt="" coords="16,11,285,592"/>
</map>
<img src="uml_class_diagram_for_camelot__40.gif" alt='' usemap="#uml_class_diagram_for_camelot__40" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<!-- ==================== NESTED CLASSES ==================== -->
<a name="section-NestedClasses"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Nested Classes</span></td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>camelot.view.elixir_admin.EntityAdmin</code></b>:
<code><a href="camelot.admin.validator.entity_validator.EntityValidator-class.html">validator</a></code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>camelot.admin.object_admin.ObjectAdmin</code></b>:
<code><a href="camelot.view.proxy.collection_proxy.CollectionProxy-class.html">model</a></code>
</p>
</td>
</tr>
</table>
<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Instance Methods</span></td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>camelot.view.elixir_admin.EntityAdmin</code></b>:
<code>copy</code>,
<code>create_select_view</code>,
<code>create_table_view</code>,
<code>delete</code>,
<code>flush</code>,
<code>get_field_attributes</code>,
<code>get_filters</code>,
<code>get_list_charts</code>,
<code>get_query</code>,
<code>get_subclass_entity_admin</code>,
<code>get_subclasses</code>,
<code>get_verbose_identifier</code>,
<code>set_defaults</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>camelot.admin.object_admin.ObjectAdmin</code></b>:
<code>__init__</code>,
<code>__repr__</code>,
<code>__str__</code>,
<code>add</code>,
<code>create_form_view</code>,
<code>create_new_view</code>,
<code>create_object_form_view</code>,
<code>create_validator</code>,
<code>get_all_fields_and_attributes</code>,
<code>get_columns</code>,
<code>get_confirm_delete</code>,
<code>get_entity_admin</code>,
<code>get_fields</code>,
<code>get_form_actions</code>,
<code>get_form_display</code>,
<code>get_list_actions</code>,
<code>get_name</code>,
<code>get_related_entity_admin</code>,
<code>get_subclass_tree</code>,
<code>get_verbose_name</code>,
<code>get_verbose_name_plural</code>
</p>
<p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
<code>__delattr__</code>,
<code>__format__</code>,
<code>__getattribute__</code>,
<code>__hash__</code>,
<code>__new__</code>,
<code>__reduce__</code>,
<code>__reduce_ex__</code>,
<code>__setattr__</code>,
<code>__sizeof__</code>,
<code>__subclasshook__</code>
</p>
</td>
</tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Class Variables</span></td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a name="verbose_name"></a><span class="summary-name">verbose_name</span> = <code title="_('City')">_('City')</code>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a name="verbose_name_plural"></a><span class="summary-name">verbose_name_plural</span> = <code title="_('Cities')">_('Cities')</code>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a name="form_size"></a><span class="summary-name">form_size</span> = <code title="(700, 150)"><code class="variable-group">(</code>700<code class="variable-op">, </code>150<code class="variable-group">)</code></code>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a name="list_display"></a><span class="summary-name">list_display</span> = <code title="['code', 'name', 'country']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">code</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">name</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">country</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
</td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>camelot.admin.object_admin.ObjectAdmin</code></b>:
<code>TableView</code>,
<code>confirm_delete</code>,
<code>field_attributes</code>,
<code>fields</code>,
<code>form</code>,
<code>form_actions</code>,
<code>form_display</code>,
<code>form_title_column</code>,
<code>list_actions</code>,
<code>list_charts</code>,
<code>list_filter</code>,
<code>list_search</code>,
<code>list_size</code>,
<code>name</code>
</p>
</td>
</tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Properties</span></td>
</tr>
<tr>
<td colspan="2" class="summary">
<p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
<code>__class__</code>
</p>
</td>
</tr>
</table>
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="Camelot.camelot-module.html">Home</a> </th>
<!-- 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>
<!-- Project homepage -->
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center"
><a class="navbar" target="_top" href="http://www.python-camelot.com">Camelot</a></th>
</tr></table></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 Sat Jun 12 15:41:33 2010
</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>
|