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 jsonrpclib import Server as ServerProxy | |
import base64 | |
import jsonrpclib | |
import json | |
class AdminTrytonException(Exception): | |
def __init__(self, result): | |
self.result = result |
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
#!/usr/bin/env python2 | |
import csv | |
from proteus import config, Model, Wizard | |
from xmlrpclib import Fault | |
from datetime import date | |
def init_database(module_name): | |
Module = Model.get('ir.module.module') | |
(school_module,) = Module.find([('name', '=', module_name)]) |
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 libqtile.manager import Key, Screen, Group, Drag, Click | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget, hook | |
follow_mouse_focus = False | |
mod = "mod4" | |
keys = [ | |
Key([mod], "w", lazy.window.kill()), |
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
#!/bin/env python2 | |
"""Tools to output sql data to xls files.""" | |
from xlwt import Workbook, easyxf | |
def build_worksheet(cursor , book, sheet_name='new_sheet'): | |
"""Save results from an sql select query into a worksheet. | |
cursor -- a database cursor where a select has been executed. | |
book -- the workbook to attach the sheet to. |
NewerOlder