equal
deleted
inserted
replaced
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 |
18 |
19 from cubicweb.entities import AnyEntity, fetch_config |
19 from cubicweb.entities import AnyEntity, fetch_config, adapters |
|
20 from cubicweb.predicates import is_instance |
|
21 |
20 |
22 |
21 class Societe(AnyEntity): |
23 class Societe(AnyEntity): |
22 __regid__ = 'Societe' |
24 __regid__ = 'Societe' |
23 fetch_attrs = ('nom',) |
25 fetch_attrs = ('nom',) |
24 |
26 |
32 __regid__ = 'Ami' |
34 __regid__ = 'Ami' |
33 rest_attr = 'nom' |
35 rest_attr = 'nom' |
34 |
36 |
35 class Note(AnyEntity): |
37 class Note(AnyEntity): |
36 __regid__ = 'Note' |
38 __regid__ = 'Note' |
|
39 |
|
40 |
|
41 class FakeFileIDownloadableAdapter(adapters.IDownloadableAdapter): |
|
42 __select__ = is_instance('FakeFile') |