- 11 Aug, 2010 2 commits
-
-
Alexandre Fayolle authored
work around Apache's mod_proxy limitation with special chars in URLs by not using Rest urls when such a case is detected --HG-- branch : stable
-
Sylvain Thénault authored
[entity] base_url argument may be explicitly specified for other purpose (eg http/https site version control) --HG-- branch : stable
-
- 10 Aug, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 16 Jul, 2010 1 commit
-
-
Sylvain Thénault authored
-
- 02 Jul, 2010 1 commit
-
-
Sylvain Thénault authored
-
- 18 Jun, 2010 1 commit
-
-
Sylvain Thénault authored
[entity] fix .complete so we don't crash on missing mandatory relation. Also simplify code. Closes #1058267
-
- 16 Jun, 2010 1 commit
-
-
Sylvain Thénault authored
[entity] when .related() is called on a not-yet-saved entity, return an empty rset/list instead of raising an assertion error --HG-- branch : stable
-
- 11 Jun, 2010 3 commits
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
Sylvain Thénault authored
-
Sylvain Thénault authored
as with earlier simplejson implementation, iterencode internal stuff is a generated function, we can't anymore rely on the _iterencode overriding trick, so move on by stoping isinstance(Entity, dict). This is a much heavier change than expected but it was expected to be done at some point, so let's go that way.
-
- 21 May, 2010 2 commits
-
-
Sylvain Thénault authored
[entity] clearing adapters cache in clear_relations_cache avoid weird caching issue, notably on repository session's user
-
Sylvain Thénault authored
-
- 20 May, 2010 2 commits
-
-
Sylvain Thénault authored
* prefix by cw_ or _cw all '2nd zone' attributes / methods, other most commonly used will be done later (some methods used by client are made private anyway when they are for internal purpose anyway) * kill set_eid, use direct affectation instead * kill the auto-transmutation feature (pre_add_hook), hence releasing 3.9 will require releasing file cube as well
-
Sylvain Thénault authored
This changeset introduces the notion in adapters (as in Zope Component Architecture) in a cubicweb way, eg using a specific registry of appobjects. This allows nicer code structure, by avoid clutering entity classes and moving code usually specific to a place of the ui (or something else) together with the code that use the interface. We don't use actual interface anymore, they are implied by adapters (which may be abstract), whose reg id is an interface name. Appobjects that used to 'implements(IFace)' should now be rewritten by: * coding an IFaceAdapter(EntityAdapter) defining (implementing if desired) the interface, usually with __regid__ = 'IFace' * use "adaptable('IFace')" as selector instead Also, the implements_adapter_compat decorator eases backward compatibility with adapter's methods that may still be found on entities implementing the interface. Notice that unlike ZCA, we don't support automatic adapters chain (yagni?). All interfaces defined in cubicweb have been turned into adapters, also some new ones have been introduced to cleanup Entity / AnyEntity classes namespace. At the end, the pluggable mixins mecanism should disappear in favor of adapters as well.
-
- 12 May, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 28 Apr, 2010 2 commits
-
-
Sylvain Thénault authored
--HG-- branch : oldstable
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 16 Apr, 2010 1 commit
-
-
Adrien Di Mascio authored
--HG-- branch : stable
-
- 09 Apr, 2010 1 commit
-
-
Sylvain Thénault authored
[entity] move req.create_entity content to a cw_instantiate factory method on entity classes, so cube developpers will be able to easily customize instance creation --HG-- branch : stable
-
- 02 Apr, 2010 1 commit
-
-
Aurelien Campeas authored
--HG-- branch : stable
-
- 01 Apr, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 31 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
set_attributes() will generate a RQL query that will silently fail. An explicit error is better. You can still use the ``entity[attr] = value`` notation that won't generate a SQL query but still update the inner state of the entity and its edited_attributes attribute. --HG-- branch : stable
-
- 25 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 07 Apr, 2010 1 commit
-
-
Sylvain Thénault authored
-
- 24 Mar, 2010 4 commits
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
Sylvain Thénault authored
[security] don't add attribute into skip_security if already in edited_attributes, else we may accidentaly skip a desired security check --HG-- branch : stable
-
Sylvain Thénault authored
--HG-- branch : stable
-
Sylvain Thénault authored
[yams] on creation, specify relations anyway so we don't get spurious warning for accessing eid through the dict api on yams validation --HG-- branch : stable
-
- 22 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
fix security issue introduced by 4967:04543ed0bbdc: attributes explicitly set by hooks should not be checked by security hooks
-
- 19 Mar, 2010 1 commit
-
-
Adrien Di Mascio authored
-
- 04 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
* moved logic from repository to the native source * avoid creating a FTIndexOp when no full text indexation is needed * entities with fulltext_container set are not indexed even when not related to a container * avoid duplicated unindexation --HG-- branch : stable
-
- 01 Mar, 2010 1 commit
-
-
Katia Saurfelt authored
-
- 09 Mar, 2010 3 commits
-
-
Sylvain Thénault authored
[refactor] drop rset.vreg attribute, vreg should be accessed through rset.req. Also kill decorate_rset, simply set rset.req where we were calling this method.
-
Sylvain Thénault authored
-
Sylvain Thénault authored
[repo] enhanced security handling: deprecates unsafe_execute, in favor of explicit read/write security control using the `enabled_security` context manager. Also code executed on the repository side is now unsafe by default.
-
- 08 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
[repo] use logilab.db instead of lgc.adbh/lgc.db/lgc.sqlgen/indexer, test new date extranction functions
-
- 03 Mar, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 26 Feb, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 18 Feb, 2010 1 commit
-
-
Sylvain Thénault authored
fix #694445: related entity generates weird RQL which in turn generates weird SQL which fails on SQL Server quick fix to reuse modification_date if already retreived by the rql query. --HG-- branch : stable
-
- 05 Feb, 2010 1 commit
-
-
Sylvain Thénault authored
-