author | Philippe Pepiot <philippe.pepiot@logilab.fr> |
Tue, 19 Mar 2019 13:17:47 +0100 | |
changeset 12519 | aff5d3498f68 |
permissions | -rw-r--r-- |
12519
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
1 |
from cubicweb.entities import AnyEntity, fetch_config |
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
2 |
|
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
3 |
|
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
4 |
class BlogEntry(AnyEntity): |
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
5 |
__regid__ = 'BlogEntry' |
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
6 |
fetch_attrs, cw_fetch_order = fetch_config( |
aff5d3498f68
[web/test] drop dependency on third party cubes
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
7 |
['creation_date', 'title'], order='DESC') |