File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ In [Chemtion Repository](https://www.chemotion-repository.net) they relationship
88
99To provide these corrresponding smaple links to the HOME repository, we use this plugin in CKAN, to display hyperlink of the dataset.
1010
11+ ### Database Models
12+ In this Plugin Extension, you will also find database models for interacting by decalring models through SQLAlchemy model
13+ registration.
14+
15+ This plugin provides model classmethods for :
16+ 1 . create row entry
17+ 2 . get related values by package ID
18+ 3 . get alternate names by package ID
19+ ****
1120
1221## Requirements
1322
@@ -59,7 +68,12 @@ To upgrade ckan database, for the tables you have created:
5968
6069You will get a message ` Upgrading DB: SUCCESS ` .
6170
62- Later, check the database list of tables for the ckan user to see the table for the migrated/generated table.
71+ Later, check the database list of tables for the ckan user to see the table for the migrated/generated table.
72+
73+ To Use the database Model in external plugins, import it as one module
74+
75+ `` from ckanext.related_resources.models.related_resources import RelatedResources ``
76+
6377## Config settings
6478
6579None at present
Original file line number Diff line number Diff line change 1616 # Versions should comply with PEP440. For a discussion on single-sourcing
1717 # the version across setup.py and the project code, see
1818 # http://packaging.python.org/en/latest/tutorial.html#version
19- version = '0.0.1 ' ,
19+ version = '0.2.0 ' ,
2020
2121 description = '''An extension for other related resources to be displayed on the dataset table and also extend the table''' ,
2222 long_description = long_description ,
2626 url = 'https://github.com/bhavin/ckanext-related_resources' ,
2727
2828 # Author details
29- author = '''Bhavin''' ,
29+ author = '''Bhavin Katabathuni ''' ,
3030 author_email = '''bhavin2897@gmail.com''' ,
3131
3232 # Choose your license
You can’t perform that action at this time.
0 commit comments