tba.
This module registers all services. if you write a new Service object add the name of your service-module in the __all list as well
the abstractService class defines in which way a Service will search for requests to define a new Service inherit this service object and name all your request-functions like:
1 | def reguest_YOURREQUESTNAME(self, YOURARGS): 2 | ...
method will call the instance method request_REQUEST(kwargs) in case it cannot find that function it will raise a PipeLionServerException
Parameters: |
|
---|---|
Returns: | returnValue of request_REQUEST(kwargs) or PipeLionServerException |
Return type: | variant object |
StandardServices holds requests which are all about basic dataBase requests like creating tables, adding entries or saving entries
return the whole project table of a given project
Parameters: | project (string) – name of the project |
---|---|
Returns: | list of tuples |
Return type: | list |
get an entry of a given project table
Parameters: |
|
---|---|
Returns: | list of dictionaries |
Return type: | list |
return the whole project table of a given project
Parameters: | project (string) – name of the project |
---|---|
Returns: | list of tuples |
Return type: | list |
getUserEntry will return a certain entry in the user-table depending on the given baseId
Parameters: | baseId (string) – dotNotation of the baseId of the desired user |
---|---|
Returns: | list of dictionaries holding all versions of a certain baseId |
Return type: | list |
request will return the user table
Returns: | list of tuples |
---|---|
Return type: | list |
request to add an entry to the dataBas :param project: name of the project :type project: string :param tableEntries: tuple of six entries: (id, name, type, version, baseId, assetDict) :type tableEntries: tuple
Returns: | empty list |
---|---|
Return type: | list |
request will add a table to the dataBase :param project: name of the project :type project: string :param type: type should be either ‘user’ or ‘project’ :type type: string
wrapper around the insertTable request, to create a new user-table
wrapper around tableExists
Parameters: | name (string) – name of the project or if type is ‘user’ name should be ‘user’ as well |
---|---|
Returns: | True/False |
Return type: | bool |
returnes True or False depending on the existence of a given table
Parameters: |
|
---|---|
Returns: | True/False |
Return type: | bool |
IdServices holds server requests for generating Ids centrrally. It should be used to generate new unique ids. all id’s will be registred in the __idManager object.
use this function to register a new Id :param id: id which will be registred on the server :type id: Id
Returns: | returns the registred Id |
---|---|
Return type: | Id |
this will register an Id from a dotnotation. This function allows it to create double Ids on the server, using the force argument
Parameters: |
|
---|---|
Returns: | returns the newly registred Id |
Return type: | Id |
this request will return a list of all Ids currently registred
Returns: | list of all Ids currently registred |
---|---|
Return type: | list |
request removes all registred Ids from the server
Returns: | None |
---|---|
Return type: | None |
request will return all Ids within a certain range. For default it will return all registred Ids
Parameters: |
|
---|---|
Returns: | list of Ids |
Return type: | list |
this will return the last x Ids registred. x is given by number.
Parameters: | number (int) – number defines how many Ids will be returned |
---|---|
Returns: | list of Ids |
Return type: | list |
request returns a new id
Parameters: |
|
---|---|
Returns: | new unique Id |
Return type: | Id |
this request will return the last Id which was registred
Returns: | last registred Id |
---|---|
Return type: | Id |
The AssetServices hold requests about assets like getting all versions of an asset getting a certain asset or getting all assets from a project
method is a wrapper around the getAllAssetsFromProject request. It filters its return by assets which are the latest or the latest needed.
Parameters: | project (string) – name of the project, which should be searched |
---|---|
Returns: | list of dictionaries. Filtered return value of getAllAssetsFromProject |
Return type: | list |
similar to the getProjectNodes request, but will return a list dictionaries of all nodes within a project
Parameters: | project (string) – name of the project of which all Nodes should be returned |
---|---|
Returns: | list of dictionaries |
Return type: | list |
this request will return a list of dictionaries of all Nodes within a given project with the same baseId sorted by the different version numbers.
Parameters: |
|
---|---|
Returns: | sorted list of dictionaries, holding all versions of a certain asset. |
Return type: | list |
this request is a wrapper around the getAllVersionsOfAsset request, and will return the number of the latest existing version of an asset
Parameters: |
|
---|---|
Returns: | number of the latest existing version |
Return type: | int |
this service will return a dictionary with all infornation needed to recreate the project-node given by the project arguent.
Parameters: | project (string) – name of the project which should be returned |
---|---|
Returns: | dictionary of the project Node |
Return type: | dictionary |
‘
UserServices holds requests which are all about Users.
request will return all users saved in the database
Returns: | list of all Users |
---|---|
Return type: | list |
this request will return a list of dictionaries of all Nodes within a given project with the same baseId sorted by the different version numbers.
Parameters: |
|
---|---|
Returns: | sorted list of dictionaries, holding all versions of a certain asset. |
Return type: | list |
request will return a certain user, defined by its baseId
Parameters: | id (string) – dotNotation baseId of the user who should be returned |
---|---|
Returns: | latest version of the user with the given baseId |
Return type: | dictionary |
find a user by its username and return it’s latest version.
Parameters: | name (string) – username of the user |
---|---|
Returns: | latest version of the user with the given baseId |
Return type: | dictionary |
request is a wrapper of request_getUser to get multiple users with one request
Parameters: | listOfIds (list of string) – list of dotNotations describing the users |
---|---|
Returns: | a list of dictionaries holding all information about each user |
Return type: | list of dictionaries |
UserServices holds requests which are all about plugins.
request will return all asset-plugins with User/Project and Abstract filtered out
Returns: | list of all asset-plugins currently installed |
---|---|
Return type: | list of strings |
request will return all connection-plugins
Returns: | list of all connection-plugins currently installed |
---|---|
Return type: | list of strings |
request will return the class to the given className. The class must be found in the asset-plugins of the pipeLion
Parameters: | className (string) – name of the class, which shoulld be returned |
---|---|
Returns: | the class containing to the given className |
Return type: | class |
request will return the class to the given className. The class must be found in the connection-plugins of the pipeLion
Parameters: | className (string) – name of the class, which shoulld be returned |
---|---|
Returns: | the class containing to the given className |
Return type: | class |