I'm trying to build a generic class for that it can be subclassed.

Generic class: http://dpaste.com/123706/
Traceback: http://dpaste.com/123709/
Any idea to fix it?

The idea is execute the statements of grids.Column when the class is
initialized, so it's possible to pass the arguments since a subclass

class FooDataGrid(GenericDataGrid):
   def __init__(self, **kwargs):
       kwargs['model'] = models.Foo
       kwargs['sortable'] = ['pk', 'name']
      super(FooDataGrid, self).__init__(**kwargs)

On 22 feb, 11:02, Christian Hammond <chip...@chipx86.com> wrote:
> Providing a custom DataGrid like this would be a nice addition to Djblets. I
> probably won't be able to spend any time fine-tuning this, but it looks like
> you have a good start. If we got this polished up, I'd definitely include it
> in Djblets.

You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to