[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Sebastian Krzyszkowiak
seba.dos1 at gmail.com
Sat Aug 6 08:18:53 UTC 2011
The following commit has been merged in the debian branch:
commit b535c285911d6fa9f38acb5fee4d851ff0aec857
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Sun Dec 6 22:16:12 2009 +0100
opimd: Generic: implement list_fields_with_type method
diff --git a/framework/subsystems/opimd/pimd_generic.py b/framework/subsystems/opimd/pimd_generic.py
index a4efd8e..1b8a53e 100644
--- a/framework/subsystems/opimd/pimd_generic.py
+++ b/framework/subsystems/opimd/pimd_generic.py
@@ -702,6 +702,14 @@ class GenericDomain():
def list_fields(self):
return self.FieldTypes
+ @classmethod
+ def list_fields_with_type(self, type):
+ fields = []
+ for field in self.FieldTypes:
+ if self.FieldTypes[field]==type:
+ fields.appends(field)
+ return fields
+
def enumerate_items(self, backend):
"""Enumerates all entry data belonging to a specific backend
@@ -983,6 +991,10 @@ class GenericDomain():
def List(self):
return self.list_fields()
+ @dbus_method(_DIN_FIELDS, "s", "as")
+ def ListFieldsWithType(self, type):
+ return self.list_fields_with_type(type)
+
@dbus_method(_DIN_FIELDS, "s", "")
def Delete(self, name):
self.remove_field(name)
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list