[Bug 47100] New: add a way to create accounts with properties, without knowing property names/namespaces

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 8 16:13:46 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47100

             Bug #: 47100
           Summary: add a way to create accounts with properties, without
                    knowing property names/namespaces
    Classification: Unclassified
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: tp-glib
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: simon.mcvittie at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org
                CC: alban.crequy at collabora.co.uk,
                    jonny.lamb at collabora.co.uk
            Blocks: 31668


+++ This bug was initially created as a clone of Bug #30422 +++

There should be a less D-Bus-API-dependent way to create accounts with
specified values for properties. Something like this, perhaps (in pygi-like
pseudocode):

    future = Tp.FutureAccount(Tp.AccountManager.dup(),
        "gabble", "jabber")

    future.set_display_name('Main Jabber account')
    future.set_parameter('account', 'me at example.com')
    future.set_requested_presence(AVAILABLE, 'available', "hello, I'm new
here")
    ...

    def created_cb(future_, result, data):
        account = future.create_finish(result)

    future.create_async(created_cb, None)

Perhaps this should be the only replacement for
AccountManager.create_account_async? If so, it blocks Bug #30422, which wants
to eventually get rid of create_account_async and other functions relying on
dbus-glib GValue semantics.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list