server/sources/storages.py
branchstable
changeset 7118 e094b3d4eb95
parent 6426 541659c39f6a
child 7398 26695dd703d8
child 7449 5e45e32071aa
equal deleted inserted replaced
7117:44775b275d45 7118:e094b3d4eb95
     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