-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow skip property name validation
D-Bus specification allow property names not following the same naming restrictions as member names: > Strictly speaking, D-Bus property names are not required to follow > the same naming restrictions as member names, but D-Bus property > names that would not be valid member names (in particular, > GObject-style dash-separated property names) can cause > interoperability problems and should be avoided. https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces For example: ``` xml <interface name=“org.freedesktop.portal.PowerProfileMonitor”> <property type=“b” name=“power-saver-enabled” access=“read” /> <property type=“u” name=“version” access=“read” /> </interface ``` This commit add argument `validate=True` to: - dbus_fast.introspection.Property.__init__ - dbus_fast.introspection.Property.from_xml As well as add argument `validate_property_names=True` to: - dbus_fast.aio.message_bus.MessageBus.introspect - dbus_fast.introspection.Interface.from_xml - dbus_fast.introspection.Node.parse - dbus_fast.message_bus.BaseMessageBus.introspect
- Loading branch information
1 parent
0817235
commit c8cf670
Showing
3 changed files
with
48 additions
and
12 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