forked from inveniosoftware/invenio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request inveniosoftware#2 from greut/fixtures
Fixtures from invenio_demosite.
- Loading branch information
Showing
14 changed files
with
14,928 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .bibauthorid import * | ||
from .bibclassify import * | ||
from .bibexport import * | ||
from .bibknowledge import * | ||
from .bibrank import * | ||
from .oai_harvest import * | ||
from .webjournal import * | ||
from .websearch import * | ||
from .websession import * | ||
from .websubmit import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
## This file is part of Invenio. | ||
## Copyright (C) 2013 CERN. | ||
## | ||
## Invenio is free software; you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as | ||
## published by the Free Software Foundation; either version 2 of the | ||
## License, or (at your option) any later version. | ||
## | ||
## Invenio 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 | ||
## General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with Invenio; if not, write to the Free Software Foundation, Inc., | ||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | ||
|
||
from fixture import DataSet | ||
|
||
|
||
class AidPERSONIDDATAData(DataSet): | ||
|
||
class AidPERSONIDDATA_1_uid: | ||
tag = u'uid' | ||
personid = 1L | ||
data = u'2' | ||
|
||
class AidPERSONIDDATA_2_uid: | ||
tag = u'uid' | ||
personid = 2L | ||
data = u'1' | ||
|
||
class AidPERSONIDDATA_3_uid: | ||
tag = u'uid' | ||
personid = 3L | ||
data = u'4' | ||
|
||
class AidPERSONIDDATA_4_uid: | ||
tag = u'uid' | ||
personid = 4L | ||
data = u'5' | ||
|
||
class AidPERSONIDDATA_5_uid: | ||
tag = u'uid' | ||
personid = 5L | ||
data = u'6' | ||
|
||
class AidPERSONIDDATA_6_uid: | ||
tag = u'uid' | ||
personid = 6L | ||
data = u'7' | ||
|
||
class AidPERSONIDDATA_7_uid: | ||
tag = u'uid' | ||
personid = 7L | ||
data = u'8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
## This file is part of Invenio. | ||
## Copyright (C) 2013 CERN. | ||
## | ||
## Invenio is free software; you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as | ||
## published by the Free Software Foundation; either version 2 of the | ||
## License, or (at your option) any later version. | ||
## | ||
## Invenio 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 | ||
## General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with Invenio; if not, write to the Free Software Foundation, Inc., | ||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | ||
|
||
from fixture import DataSet | ||
from .websearch import CollectionData | ||
|
||
|
||
class ClsMETHODData(DataSet): | ||
|
||
class ClsMETHOD_1: | ||
id = 1 | ||
last_updated = None | ||
description = u'High Energy Physics Taxonomy' | ||
name = u'HEP' | ||
location = u'http://invenio-software.org/download/invenio-demo-site-files/HEP.rdf' | ||
|
||
class ClsMETHOD_2: | ||
id = 2 | ||
last_updated = None | ||
description = u'NASA Subjects' | ||
name = u'NASA-subjects' | ||
location = u'http://invenio-software.org/download/invenio-demo-site-files/NASA-subjects.rdf' | ||
|
||
|
||
class CollectionClsMETHODData(DataSet): | ||
|
||
class CollectionClsMETHOD_12_2: | ||
id_clsMETHOD = ClsMETHODData.ClsMETHOD_2.ref('id') | ||
id_collection = CollectionData.experimentalPhysics.ref('id') | ||
|
||
class CollectionClsMETHOD_2_1: | ||
id_clsMETHOD = ClsMETHODData.ClsMETHOD_1.ref('id') | ||
id_collection = CollectionData.preprints.ref('id') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.