Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#943] Rearrange the writing extensions docs
But the different parts into different pages
- Loading branch information
Sean Hammond
committed
Aug 29, 2013
1 parent
6c274d3
commit d29564e
Showing
16 changed files
with
119 additions
and
146 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
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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
------------------------------------- | ||
Best practices for writing extensions | ||
------------------------------------- | ||
|
||
Follow CKAN's coding standards | ||
============================== | ||
|
||
See :ref:`coding standards`. | ||
|
||
Use the plugins toolkit instead of importing CKAN | ||
================================================= | ||
|
||
Try to limit your extension to interacting with CKAN only through CKAN's | ||
:doc:`plugin interfaces <plugin-interfaces>` and | ||
:doc:`plugins toolkit <plugins-toolkit>`. It's a good idea to keep your | ||
extension code separate from CKAN as much as possible, so that internal changes | ||
in CKAN from one release to the next don't break your extension. | ||
|
||
|
||
Don't edit CKAN's database tables | ||
================================= | ||
|
||
An extension can create its own tables in the CKAN database, but it should | ||
write to core CKAN tables directly, add columns to core tables, or use foreign | ||
keys against core tables. | ||
|
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,7 @@ | ||
Converter functions reference | ||
============================= | ||
|
||
.. automodule:: ckan.logic.converters | ||
:members: | ||
:undoc-members: | ||
|
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,32 @@ | ||
======================= | ||
Writing CKAN extensions | ||
======================= | ||
|
||
CKAN can be modified and extended using extensions. Some **core extensions** | ||
come packaged with CKAN. Core extensions don't need to be installed before you | ||
can use them as they're installed when you install CKAN, they can simply be | ||
enabled by following the setup instructions in each extension's documentation | ||
(some core extensions are already enabled by default). For example, the | ||
:doc:`datastore extension </datastore>`, :doc:`multilingual extension | ||
</multilingual>`, and :doc:`stats extension </stats>` are all core extensions, | ||
and the :doc:`data viewer </data-viewer>` also uses core extensions to enable | ||
data previews for different file formats. | ||
|
||
**External extensions** are CKAN extensions that don't come packaged with | ||
CKAN, but must be downloaded and installed separately. A good place to find | ||
external extensions is the | ||
`list of extensions on the CKAN wiki <https://github.com/okfn/ckan/wiki/List-of-extensions>`_. | ||
Again, follow each extension's own documentation to install, setup and use the | ||
extension. | ||
|
||
This document covers everything you need to know to write your own CKAN | ||
extensions. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
tutorial | ||
best-practices | ||
plugin-interfaces | ||
plugins-toolkit | ||
converters |
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,9 @@ | ||
Plugin interfaces reference | ||
=========================== | ||
|
||
.. automodule:: ckan.plugins.core | ||
:members: SingletonPlugin, Plugin, implements | ||
|
||
.. automodule:: ckan.plugins.interfaces | ||
:members: | ||
|
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.