This repository has been archived by the owner on Mar 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt at starting the translated documentation
- Loading branch information
Showing
39 changed files
with
3,621 additions
and
0 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,359 @@ | ||
API Documentation | ||
------------------------ | ||
|
||
:mod:`bauble` | ||
============= | ||
.. automodule:: bauble | ||
.. autodata:: bauble.version | ||
.. autodata:: bauble.gui | ||
.. autofunction:: bauble.command_handler | ||
.. autofunction:: bauble.main | ||
.. autofunction:: bauble.main_is_frozen | ||
.. autofunction:: bauble.quit | ||
.. autofunction:: bauble.save_state | ||
|
||
|
||
:mod:`bauble.db` | ||
================ | ||
.. automodule:: bauble.db | ||
.. autodata:: bauble.db.Session | ||
.. autodata:: bauble.db.engine | ||
.. autodata:: bauble.db.Base | ||
.. py:data:: bauble.db.Base | ||
All tables/mappers in Bauble which use the SQLAlchemy declarative | ||
plugin for declaring tables and mappers should derive from this | ||
class. | ||
|
||
An instance of :class:`sqlalchemy.ext.declarative.Base` | ||
|
||
.. autoattribute:: bauble.db.metadata | ||
.. py:data:: bauble.db.metadata | ||
The default metadata for all Bauble tables. | ||
|
||
An instance of :class:`sqlalchemy.schema.MetaData` | ||
|
||
.. autoclass:: bauble.db.MapperBase | ||
.. autoclass:: bauble.db.HistoryExtension | ||
:show-inheritance: | ||
:members: | ||
.. autoclass:: bauble.db.History | ||
:show-inheritance: | ||
.. autofunction:: bauble.db.open | ||
.. autofunction:: bauble.db.create | ||
.. autofunction:: bauble.db.verify_connection | ||
|
||
|
||
:mod:`bauble.connmgr` | ||
======================= | ||
.. automodule:: bauble.connmgr | ||
.. autoclass:: bauble.connmgr.ConnectionManager | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
:mod:`bauble.editor` | ||
======================= | ||
.. automodule:: bauble.editor | ||
.. autofunction:: bauble.editor.default_completion_cell_data_func | ||
.. autofunction:: bauble.editor.default_completion_match_func | ||
.. autoclass:: bauble.editor.ValidatorError | ||
.. autoclass:: bauble.editor.Validator | ||
.. autoclass:: bauble.editor.StringOrNoneValidator | ||
.. autoclass:: bauble.editor.UnicodeOrNoneValidator | ||
.. autoclass:: bauble.editor.IntOrNoneStringValidator | ||
.. autoclass:: bauble.editor.FloatOrNoneStringValidator | ||
.. autoclass:: bauble.editor.GenericEditorView | ||
:members: | ||
.. autoclass:: bauble.editor.GenericEditorPresenter | ||
:members: | ||
.. autoclass:: bauble.editor.GenericModelViewPresenterEditor | ||
:members: | ||
.. autoclass:: bauble.editor.NotesPresenter | ||
:members: | ||
|
||
|
||
:mod:`bauble.i18n` | ||
======================= | ||
.. automodule:: bauble.i18n | ||
|
||
|
||
:mod:`bauble.ui` | ||
======================= | ||
.. automodule:: bauble.ui | ||
.. autoclass:: bauble.ui.GUI | ||
:show-inheritance: | ||
:members: | ||
|
||
|
||
:mod:`bauble.meta` | ||
======================= | ||
.. automodule:: bauble.meta | ||
.. autofunction:: bauble.meta.get_default | ||
.. autoclass:: bauble.meta.BaubleMeta | ||
:show-inheritance: | ||
|
||
|
||
:mod:`bauble.paths` | ||
======================= | ||
.. automodule:: bauble.paths | ||
.. autofunction:: bauble.paths.main_dir | ||
.. autofunction:: bauble.paths.lib_dir | ||
.. autofunction:: bauble.paths.locale_dir | ||
.. autofunction:: bauble.paths.user_dir | ||
|
||
|
||
:mod:`bauble.pluginmgr` | ||
======================= | ||
.. automodule:: bauble.pluginmgr | ||
.. autofunction:: bauble.pluginmgr.register_command | ||
.. autofunction:: bauble.pluginmgr.load | ||
.. autofunction:: bauble.pluginmgr.init | ||
.. autofunction:: bauble.pluginmgr.install | ||
.. autoclass:: bauble.pluginmgr.RegistryEmptyError | ||
.. autoclass:: bauble.pluginmgr.Registry | ||
.. :members: | ||
.. autoclass:: bauble.pluginmgr.RegistryEntry | ||
.. :members: | ||
.. autoclass:: bauble.pluginmgr.Plugin | ||
:members: | ||
.. autoclass:: bauble.pluginmgr.Tool | ||
.. autoclass:: bauble.pluginmgr.View | ||
.. autoclass:: bauble.pluginmgr.CommandHandler | ||
|
||
|
||
:mod:`bauble.prefs` | ||
======================= | ||
.. automodule:: bauble.prefs | ||
.. autodata:: bauble.prefs.default_prefs_file | ||
.. autodata:: bauble.prefs.config_version_pref | ||
.. autodata:: bauble.prefs.date_format_pref | ||
.. autodata:: bauble.prefs.parse_dayfirst_pref | ||
.. autodata:: bauble.prefs.parse_yearfirst_pref | ||
.. autodata:: bauble.prefs.units_pref | ||
|
||
|
||
:mod:`bauble.task` | ||
======================= | ||
.. automodule:: bauble.task | ||
.. autofunction:: bauble.task.queue | ||
.. autofunction:: bauble.task.flush | ||
.. autofunction:: bauble.task.set_message | ||
.. autofunction:: bauble.task.clear_messages | ||
|
||
|
||
:mod:`bauble.types` | ||
======================= | ||
.. automodule:: bauble.types | ||
|
||
.. autoclass:: bauble.types.Enum | ||
:show-inheritance: | ||
.. autoclass:: bauble.types.Date | ||
:show-inheritance: | ||
.. autoclass:: bauble.types.DateTime | ||
:show-inheritance: | ||
|
||
|
||
|
||
:mod:`bauble.utils` | ||
======================= | ||
.. automodule:: bauble.utils | ||
.. autofunction:: bauble.utils.find_dependent_tables | ||
.. autoclass:: bauble.utils.GladeWidgets | ||
.. :members: remove_parent, signal_autoconnect | ||
.. autofunction:: bauble.utils.tree_model_has | ||
.. autofunction:: bauble.utils.search_tree_model | ||
.. autofunction:: bauble.utils.clear_model | ||
.. autofunction:: bauble.utils.combo_set_active_text | ||
.. autofunction:: bauble.utils.set_combo_from_value | ||
.. autofunction:: bauble.utils.combo_get_value_iter | ||
.. autofunction:: bauble.utils.set_widget_value | ||
.. autofunction:: bauble.utils.create_message_dialog | ||
.. autofunction:: bauble.utils.message_dialog | ||
.. autofunction:: bauble.utils.create_yes_no_dialog | ||
.. autofunction:: bauble.utils.yes_no_dialog | ||
.. autofunction:: bauble.utils.create_message_details_dialog | ||
.. autofunction:: bauble.utils.message_details_dialog | ||
.. autofunction:: bauble.utils.setup_text_combobox | ||
.. autofunction:: bauble.utils.setup_date_button | ||
.. autofunction:: bauble.utils.to_unicode | ||
.. autofunction:: bauble.utils.utf8 | ||
.. autofunction:: bauble.utils.xml_safe | ||
.. autofunction:: bauble.utils.xml_safe_utf8 | ||
.. autofunction:: bauble.utils.natsort_key | ||
.. autofunction:: bauble.utils.delete_or_expunge | ||
.. autofunction:: bauble.utils.reset_sequence | ||
.. autofunction:: bauble.utils.make_label_clickable | ||
.. autofunction:: bauble.utils.enum_values_str | ||
.. autofunction:: bauble.utils.which | ||
.. autofunction:: bauble.utils.ilike | ||
.. autofunction:: bauble.utils.range_builder | ||
.. autofunction:: bauble.utils.topological_sort | ||
.. autofunction:: bauble.utils.get_distinct_values | ||
.. autofunction:: bauble.utils.get_invalid_columns | ||
.. autofunction:: bauble.utils.get_urls | ||
|
||
.. autoclass:: GenericMessageBox | ||
:show-inheritance: | ||
:members: | ||
|
||
.. autoclass:: MessageBox | ||
:show-inheritance: | ||
:members: | ||
|
||
.. autoclass:: YesNoMessageBox | ||
:show-inheritance: | ||
:members: | ||
.. autofunction:: bauble.utils.add_message_box | ||
|
||
|
||
:mod:`bauble.view` | ||
================== | ||
.. automodule:: bauble.view | ||
.. autoclass:: bauble.view.Action | ||
:show-inheritance: | ||
:members: | ||
.. autoclass:: bauble.view.InfoBox | ||
:show-inheritance: | ||
:members: on_switch_page, add_expander, update | ||
.. autoclass:: bauble.view.InfoBoxPage | ||
:show-inheritance: | ||
:members: add_expander, get_expander, remove_expander, update | ||
.. autoclass:: bauble.view.InfoExpander | ||
:show-inheritance: | ||
:members: set_widget_value, update | ||
.. autoclass:: bauble.view.PropertiesExpander | ||
:show-inheritance: | ||
:members: update | ||
.. autoclass:: bauble.view.LinksExpander | ||
:show-inheritance: | ||
:members: update | ||
.. autoclass:: bauble.view.SearchView | ||
:show-inheritance: | ||
.. class:: bauble.view.SearchView.ViewMeta | ||
|
||
|
||
:mod:`bauble.search` | ||
==================== | ||
.. autoclass:: bauble.search.SearchParser | ||
:members: parse_string | ||
.. autoclass:: bauble.search.SearchStrategy | ||
:members: | ||
.. autoclass:: bauble.search.MapperSearch | ||
:show-inheritance: | ||
:members: search | ||
.. autoclass:: bauble.search.QueryBuilder | ||
:show-inheritance: | ||
|
||
|
||
:mod:`bauble.plugins.plants` | ||
============================ | ||
.. automodule:: bauble.plugins.plants | ||
|
||
.. autoclass:: bauble.plugins.plants.Family | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.FamilySynonym | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.Genus | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.GenusSynonym | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.Species | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.SpeciesSynonym | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.VernacularName | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.DefaultVernacularName | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.SpeciesDistribution | ||
:show-inheritance: | ||
|
||
.. autoclass:: bauble.plugins.plants.Geography | ||
:show-inheritance: | ||
|
||
|
||
:mod:`bauble.plugins.garden` | ||
============================ | ||
.. automodule:: bauble.plugins.garden | ||
.. autoclass:: bauble.plugins.garden.Accession | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.AccessionNote | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Plant | ||
:show-inheritance: | ||
:members: get_delimiter | ||
.. autoclass:: bauble.plugins.garden.PlantNote | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.PlantChange | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.PlantStatus | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Location | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Propagation | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.PropRooted | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.PropCutting | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.PropSeed | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Source | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.SourceDetail | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Collection | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Verification | ||
:show-inheritance: | ||
.. autoclass:: bauble.plugins.garden.Voucher | ||
:show-inheritance: | ||
|
||
|
||
:mod:`bauble.plugins.abcd` | ||
========================== | ||
.. automodule:: bauble.plugins.abcd | ||
.. autofunction:: bauble.plugins.abcd.validate_xml | ||
.. autofunction:: bauble.plugins.abcd.create_abcd | ||
.. autoclass:: bauble.plugins.abcd.ABCDAdapter | ||
:members: | ||
.. autoclass:: bauble.plugins.abcd.ABCDExporter | ||
|
||
:mod:`bauble.plugins.imex` | ||
========================== | ||
.. automodule:: bauble.plugins.imex | ||
|
||
:mod:`bauble.plugins.report` | ||
============================ | ||
.. automodule:: bauble.plugins.report | ||
|
||
:mod:`bauble.plugins.report.xsl` | ||
==================================== | ||
.. automodule:: bauble.plugins.report.xsl | ||
|
||
:mod:`bauble.plugins.report.mako` | ||
===================================== | ||
.. automodule:: bauble.plugins.report.mako | ||
|
||
:mod:`bauble.plugins.tag` | ||
========================= | ||
.. automodule:: bauble.plugins.tag | ||
.. autofunction:: bauble.plugins.tag.remove_callback | ||
.. autofunction:: bauble.plugins.tag.get_tagged_objects | ||
.. autofunction:: bauble.plugins.tag.untag_objects | ||
.. autofunction:: bauble.plugins.tag.tag_objects | ||
.. autofunction:: bauble.plugins.tag.get_tag_ids | ||
.. autoclass:: bauble.plugins.tag.Tag | ||
.. autoclass:: bauble.plugins.tag.TaggedObj | ||
.. autoclass:: bauble.plugins.tag.TagItemGUI | ||
|
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,36 @@ | ||
Building the source | ||
======================== | ||
|
||
Building a python program is a bit of a contraddiction. You don't normally | ||
`build` nor `compile` a python program, you run it in its environment, and | ||
python will process the modules loaded and produce faster-loading `compiled` | ||
python files. You can, however, produce a Windows executable from a python | ||
script, executable containing the whole python environment and dependencies. | ||
|
||
Building (on Windows) | ||
--------------------- | ||
|
||
1. In order to build a Bauble executable you will first need to download the | ||
source code. For more information about download the Bauble source go to | ||
:doc:`devdl`. | ||
|
||
2. Follow all steps needed to set up a working Bauble environment from | ||
:doc:`installing`, but skip the final `install` step. | ||
|
||
3. instead of `installing` Bauble, you produce a Windows executable. This | ||
is achieved with the ``py2exe`` target, which is only available on | ||
Windows systems:: | ||
|
||
python setup.py py2exe | ||
|
||
4. At this point you can run Bauble. To run the compiled executable run:: | ||
|
||
.\dist\bauble.exe | ||
|
||
or copy the executable to wherever you think appropriate. | ||
|
||
6. To optionally build an NSIS installer package you must install NSIS | ||
from `nsis.sourceforge.net | ||
<http://nsis.sourceforge.net/Download>`_. After installing NSIS | ||
right click on ``.\scripts\build.nsi`` in Explorer and select | ||
*Compile NSIS Script*. |
Oops, something went wrong.