Bases: object
Client version of access for client/server system
| Parameters: |
|
|---|
Ask personis for some information
| Parameters: |
|
|---|---|
| Returns: | a list of matched components |
Delete an existing component in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Raise : |
Delete an existing context
| Parameters: | context – a list giving the path to the required context |
|---|---|
| Returns: | None on success or a string error message on error |
| Raise : |
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
deletes an app
| Returns: | None on success or a string error message on error |
|---|
Delete an existing view in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Parameters: |
|
|---|---|
| Returns: | A json model dump or a string error message on error |
Get context information
| Parameters: |
|
|---|---|
| Returns: | A context, or a string error message on error |
gets permissions for a context (if componentid is None) or a component
| Returns: | a tuple (ask,tell) on success or a string error message on error |
|---|
Return a list of the available resolver names
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Parameters: |
|
|---|---|
| Returns: | A list of subscriptions or a string error message on error |
returns array of registered app names
| Returns: | A list of apps or a string error message on error |
|---|
Make a new component in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Raise : |
Make a new context in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
Make a new view in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
registers a password for an app
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
sets ask/tell permission for a context (if componentid is None) or a component
| Returns: | None on success or a string error message on error |
|---|
set the resolver for a given component in a given context
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Raise : |
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
Tell the model something.
| Parameters: |
|
|---|---|
| Returns: | None on success or a string error message on error |
| Raise : |
component object
| Parameters: |
|
|---|
Bases: object
Connection object
Contains the state of your connection to personis.
| Parameters: |
|
|---|
Note
Http can be used if you need to configure proxies etc. The class needs either uri or credentials to work.
Get the http connection given in the construction, or in set_http
| Returns: | httplib2.Http |
|---|
Set the http connection to use
| Parameters: | http (httplib2.Http) – The http connection to use |
|---|
Is this valid?
| Returns: | boolean – is valid. |
|---|
context object
| Parameters: |
|
|---|
evidence object
| Parameters: |
|
|---|
Evidence can be:
view object
| Parameters: |
|
|---|---|
| Returns: |
| Parameters: |
|
|---|---|
| Returns: |
| Parameters: |
|
|---|---|
| Raise : |
| Parameters: |
|
|---|
| Parameters: |
|
|---|---|
| Returns: | |
| Raise : |
| Parameters: |
|
|---|---|
| Returns: |
| Parameters: |
|
|---|