ftw.tabbedview - Tabbed Views

1,789 views

Published on

Lightning Talk at PloneConf 2012 Arnhem

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,789
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ftw.tabbedview - Tabbed Views

  1. Who am I?Lukas Graf4teamworkBern, Switzerlandhttps://github.com/4teamwork
  2. ftw.tabbedviewDisplays sub views in a set of tabs.
  3. ftw.tabbedview● http://github.com/4teamwork/ftw.tabbedview● Source on GitHub, Released on PyPiIntegrates:● collective.js.extjs● collective.quickupload● ftw.table
  4. Features● Filtering● Sorting● Grouping● Managing columns● Batching● Flexible sources (Catalog/SQLAlchemy/...)● Data transformations (Icon/Author/Dates/...)● Highly configurable
  5. Demo
  6. Code Example: Tabbed Viewclass WorkspacesView(TabbedView): """Tabbed workspaces overview""" def get_tabs(self): return [{id:workspaces}, {id:documents}, {id:events}, {id:sharing},]
  7. class DocumentsTab(Tab): types = [File, ] sort_on = effective sort_reverse = True columns = ( {column: getIcon, sort_index: getContentType, column_title:Type, transform: workspace_helper.icon}, {column: Title, sort_index: sortable_title, transform: helper.link(icon=False, tooltip=True)}, ...
  8. Questions?

×