Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gone/dictshield
...
head fork: gone/dictshield
Commits on Feb 26, 2012
@titusz titusz fixed Document.validate() returns early ;.) dfb047c
@titusz titusz fixed BaseField._validate() calling ShieldException with missing argu…
…ments
5416781
@titusz titusz added basic test for document validation and made Document.validate()…
… return True...
0a6a4fb
@titusz titusz changed tests to basic unittest.. 9fe2736
Commits on Mar 14, 2012
@nicolaiarocci nicolaiarocci Fixed metaclass names in the example code, in order to match document…
…ation references
c0dc764
James Dennis Merge pull request #71 from nicolaiarocci/master
Minor fixes at the design documentation
3f6de60
Commits on Mar 21, 2012
James Dennis Completed work overhauling the metaclass structures. I first mocked o…
…ut the gist of

the design here: https://gist.github.com/2146589

The high-level is that a `Document` instance can define a class `Meta` to set options
for the class's behavior, such as which field to use for an ID and whether or not the
class is a Mixin.

A user now writes code like:

    class SimpleDoc(Document):
        title = StringField(max_length=40)
        num = IntField()
        class Meta:
            id_field = ObjectIdField

The `Meta` class is then parsed into `_options`, which we see attached to `SimpleDoc`
as `SimpleDoc._options`. The `_options` structure is an instance, or subclass, of
`DocOptions`. (I should probably change that to `DocumentOptions`).

The documentation will be updated soon and will explain all the configuration options
available to document creators.
cf05dae
James Dennis Renamed `DocOptions` to `DocumentOptions` anywhere I found it along w…
…ith slide modification to how id fields are handled to be make subclasses structures with alternate ids carry over the id types of superclasses
c57624e
James Dennis Adjusted the diff_obj_id demo to work with new metaclass system 126e5d6
James Dennis Updated tests to work on the new metaclass structure f345dc4
James Dennis Bumping version to v0.4, to celebrate the new metaclass system b24cf99
James Dennis Merge branch 'master' of github.com:j2labs/dictshield 3c3712c
James Dennis Updated typo on name of id field 8de4e82
James Dennis Merge branch 'master' of https://github.com/titusz/dictshield into titus 327e25e
James Dennis Set test_doc_vaidation to be executable 3ea1c73
James Dennis Updated version to v0.4.1 after applying some pull requests e7622fc
Commits on Mar 26, 2012
James Dennis Lots of documentation updates. 4c274bf
James Dennis Typo in docs 0909730
James Dennis Improved docs d4bb18d
James Dennis Improved docs 0c56c1d
James Dennis Improved docs d8bcf71
James Dennis Fixed bug in example code c4432ad
Something went wrong with that request. Please try again.