legislei.models.avaliacoes module

class legislei.models.avaliacoes.Avaliacoes(*args, **values)[código fonte]

Bases: mongoengine.document.Document

exception DoesNotExist

Bases: mongoengine.errors.DoesNotExist

exception MultipleObjectsReturned

Bases: mongoengine.errors.MultipleObjectsReturned

avaliacao

A unicode string field.

avaliado

A dictionary field that wraps a standard Python dictionary. This is similar to an embedded document, but the structure is not defined.

Nota

Required means it cannot be empty - as the default for DictFields is {}

Novo na versão 0.3.

Alterado na versão 0.5: - Can now handle complex / varying types of data

email

A unicode string field.

id

A field wrapper around MongoDB’s ObjectIds.

objects

The default QuerySet Manager.

Custom QuerySet Manager functions can extend this class and users can add extra queryset functionality. Any custom manager methods must accept a Document class as its first argument, and a QuerySet as its second argument.

The method function should return a QuerySet , probably the same one that was passed in, but modified in some way.

parlamentar

An embedded document field - with a declared document_type. Only valid values are subclasses of EmbeddedDocument.

relatorioId

A field wrapper around MongoDB’s ObjectIds.