def date_format(value):
     return utils.date_format(value)
 def date_format(value):
     return utils.date_format(value)
예제 #3
0
from flask.ext.security import current_user, login_required, roles_accepted, roles_required
from sqlalchemy import text
from openpyxl import load_workbook
from xhtml2pdf import pisa
from wtforms.validators import Required

from cidadeiluminada.models import User, Role
from cidadeiluminada.protocolos import utils
from cidadeiluminada.protocolos.models import Regiao, Bairro, Logradouro, \
    Poste, ItemManutencao, Protocolo, OrdemServico, Servico, Equipamento, Material, \
    PrecoEquipamento
from cidadeiluminada.base import db

default_formatters = dict(typefmt.BASE_FORMATTERS, **{
    datetime: lambda view, value: utils.datetime_format(value),
    date: lambda view, value: utils.date_format(value),
})

_datetimepicker_locale = json.dumps({
    "applyLabel": "Aplicar",
    "cancelLabel": "Cancelar",
    "fromLabel": "De",
    "toLabel": "Até",
    "customRangeLabel": "Customizar",
    "daysOfWeek": [
        "Dom",
        "Seg",
        "Ter",
        "Qua",
        "Qui",
        "Sex",
예제 #4
0
from sqlalchemy import text
from openpyxl import load_workbook
from xhtml2pdf import pisa
from wtforms.validators import Required

from cidadeiluminada.models import User, Role
from cidadeiluminada.protocolos import utils
from cidadeiluminada.protocolos.models import Regiao, Bairro, Logradouro, \
    Poste, ItemManutencao, Protocolo, OrdemServico, Servico, Equipamento, Material, \
    PrecoEquipamento
from cidadeiluminada.base import db

default_formatters = dict(
    typefmt.BASE_FORMATTERS, **{
        datetime: lambda view, value: utils.datetime_format(value),
        date: lambda view, value: utils.date_format(value),
    })

_datetimepicker_locale = json.dumps({
    "applyLabel":
    "Aplicar",
    "cancelLabel":
    "Cancelar",
    "fromLabel":
    "De",
    "toLabel":
    "Até",
    "customRangeLabel":
    "Customizar",
    "daysOfWeek": ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"],
    "monthNames": [