Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2534 (closed enhancement: migrated)

Opened 8 years ago

Last modified 8 years ago

[Patch] DataGrid, Enable missing attributes in attributewrapper

Reported by: ghorvath Owned by: Chris Arndt
Priority: normal Milestone: __unclassified__
Component: TG Widgets Version: 1.1 HEAD
Severity: normal Keywords:
Cc:

Description

Wenn using dotted atrribute access (ex. "daddy.child") , there can be situations where attributes (ex. "child") are not present because daddy is none. (ex. ForeignKey?) Currently an AttributeError? is raised. I propose this patch, which tolerates missing attributes and displays nothing, if the attribute is not set.

Attachments

datagrid.diff Download (468 bytes) - added by ghorvath 8 years ago.
Patch datagrid.py

Change History

Changed 8 years ago by ghorvath

Patch datagrid.py

comment:1 Changed 8 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to migrated
Note: See TracTickets for help on using tickets.