2009-07-09 11:29:04 -03:00
|
|
|
.. _ref-newitem-fields:
|
|
|
|
|
|
|
|
====================
|
|
|
|
Item Field Reference
|
|
|
|
====================
|
|
|
|
|
|
|
|
.. module:: scrapy.contrib_exp.newitem.fields
|
|
|
|
|
|
|
|
Field options
|
|
|
|
=============
|
|
|
|
|
|
|
|
``default``
|
|
|
|
-----------
|
|
|
|
|
|
|
|
.. attribute:: Field.default
|
|
|
|
|
|
|
|
The default value for the field.
|
|
|
|
|
|
|
|
|
|
|
|
Field types
|
|
|
|
===========
|
|
|
|
|
|
|
|
``BooleanField``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. class:: BooleanField
|
|
|
|
|
|
|
|
A true/false field.
|
|
|
|
|
|
|
|
``DateField``
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. class:: DateField
|
|
|
|
|
|
|
|
A date, represented in Python by a ``datetime.date`` instance.
|
|
|
|
|
|
|
|
``DateTimeField``
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
.. class:: DateTimeField
|
|
|
|
|
|
|
|
A date with time, represented in Python by a ``datetime.datetime`` instance.
|
|
|
|
|
|
|
|
``DecimalField``
|
2009-07-09 16:50:13 -03:00
|
|
|
----------------
|
2009-07-09 11:29:04 -03:00
|
|
|
|
|
|
|
.. class:: DecimalField
|
|
|
|
|
|
|
|
A fixed-precision decimal number, represented in Python by a :class:`~decimal.Decimal` instance.
|
|
|
|
|
|
|
|
``FloatField``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. class:: FloatField
|
|
|
|
|
|
|
|
A floating-point number represented in Python by a ``float`` instance.
|
|
|
|
|
|
|
|
``IntegerField``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. class:: IntegerField
|
|
|
|
|
|
|
|
An integer.
|
|
|
|
|
|
|
|
``StringField``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
A text field.
|
|
|
|
|
|
|
|
.. class:: StringField
|
|
|
|
|
|
|
|
|