ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/dasbus/server
/
usr
lib
python3.9
site-packages
dasbus
server
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
container.py
6.02 MB
chmod
View
DL
Edit
Rename
Delete
handler.py
18.87 MB
chmod
View
DL
Edit
Rename
Delete
interface.py
18.9 MB
chmod
View
DL
Edit
Rename
Delete
property.py
6 MB
chmod
View
DL
Edit
Rename
Delete
publishable.py
1.58 MB
chmod
View
DL
Edit
Rename
Delete
template.py
4.16 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
0 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/dasbus/server/publishable.py
# # Server support for publishable Python objects # # Copyright (C) 2019 Red Hat, Inc. All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 # USA # from abc import ABCMeta, abstractmethod __all__ = ["Publishable"] class Publishable(metaclass=ABCMeta): """Abstract class for Python objects that can be published on DBus. Example: .. code-block:: python # Define a publishable class. class MyObject(Publishable): def for_publication(self): return MyDBusInterface(self) # Create a publishable object. my_object = MyObject() # Publish the object on DBus. DBus.publish_object("/org/project/x", my_object.for_publication()) """ @abstractmethod def for_publication(self): """Return a DBus representation of this object. :return: an instance of @dbus_interface or @dbus_class """ return None
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply