Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crm plugin crm query resource support
- Loading branch information
1 parent
2b695e8
commit 00141f8
Showing
5 changed files
with
110 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
CRM Query | ||
========= | ||
|
||
Supported starting from version 1.0.0 and only available if `CRM plugin <http://redminecrm.com/ | ||
projects/crm/pages/1>`_ of version 3.3.0 and higher is installed. | ||
|
||
Manager | ||
------- | ||
|
||
All operations on the crm query resource are provided via it's manager. To get access to | ||
it you have to call ``redmine.crm_query`` where ``redmine`` is a configured redmine object. | ||
See the :doc:`../configuration` about how to configure redmine object. | ||
|
||
Create methods | ||
-------------- | ||
|
||
Not supported by CRM plugin | ||
|
||
Read methods | ||
------------ | ||
|
||
get | ||
+++ | ||
|
||
Not supported by CRM plugin | ||
|
||
all | ||
+++ | ||
|
||
Not supported by CRM plugin | ||
|
||
filter | ||
++++++ | ||
|
||
.. py:method:: filter(**filters) | ||
:module: redmine.managers.ResourceManager | ||
:noindex: | ||
|
||
Returns crm query resources that match the given lookup parameters. | ||
|
||
:param string resource: | ||
.. raw:: html | ||
|
||
(required). Get crm queries for the requested resource. Available resources are: | ||
|
||
- contact | ||
- deal | ||
|
||
:param integer limit: (optional). How much resources to return. | ||
:param integer offset: (optional). Starting from what resource to return the other resources. | ||
:return: ResourceSet object | ||
|
||
.. code-block:: python | ||
>>> queries = redmine.crm_query.filter(resource='contact') | ||
>>> queries | ||
<redmine.resultsets.ResourceSet object with CrmQuery resources> | ||
Update methods | ||
-------------- | ||
|
||
Not supported by CRM plugin | ||
|
||
Delete methods | ||
-------------- | ||
|
||
Not supported by CRM plugin |
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 |
---|---|---|
|
@@ -52,3 +52,4 @@ Resources | |
contact_tag | ||
deal_status | ||
deal_category | ||
crm_query |
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