Commit Graph

366 Commits

Author SHA1 Message Date
Eric Steele c2cf42edb8 Preparing release 2.1.1 2013-01-17 22:02:28 -05:00
Thomas Desvenain 5753a95a9c Update docs/HISTORY.txt
cedricmessiant contributed to this change
2013-01-16 10:08:27 +01:00
David Glick b385afa525 don't add title & description fields by default 2013-01-15 16:14:16 -08:00
Wichert Akkerman 56879c86bf Check FTI when pasting content.
Conflicts:
	docs/HISTORY.txt
	plone/dexterity/content.py
	plone/dexterity/tests/test_content.py
2013-01-11 22:45:29 -08:00
David Glick 681510ab6e fix changelog 2013-01-04 15:49:23 -08:00
David Glick 7df9330db4 remove .mo file which should be ignored 2013-01-04 15:49:14 -08:00
David Glick a5bb50a94a Merge remote-tracking branch 'headnet/schema-cache-fix' 2013-01-04 15:31:16 -08:00
Maurits van Rees 8ed3213159 babel update_catalog 2013-01-02 12:06:29 +01:00
Maurits van Rees a63ed1e1f0 extract messages 2013-01-02 11:55:55 +01:00
Maurits van Rees ceaedb6e2b Move babel config out of setup.py.
Use the setup as shown here:
https://github.com/mauritsvanrees/maurits.i18ntalk/blob/master/talk.rst
2013-01-02 11:55:45 +01:00
Eric Steele 951dae0d82 Fix version number. 2013-01-01 22:13:25 -05:00
Eric Steele ee8db0305d Back to development: 2.1 2013-01-01 22:12:46 -05:00
Eric Steele 6bda27317f Preparing release 2.1 2013-01-01 21:23:08 -05:00
Rok Garbas 8eb5ca33de Merge pull request #13 from gbastien/master
Make it possible to define a SchemaPolicy for the FTI
2012-12-17 05:12:32 -08:00
Gauthier Bastien ff16a44ae7 Update docs/HISTORY.txt 2012-12-17 14:08:28 +01:00
Frédéric Péters 6778c2c23b Add tests for the schema_policy attribute 2012-12-14 16:45:49 +01:00
Frédéric Péters afb4b96ebf Add a schema policy attribute to Dexterity FTI 2012-12-13 17:45:36 +01:00
Rok Garbas 3b11b0d4da adding to Changelog for #11 2012-12-06 05:30:23 +01:00
Rok Garbas ceeb72b61a Merge pull request #11 from plone/attribute-lookup-optimization
Return early for attributes that begin with two underscores
2012-12-05 20:29:01 -08:00
David ichimdav b7f013e8b8 Merge pull request #12 from petri/master
fix Finnish translation po file's Domain header
2012-12-04 11:30:26 -08:00
Petri Savolainen a32b5340ff fix Finnish translation po file's Domain header 2012-12-04 08:16:17 +02:00
Rok Garbas e3130cc7f1 Added changelog entry and fixed language code 2012-11-25 22:41:55 +01:00
Jukka Ojaniemi 2293fa1777 Added Finnish translations. 2012-11-25 22:37:57 +01:00
Bo Simonsen 6e1bf67401 Merge branch 'attribute-lookup-optimization' of https://github.com/plone/plone.dexterity into schema-cache-fix 2012-11-23 14:36:39 +01:00
Malthe Borch 00a098bc15 Update plone/dexterity/content.py
Oops.
2012-11-23 14:32:50 +01:00
Malthe Borch 8b85633bfe Include a small comment on this optimization. 2012-11-21 15:02:57 +01:00
Malthe Borch bc5bbb017b Merge branch 'schema-cache-fix' of github.com:headnet/plone.dexterity into schema-cache-fix 2012-11-21 14:58:48 +01:00
Headnet 412e370d28 Fixed a bug in malthes rewrite of the schema cache, since invalidate on the schema cache can be invoked for a non-registered FTI, which caused an error, furthermore invalidate schema was called for an unregistered FTI, which was definitely also a mistake. 2012-11-21 14:49:43 +01:00
Malthe Borch 75d2b6dd5d Allow for the disabling of the schema cache (for testing purposes), and fix some expectations (we now expect more schema lookups in the test since the schema cache is disabled). 2012-11-21 14:49:43 +01:00
Malthe Borch 7563951b00 Fixed schema caching.
Previously, a non-persistent counter would be used as part of the
cache key, and changes made to this counter in one process would
obviously not propagate to other processes.

