Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
#
# spyne - Copyright (C) Spyne contributors.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
@ugurcan377
ugurcan377 / gist:3215031
Created July 31, 2012 08:36
Simple Routing API
import logging
logger = logging.getLogger(__name__)
from spyne.model.fault import Fault
from werkzeug.routing import Map
from werkzeug.routing import Rule
class UrlMapNotBinded(Fault):
"""Raised when url_map is not binded to a wsgi environment"""
def __init__(self, faultstring="Please bind url_map first"):
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time
from PyQt4 import QtCore
from PyQt4 import QtGui
from ui_selam import Ui_MainWindow #pyuic'le donusturulmus ui dosyası import edilir
class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self):