Home | Trees | Indices | Help |
---|
|
object --+ | Field --+ | IntegerField --+ | TimeField
A field containing a date and time.
The data and time is stored as seconds since the start of the UNIX epoch, UTC (the semantics of the standard 'time' function), with one-second precision. User representations of 'TimeField' fields show one-minue precision.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Create a time field. The field is given a default value for this field is 'None', which corresponds to the current time when the field value is first created.
|
Generate help text about this field in structured text format.
|
Return a plain text rendering of a 'value' for this field. 'columns' -- The maximum width of each line of text. returns -- A plain-text string representing 'value'.
|
Return an HTML rendering of a 'value' for this field. 'server' -- The 'WebServer' in which the HTML will be displayed. 'value' -- The value for this field. May be 'None', which renders a default value (useful for blank forms). 'style' -- The rendering style. Can be "full" or "brief" (both read-only), or "new" or "edit" or "hidden". 'name' -- The name to use for the primary HTML form element containing the value of this field, if 'style' specifies the generation of form elements. If 'name' is 'None', the value returned by 'GetHtmlFormFieldName()' should be used. returns -- A string containing the HTML representation of 'value'.
|
Parse a value represented as a string. 'value' -- A string representing the value. returns -- The corresponding field value. The value returned should be processed by 'Validate' to ensure that it is valid before it is returned.
|
Return the default value for this field.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |