The Project-class is derived by AbstractGroup. it is special as it has no children as it is the topmost element in the dataFlow. The project-Node holds a Store of all nodes connected to this project in the database.
method will add a day to the blocked_days list, which will indicate the days at which this user is unavailable for project-work
Parameters: |
|
---|
this method is a reimplementment of DataElement to be able to set the possible connections correctly
method is called by the initializeProject function and will setup all connections inbetween the loaded nodes
this method will make a database request to get all Nodes within a project. in case the all-argument is truned off, it will only create the latest and connected nodes from the dataBase.
it will return a dictionary which looks like this:
{'baseId': {
'versions': {
0:[node_version0]
1: [node_version1]
-1: [pointer to 1]
}
'ids' {
Id1:[node_version1]
Id2:[node_version0]
}
}
}
Parameters: | all (bool) – indicates if the nodes should be filtered |
---|---|
Returns: | dictionary of all Nodes, which looks like in the example above |
Return type: | dictionary |
will return a list of datetime objects, with all blocked dates in it. if given a project, it will be taken to account, wether the projects supports weekend-work or not
Returns: | a list of datetime.date objects, indicating the days at which all users working on this project are blocked from work |
---|---|
Return type: | list |
User is derived by DataElement and defines a Node which holds information about users.
Users can be version-controled and assigned to multiple AbstractAsset-Nodes
method will add a day to the blocked_days list, which will indicate the days at which this user is unavailable for project-work
Parameters: |
|
---|
method assigns this Node to an AbstractAsset node
Returns: | assetList |
---|---|
Return type: | list of baseIds |
method deassigns an AbstractAsset from this User
Returns: | assetList |
---|---|
Return type: | list of baseIds |
method will return a list with all task objects assigned to the current user.
Returns: | all tasks of a user |
---|---|
Return type: | list of AbstractAsset |
will return a list of datetime objects, with all blocked dates in it. if given a project, it will be taken to account, wether the projects supports weekend-work or not
Parameters: | project (Project) – the project which should be added to the list |
---|---|
Returns: | a list of datetime.date objects, indicating the days at which this user is blocked from all project work |
Return type: | list |