Changeset a459a2a19cd0f110f245f6c1cbf0a39f6f2a6dad
- Timestamp:
- 03/06/10 17:18:48 (5 months ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- c2f277228ed93d3377c520fa75ba53e51c484254
- Parents:
- 2fd730ea55ee6a1df6b457076c67e4a8edae0580
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2010-03-06T17:18:48Z+0200
- Message:
-
Use opath as primary identification of rooms in studio rooms list
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2fd730e
|
ra459a2a
|
|
| 796 | 796 | goto fail_unref; |
| 797 | 797 | |
| 798 | | if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_STRING, &name)) |
| | 798 | if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_STRING, &opath)) |
| 799 | 799 | goto fail_unref; |
| 800 | 800 | |
| … |
… |
|
| 805 | 805 | goto fail_unref; |
| 806 | 806 | |
| 807 | | if (!dbus_maybe_add_dict_entry_string(&dict_iter, "opath", opath)) |
| | 807 | if (!dbus_maybe_add_dict_entry_string(&dict_iter, "name", name)) |
| 808 | 808 | goto fail_unref; |
| 809 | 809 | |
| … |
… |
|
| 884 | 884 | |
| 885 | 885 | METHOD_ARGS_BEGIN(GetRoomList, "Get list of rooms in this studio") |
| 886 | | METHOD_ARG_DESCRIBE_OUT("room_list", "a(sa{sv})", "List of studio rooms, name and properties") |
| | 886 | METHOD_ARG_DESCRIBE_OUT("room_list", "a(sa{sv})", "List of studio rooms: opaths and properties") |
| 887 | 887 | METHOD_ARGS_END |
| 888 | 888 | |
-
|
r8475365
|
ra459a2a
|
|
| 261 | 261 | for room in studio_iface.GetRoomList(): |
| 262 | 262 | #print repr(room) |
| 263 | | name = room[0] |
| | 263 | opath = room[0] |
| | 264 | name = room[1]["name"] |
| 264 | 265 | if room[1].has_key("template"): |
| 265 | 266 | template = str(room[1]["template"]) |
| … |
… |
|
| 268 | 269 | |
| 269 | 270 | if template: |
| 270 | | print('"%s" from template "%s"' % (name, template)) |
| | 271 | print('"%s" from template "%s" (%s)' % (name, template, opath)) |
| 271 | 272 | else: |
| 272 | | print('"%s"' % name) |
| | 273 | print('"%s" (%s)' % (name, opath)) |
| 273 | 274 | elif arg == 'sdelroom': |
| 274 | 275 | print("--- studio room delete") |