-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc8e7ee
commit 2e9e99e
Showing
7 changed files
with
106 additions
and
53 deletions.
There are no files selected for viewing
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,73 @@ | ||
# encoding: utf-8 | ||
|
||
from ckan import model | ||
from ckanext.metadata import model as model_ext | ||
|
||
METADATA_VALIDATION_ACTIVITY_TYPE = u'metadata validation' | ||
METADATA_WORKFLOW_ACTIVITY_TYPE = u'metadata workflow' | ||
|
||
model_info = { | ||
'organization': { | ||
'desc': u'Organization', | ||
'model': model.Group, | ||
'rev_model': model.GroupRevision, | ||
'table': model.group_table, | ||
'rev_table': model.group_revision_table, | ||
}, | ||
'infrastructure': { | ||
'desc': u'Infrastructure', | ||
'model': model.Group, | ||
'rev_model': model.GroupRevision, | ||
'table': model.group_table, | ||
'rev_table': model.group_revision_table, | ||
}, | ||
'metadata_collection': { | ||
'desc': u'Metadata Collection', | ||
'model': model.Group, | ||
'rev_model': model.GroupRevision, | ||
'table': model.group_table, | ||
'rev_table': model.group_revision_table, | ||
}, | ||
'metadata_record': { | ||
'desc': u'Metadata Record', | ||
'model': model.Package, | ||
'rev_model': model.PackageRevision, | ||
'table': model.package_table, | ||
'rev_table': model.package_revision_table, | ||
}, | ||
'metadata_schema': { | ||
'desc': u'Metadata Schema', | ||
'model': model_ext.MetadataSchema, | ||
'rev_model': model_ext.MetadataSchemaRevision, | ||
'table': model_ext.metadata_schema_table, | ||
'rev_table': model_ext.metadata_schema_revision_table, | ||
}, | ||
'metadata_standard': { | ||
'desc': u'Metadata Standard', | ||
'model': model_ext.MetadataStandard, | ||
'rev_model': model_ext.MetadataStandardRevision, | ||
'table': model_ext.metadata_standard_table, | ||
'rev_table': model_ext.metadata_standard_revision_table, | ||
}, | ||
'workflow_state': { | ||
'desc': u'Workflow State', | ||
'model': model_ext.WorkflowState, | ||
'rev_model': model_ext.WorkflowStateRevision, | ||
'table': model_ext.workflow_state_table, | ||
'rev_table': model_ext.workflow_state_revision_table, | ||
}, | ||
'workflow_transition': { | ||
'desc': u'Workflow Transition', | ||
'model': model_ext.WorkflowTransition, | ||
'rev_model': model_ext.WorkflowTransitionRevision, | ||
'table': model_ext.workflow_transition_table, | ||
'rev_table': model_ext.workflow_transition_revision_table, | ||
}, | ||
'metadata_json_attr_map': { | ||
'desc': u'Metadata JSON Attribute Map', | ||
'model': model_ext.MetadataJSONAttrMap, | ||
'rev_model': model_ext.MetadataJSONAttrMapRevision, | ||
'table': model_ext.metadata_json_attr_map_table, | ||
'rev_table': model_ext.metadata_json_attr_map_revision_table, | ||
}, | ||
} |
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
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
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 |
---|---|---|
@@ -1,19 +0,0 @@ | ||
# encoding: utf-8 | ||
|
||
import ckan.model as ckan_model | ||
import ckanext.metadata.model as ckanext_model | ||
|
||
METADATA_VALIDATION_ACTIVITY_TYPE = u'metadata validation' | ||
METADATA_WORKFLOW_ACTIVITY_TYPE = u'metadata workflow' | ||
|
||
model_map = { | ||
'organization': {'class': ckan_model.Group, 'desc': u'Organization'}, | ||
'infrastructure': {'class': ckan_model.Group, 'desc': u'Infrastructure'}, | ||
'metadata_collection': {'class': ckan_model.Group, 'desc': u'Metadata Collection'}, | ||
'metadata_record': {'class': ckan_model.Package, 'desc': u'Metadata Record'}, | ||
'metadata_schema': {'class': ckanext_model.MetadataSchema, 'desc': u'Metadata Schema'}, | ||
'metadata_standard': {'class': ckanext_model.MetadataStandard, 'desc': u'Metadata Standard'}, | ||
'workflow_state': {'class': ckanext_model.WorkflowState, 'desc': u'Workflow State'}, | ||
'workflow_transition': {'class': ckanext_model.WorkflowTransition, 'desc': u'Workflow Transition'}, | ||
'metadata_json_attr_map': {'class': ckanext_model.MetadataJSONAttrMap, 'desc': u'Metadata JSON Attribute Map'}, | ||
} | ||
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
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
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