Instead, the cache key now includes the schema and subtypes which are
both retrieved from a FTI-specific volatile cache that uses the
modification time as its cache key.

Note that the tests are failing in this particular changeset. It's a
little tedious to instruct the mocker to respond naturally to the
volatile caching attempts. Maybe the passthrough-mode can be used,
combined with a single test case that examines the cache invariant.
2012-11-21 14:49:43 +01:00
Malthe Borch e2fca426d9 Return early for attributes that begin with two underscores (typically '__conform__'). 2012-11-21 14:43:37 +01:00
Headnet 8b909457b8 Fixed a bug in malthes rewrite of the schema cache, since invalidate on the schema cache can be invoked for a non-registered FTI, which caused an error, furthermore invalidate schema was called for an unregistered FTI, which was definitely also a mistake. 2012-11-06 15:33:37 +01:00
Gaudenz Steinlin 2233d0b535 Use IConstrainTypes adapters for dexterity content
Overrride allowedContentTypes and invokeFactory from PortalFolder
to mimic the behavior of Archetypes based folders. This allows the
registration of IConstrainTypes adapters to actually have the
expected effect.
2012-11-01 19:20:22 -07:00
Malthe Borch fd32e11102 Merge pull request #9 from headnet/master
Default value provided by subtype field
2012-10-26 06:07:20 -07:00
Malthe Borch 4ee6216de6 Allow for the disabling of the schema cache (for testing purposes), and fix some expectations (we now expect more schema lookups in the test since the schema cache is disabled). 2012-10-26 14:53:29 +02:00
Malthe Borch 79f4255b41 Fixed schema caching.
Previously, a non-persistent counter would be used as part of the
cache key, and changes made to this counter in one process would
obviously not propagate to other processes.

Instead, the cache key now includes the schema and subtypes which are
both retrieved from a FTI-specific volatile cache that uses the
modification time as its cache key.

Note that the tests are failing in this particular changeset. It's a
little tedious to instruct the mocker to respond naturally to the
volatile caching attempts. Maybe the passthrough-mode can be used,
combined with a single test case that examines the cache invariant.
2012-10-26 14:32:48 +02:00
Malthe Borch dd491480b8 Default attribute accessor now returns a field default for a field provided by a subtype. 2012-10-18 10:29:18 +02:00
Malthe Borch 26d27cb66f Return an empty tuple if an FTI is not found, instead of ``None``. 2012-10-18 10:25:18 +02:00
Malthe Borch 29e2f52976 Refactor. 2012-10-18 10:17:38 +02:00
Malthe Borch dd5a96917d Merge pull request #7 from headnet/master
FTI can now get additional schemata using behavior utility lookup
2012-09-26 01:04:43 -07:00
Malthe Borch ef63c932e0 Adding test and changelog entry. 2012-09-20 13:12:07 +02:00
Bo Simonsen 85f2fc8a3d Now looking up the behavior utility and using that utility to get the interface 2012-09-20 11:34:08 +02:00
David Glick 2623e83397 Merge pull request #6 from headnet/master
added danish translation
2012-09-07 11:53:04 -07:00
Thomas Clement Mogensen 8a809657eb add danish translation 2012-09-06 14:00:31 +02:00
Eric Steele 0edb12bebd Back to development: 2.0.1 2012-08-30 17:13:00 -04:00
Eric Steele 7e7a1ae263 Prepare plone.dexterity 2.0. 2012-08-30 17:12:20 -04:00
Eric Steele fbf3c123de Preparing release 2.0 2012-08-30 17:11:23 -04:00
David Glick be242e9269 Merge pull request #5 from retsu/master
Added Japanese translation.
2012-08-15 08:56:22 -07:00
Maurits van Rees 060ec82887 Dutch: Bewaar -> Bewaren, like elsewhere in Plone 2012-08-15 14:42:13 +03:00
retsu f23923ee72 First translation for Ja 2012-08-15 20:08:03 +09:00