Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/i/n/inventory-checkin-HEAD/webapp/admin.py   inventory-checkin(Download)
from flask.ext import admin, login, wtf
from flask import flash
from flask.ext.admin.contrib import mongoengine as adminview
from mongoengine.queryset import Q
from models import User, Person, \
def format_prop(context, model, prop_name):
    """Format the field value to a string"""
    if prop_name == 'status':
        return INVENTORY_STATUS[model.status - 1][1]
    elif prop_name == 'group':

src/i/n/inventory-checkin-HEAD/webapp/forms.py   inventory-checkin(Download)
from flask.ext import admin, login, wtf
from flask import url_for, redirect, render_template, request
from models import User, INVENTORY_STATUS, InventoryGroup, InventoryItem
from core import utils
 
    name = wtf.TextField(validators=[wtf.required()])
    identifier = wtf.TextField()
    status = wtf.SelectField(choices=INVENTORY_STATUS, coerce=int)
    comment = wtf.TextAreaField()