Example #1
0
    def __init__(self, request):
        con = Connection()
        db = con['test_datagrids_db']

        DataGrid.__init__(self, request,
                          MongoQuerySetAdapter(db.groups.find()), "All Groups")
        self.default_sort = "objid"
        self.default_columns = ["objid", "name"]
Example #2
0
 def __init__(self, request):
     DataGrid.__init__(self, request,
                         DictionaryQuerySetAdapter(list(Group.objects.values())),
                         "All Groups")
     self.default_sort = "objid"
     self.default_columns = [
         "objid", "name"
     ]
Example #3
0
    def __init__(self, request):
        con = Connection()
        db = con['test_datagrids_db']

        DataGrid.__init__(self, request,
                            MongoQuerySetAdapter(db.groups.find()),
                            "All Groups")
        self.default_sort = "objid"
        self.default_columns = [
            "objid", "name"
        ]
Example #4
0
 def __init__(self, request):
     DataGrid.__init__(self, request, Group.objects.all(), "All Groups")
     self.default_sort = []
     self.default_columns = ["objid", "name"]
Example #5
0
 def __init__(self, request):
     DataGrid.__init__(self, request, Group.objects.all(), "All Groups")
     self.default_sort = "objid"
     self.default_columns = [
         "objid", "name"
     ]