Get the list of projects in this project. .. note:: If projects have not been pulled, they will be pulled upon calling this. :return: List of Project objects :raises: RuntimeError if there was an error pulling projects
(self)
| 316 | |
| 317 | @property |
| 318 | def projects(self) -> List['project.RemoteProject']: |
| 319 | """ |
| 320 | Get the list of projects in this project. |
| 321 | |
| 322 | .. note:: If projects have not been pulled, they will be pulled upon calling this. |
| 323 | |
| 324 | :return: List of Project objects |
| 325 | :raises: RuntimeError if there was an error pulling projects |
| 326 | """ |
| 327 | if not self.has_pulled_projects: |
| 328 | self.pull_projects() |
| 329 | |
| 330 | count = ctypes.c_size_t() |
| 331 | value = core.BNRemoteGetProjects(self._handle, count) |
| 332 | if value is None: |
| 333 | raise RuntimeError(util._last_error()) |
| 334 | result = [] |
| 335 | for i in range(count.value): |
| 336 | result.append(project.RemoteProject(value[i])) |
| 337 | return result |
| 338 | |
| 339 | def get_project_by_id(self, id: str) -> Optional['project.RemoteProject']: |
| 340 | """ |
nothing calls this directly
no test coverage detected