17 """ |
17 """ |
18 |
18 |
19 name: str # name of the project |
19 name: str # name of the project |
20 file: str # project file name |
20 file: str # project file name |
21 uid: str # unique identifier |
21 uid: str # unique identifier |
22 master: bool = False # flag indicating the main project |
22 main: bool = False # flag indicating the main project |
23 description: str = "" # description of the project |
23 description: str = "" # description of the project |
24 category: str = "" # name of the group |
24 category: str = "" # name of the group |
25 removed: bool = False # flag indicating a (re-)moved project |
25 removed: bool = False # flag indicating a (re-)moved project |
26 |
26 |
27 def as_dict(self): |
27 def as_dict(self): |
45 """ |
45 """ |
46 return cls( |
46 return cls( |
47 name=data["name"], |
47 name=data["name"], |
48 file=data["file"], |
48 file=data["file"], |
49 uid=data["uid"], |
49 uid=data["uid"], |
50 master=data.get("master", False), |
50 main=data.get("main", False), |
51 description=data.get("description", ""), |
51 description=data.get("description", ""), |
52 category=data.get("category", ""), |
52 category=data.get("category", ""), |
53 removed=data.get("removed", False), |
53 removed=data.get("removed", False), |
54 ) |
54 ) |