Commit ce18c82
committed
Make code generator handle members where name cannot be converted back
Certain member names like `GetURL` will be converted to Python name
`get_url` but when converted back it will become `GetUrl`. This will
cause methods and properties with those names be unaccessible.
However, method, properties and signals allow setting the D-Bus
name instead of relying on auto conversion. Make code generator
use those arguments where auto conversion does not produce equal
names between D-Bus and Python.
Reported by @nicomuns.1 parent c6b3705 commit ce18c82
File tree
3 files changed
+25
-9
lines changed- src/sdbus
3 files changed
+25
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
233 | | - | |
234 | | - | |
| 232 | + | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
| |||
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | | - | |
266 | | - | |
| 263 | + | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
| |||
591 | 597 | | |
592 | 598 | | |
593 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
594 | 603 | | |
595 | 604 | | |
596 | 605 | | |
| |||
601 | 610 | | |
602 | 611 | | |
603 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
604 | 616 | | |
605 | 617 | | |
606 | 618 | | |
| |||
709 | 721 | | |
710 | 722 | | |
711 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
712 | 727 | | |
713 | 728 | | |
714 | 729 | | |
| |||
0 commit comments