|
__init__(self,
app_admin,
entity)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
getRelatedEntityAdmin(self,
entity)
Get the related admin class for an entity, optionally specify for
which field of this admin's entity |
source code
|
|
|
|
|
getFieldAttributes(self,
field_name)
Get the attributes needed to visualize the field field_name
@param field_name : the name of the field
@return: a dictionary of attributes needed to visualize the field, those
attributes can be:
* python_type : the corresponding python type of the object
* editable : bool specifying wether the user can edit this field
* widget : which widget to be used to render the field
* ... |
source code
|
|
|
getColumns(self)
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 |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createNewView(admin,
parent=None,
oncreate=None,
onexpunge=None)
Create a QT widget containing a form to create a new instance of the
entity related to this admin class |
source code
|
|
|
createFormView(admin,
title,
model,
index,
parent)
Creates a Qt widget containing a form view, for a specific row of the
passed query; uses the Admin class |
source code
|
|
|
createSelectView(admin,
query,
search_text=None,
parent=None)
Returns a QT widget that can be used to select an element from a
query, |
source code
|
|
|
createTableView(self,
query,
parent=None)
Returns a QT widget containing a table view, for a certain query,
using this Admin class; the table widget contains a model
QueryTableModel |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|