equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 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 |
22 |
22 |
23 from yams.schema import role_name |
23 from yams.schema import role_name |
24 |
24 |
25 from cubicweb import Binary, ValidationError |
25 from cubicweb import Binary, ValidationError |
26 from cubicweb.server import hook |
26 from cubicweb.server import hook |
27 from cubicweb.server.ssplanner import EditedEntity |
27 from cubicweb.server.edition import EditedEntity |
28 |
28 |
29 |
29 |
30 def set_attribute_storage(repo, etype, attr, storage): |
30 def set_attribute_storage(repo, etype, attr, storage): |
31 repo.system_source.set_storage(etype, attr, storage) |
31 repo.system_source.set_storage(etype, attr, storage) |
32 |
32 |