This file contains hidden or 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
| /* Brazilian initialisation for the jQuery UI date picker plugin. */ | |
| /* Written by Leonildo Costa Silva ([email protected]). */ | |
| jQuery(function($){ | |
| $.datepicker.regional['pt-BR'] = { | |
| closeText: 'Fechar', | |
| prevText: '<Anterior', | |
| nextText: 'Próximo>', | |
| currentText: 'Hoje', | |
| monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', | |
| 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], |
This file contains hidden or 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
| # coding: utf-8 | |
| from weasyprint import HTML, CSS | |
| def get_page_body(boxes): | |
| for box in boxes: | |
| if box.element_tag == 'body': | |
| return box |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>test upload by chunk</title> | |
| </head> | |
| <body> | |
| <input type="file" id="f" /> | |
| <script src="script.js"></script> |
This file contains hidden or 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 django import forms | |
| class EmptyChoiceField(forms.ChoiceField): | |
| def __init__(self, choices=(), empty_label=None, required=True, widget=None, label=None, | |
| initial=None, help_text=None, *args, **kwargs): | |
| # prepend an empty label if it exists (and field is not required!) | |
| if not required and empty_label is not None: | |
| choices = tuple([(u'', empty_label)] + list(choices)) |
NewerOlder