Skip to content

Commit 340bf5e

Browse files
committed
Update readme & version
1 parent 48405c1 commit 340bf5e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ In [Chemtion Repository](https://www.chemotion-repository.net) they relationship
88

99
To 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

6069
You 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

6579
None at present

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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,
@@ -26,7 +26,7 @@
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

0 commit comments

Comments
 (0)