This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Inspired by http://code.activestate.com/recipes/578253-an-entry-with-autocompletion-for-the-tkinter-gui/ | |
Changes: | |
- Fixed AttributeError: 'AutocompleteEntry' object has no attribute 'listbox' | |
- Fixed scrolling listbox | |
- Case-insensitive search | |
- Added focus to entry field | |
- Custom listbox length, listbox width matches entry field width | |
- Custom matches function | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
(u'downloads.tryton.org', 1201), | |
(u'github.com', 811), | |
(u'bitbucket.org', 428), | |
(u'launchpad.net', 279), | |
(u'www.doughellmann.com', 255), | |
(u'walco.n--tree.net', 161), | |
(u'prdownloads.sourceforge.net', 156), | |
(u'infrae.com', 150), | |
(u'downloads.sourceforge.net', 139), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Classy - classy classes for JavaScript | |
* | |
* :copyright: (c) 2011 by Armin Ronacher. | |
* :license: BSD. | |
*/ | |
!function (definition) { | |
if (typeof module != 'undefined' && module.exports) module.exports = definition() | |
else if (typeof define == 'function' && typeof define.amd == 'object') define(definition) | |
else this.Class = definition() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{background-color: #465455} // barra superior | |
BUSCA | |
{background-color: #ECEDEF} // campo busca | |
{background-color: #5A6668} // botão busca | |
{background-color: #FFFFFF} // ícone busca | |
{background-color: #2D2D2D} // fundo | |
Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gera_boleto(): | |
import datetime | |
import pyboleto | |
from pyboleto.bank.caixa import BoletoCaixa | |
from pyboleto.pdf import BoletoPDF | |
import os | |
listaDadosCaixa = [] | |
for i in range(2): | |
d = BoletoCaixa() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From eeb8334a9238e04d6b411c5759f5a8cb929effa4 Mon Sep 17 00:00:00 2001 | |
From: MaxMorais <[email protected]> | |
Date: Tue, 9 Dec 2014 16:14:20 -0500 | |
Subject: [PATCH] This commit fix the refresh event for TableControl with more | |
than 100 fields, and allow the support for nested tables | |
--- | |
frappe/public/js/frappe/form/control.js | 78 +++++++++++++++++++++++++-------- | |
frappe/public/js/frappe/form/grid.js | 8 ++-- | |
frappe/public/js/frappe/form/layout.js | 11 ++--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.ui.form.ControlData = frappe.ui.form.ControlData.extend({ | |
format_for_input: function(v, callback){ | |
v = this._super(v, callback); | |
if (v+''==='') return ''; | |
switch (this.df.options){ | |
case('Phone'): | |
if (v+''=='') return ''; | |
// phone may start with + and must only have numbers later, '-' and ' ' are stripped | |
v = v.replace(/ /g, '').replace(/-/g, '').replace(/\(/g, '').replace(/\)/g, ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"country_code": "br", | |
"name": "Plano de Contas Referencial Brasileiro", | |
"is_active": "No", | |
"tree": { | |
"1 - ATIVO": { | |
"1.01 - CIRCULANTE": { | |
"1.01.01 - DISPONIBILIDADES": { | |
"1.01.01.01.00 - Caixa": { | |
"legder_or_group": "Ledger", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
from frappe import _ | |
def get_data(): | |
return [ | |
{ | |
"label": _("Documents"), | |
"icon": "icon-star", | |
"items": [ | |
{ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"fields": [ | |
{ | |
"fields": [ | |
{ | |
"label": "Value", | |
"fieldType": "text", | |
"name": "value" | |
} |