-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added checks: - D101 _Missing docstring in public class_ - D209 _Multi-line docstring closing quotes should be on a separate line_ - D210 _No whitespaces allowed surrounding docstring text_ - D404 _First word of the docstring should not be "This"_ --------- Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
- Loading branch information
Showing
24 changed files
with
144 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
""" Version of nc_py_api.""" | ||
"""Version of nc_py_api.""" | ||
|
||
__version__ = "0.0.27.dev2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Nextcloud API for User Interface.""" | ||
|
||
from dataclasses import dataclass | ||
|
||
from ._session import NcSessionApp | ||
from .gui_files import GuiFilesActionsAPI | ||
|
||
|
||
@dataclass | ||
class GuiApi: | ||
"""Class that encapsulates all UI functionality.""" | ||
|
||
files_dropdown_menu: GuiFilesActionsAPI | ||
|
||
def __init__(self, session: NcSessionApp): | ||
self.files_dropdown_menu = GuiFilesActionsAPI(session) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Definitions related to the Graphical User Interface.""" | ||
from pydantic import BaseModel | ||
|
||
|
||
class GuiActionFileInfo(BaseModel): | ||
"""File Information Nextcloud sends to the External Application.""" | ||
|
||
fileId: int | ||
name: str | ||
directory: str | ||
etag: str | ||
mime: str | ||
favorite: str | ||
permissions: int | ||
|
||
|
||
class GuiFileActionHandlerInfo(BaseModel): | ||
"""Action information Nextcloud sends to the External Application.""" | ||
|
||
actionName: str | ||
actionHandler: str | ||
actionFile: GuiActionFileInfo |
24 changes: 3 additions & 21 deletions
24
nc_py_api/ui_files_actions_menu.py → nc_py_api/gui_files.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.