Commit 3d952a7e authored by Vincent Michel's avatar Vincent Michel
Browse files

[file] Remove dependancy to File and filepath, related to #3694093

parent f93b3e5bd87b
......@@ -13,9 +13,7 @@ author_email = 'contact@logilab.fr'
description = 'Cube for genomics data, is part of the Brainomics Project.'
web = 'http://www.cubicweb.org/project/%s' % distname
__depends__ = {'cubicweb': '>= 3.15.1',
'cubicweb-file': None
}
__depends__ = {'cubicweb': '>= 3.15.1',}
__recommends__ = {}
......
# -*- coding: utf-8 -*-
# copyright 2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2014 CEA (Saclay, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
drop_relation_definition('GenomicMeasure', 'results_file', 'File')
remove_cube('file')
......@@ -122,12 +122,10 @@ class GenomicMeasure(EntityType):
identifier = String(required=True, indexed=True, maxsize=64)
type = String(maxsize=256, required=True, indexed=True)
format = String(maxsize=128, indexed=True)
filepath = String(required=True, indexed=True, maxsize=256)
chip_serialnum = Int()
completed = Boolean(indexed=True)
valid = Boolean(indexed=True)
platform = SubjectRelation('GenomicPlatform', cardinality='?*', inlined=True)
results_file = SubjectRelation('File', cardinality='**') # XXX What happens when a 'File' is deleted?
class GenomicPlatform(EntityType):
......
......@@ -26,8 +26,7 @@ class GenomicSchemaTC(CubicWebTC):
"""
req = self.request()
t_gen_meas = req.create_entity('GenomicMeasure', identifier=u'Test gen meas id',
type=u'Test measure type', format=u'raw',
filepath=u'/path/to/test/gen/measure')
type=u'Test measure type', format=u'raw')
t_chrom = req.create_entity('Chromosome', name=u'Test chr 1', identifier=u'chr1')
t_other_chrom = req.create_entity('Chromosome', name=u'Test chr 2', identifier=u'chr2')
t_gen_reg = req.create_entity('GenomicRegion', start=5, stop=1000, width=500,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment