1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
25 import tempfile |
25 import tempfile |
26 import os, os.path as osp |
26 import os, os.path as osp |
27 |
27 |
28 from logilab.common.graph import GraphGenerator, DotBackend |
28 from logilab.common.graph import GraphGenerator, DotBackend |
29 from logilab.common.ureports import Section, Table |
29 from logilab.common.ureports import Section, Table |
|
30 from logilab.common.registry import yes |
30 from logilab.mtconverter import xml_escape |
31 from logilab.mtconverter import xml_escape |
31 from yams import BASE_TYPES, schema2dot as s2d |
32 from yams import BASE_TYPES, schema2dot as s2d |
32 from yams.buildobjs import DEFAULT_ATTRPERMS |
33 from yams.buildobjs import DEFAULT_ATTRPERMS |
33 |
34 |
34 from cubicweb.selectors import (is_instance, match_user_groups, match_kwargs, |
35 from cubicweb.predicates import (is_instance, match_user_groups, match_kwargs, |
35 has_related_entities, authenticated_user, yes) |
36 has_related_entities, authenticated_user) |
36 from cubicweb.schema import (META_RTYPES, SCHEMA_TYPES, SYSTEM_RTYPES, |
37 from cubicweb.schema import (META_RTYPES, SCHEMA_TYPES, SYSTEM_RTYPES, |
37 WORKFLOW_TYPES, INTERNAL_TYPES) |
38 WORKFLOW_TYPES, INTERNAL_TYPES) |
38 from cubicweb.utils import make_uid |
39 from cubicweb.utils import make_uid |
39 from cubicweb.view import EntityView, StartupView |
40 from cubicweb.view import EntityView, StartupView |
40 from cubicweb import tags, uilib |
41 from cubicweb import tags, uilib |