Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(59)  |  Call(48)  |  Derive(5)  |  Import(6)

src/r/a/ralph-1.2.9/src/ralph/cmdb/views_archive.py   ralph(Download)
from __future__ import unicode_literals
 
from bob.data_table import DataTableMixin, DataTableColumn
from bob.menu import MenuItem, MenuHeader
 
class ArchivedAssetsChanges(BaseCMDBArchiveView):
    model = ArchivedCIChange
    columns = [
        DataTableColumn(
            'CI',
        ),
        DataTableColumn(
            'Created',
            field='created',
            sort_expression='created',
            bob_tag=True,
        ),
        DataTableColumn(
            'Time',
        ),
        DataTableColumn(
            'User',
            bob_tag=True,
        ),

src/r/a/ralph_assets-HEAD/src/ralph_assets/views_sam.py   ralph_assets(Download)
import urllib
 
from bob.data_table import DataTableColumn
from django.contrib import messages
from django.http import HttpResponseRedirect
class SoftwareCategoryNameColumn(DataTableColumn):
    """A column with software category name linking to the search of
    licences"""
 
    def render_cell_content(self, resource):
class LicenceLinkColumn(DataTableColumn):
    """A column that links to the edit page of a licence simply displaying
    'Licence' in a grid"""
    def render_cell_content(self, resource):
        return '<a href="{url}">{licence}</a>'.format(
class CheckBoxColumn(DataTableColumn):
    """A column to select items in a grid"""
    def render_cell_content(self, resource):
        return '<input type="checkbox" name="select" value="{}">'.format(
            resource.id,
        ),
        DataTableColumn(
            _('Inventory number'),
            bob_tag=True,
            field='niw',

src/r/a/ralph-1.2.9/src/ralph/cmdb/views_changes.py   ralph(Download)
from urlparse import urljoin
 
from bob.data_table import DataTableMixin, DataTableColumn
 
from django.conf import settings

src/r/a/ralph-1.2.9/src/ralph/cmdb/util.py   ralph(Download)
 
from django.db.models import Q
from bob.data_table import DataTableMixin, DataTableColumn
from ralph.cmdb.models import CI
 

src/r/a/ralph_assets-HEAD/src/ralph_assets/views.py   ralph_assets(Download)
 
from collections import Counter
from bob.data_table import DataTableColumn, DataTableMixin
from bob.menu import MenuItem, MenuHeader
from bob.views import DependencyView
class DataTableColumnAssets(DataTableColumn):
    """
    A container object for all the information about a columns header
 
    :param foreign_field_name - set if field comes from foreign key

src/r/a/ralph_assets-1.2.13/src/ralph_assets/views.py   ralph_assets(Download)
from collections import Counter
 
from bob.data_table import DataTableColumn, DataTableMixin
from bob.menu import MenuItem, MenuHeader
from django.contrib import messages
class DataTableColumnAssets(DataTableColumn):
    """
    A container object for all the information about a columns header
 
    :param foreign_field_name - set if field comes from foreign key