repo_name
stringlengths 5
100
| ref
stringlengths 12
67
| path
stringlengths 4
244
| copies
stringlengths 1
8
| content
stringlengths 0
1.05M
⌀ |
---|---|---|---|---|
GitHublong/hue | refs/heads/master | desktop/core/ext-py/MySQL-python-1.2.5/tests/test_MySQLdb_nonstandard.py | 41 | import unittest
import _mysql
import MySQLdb
from MySQLdb.constants import FIELD_TYPE
from configdb import connection_factory
import warnings
warnings.simplefilter("ignore")
class TestDBAPISet(unittest.TestCase):
def test_set_equality(self):
self.assertTrue(MySQLdb.STRING == MySQLdb.STRING)
def test_set_inequality(self):
self.assertTrue(MySQLdb.STRING != MySQLdb.NUMBER)
def test_set_equality_membership(self):
self.assertTrue(FIELD_TYPE.VAR_STRING == MySQLdb.STRING)
def test_set_inequality_membership(self):
self.assertTrue(FIELD_TYPE.DATE != MySQLdb.STRING)
class CoreModule(unittest.TestCase):
"""Core _mysql module features."""
def test_NULL(self):
"""Should have a NULL constant."""
self.assertEqual(_mysql.NULL, 'NULL')
def test_version(self):
"""Version information sanity."""
self.assertTrue(isinstance(_mysql.__version__, str))
self.assertTrue(isinstance(_mysql.version_info, tuple))
self.assertEqual(len(_mysql.version_info), 5)
def test_client_info(self):
self.assertTrue(isinstance(_mysql.get_client_info(), str))
def test_thread_safe(self):
self.assertTrue(isinstance(_mysql.thread_safe(), int))
class CoreAPI(unittest.TestCase):
"""Test _mysql interaction internals."""
def setUp(self):
self.conn = connection_factory(use_unicode=True)
def tearDown(self):
self.conn.close()
def test_thread_id(self):
tid = self.conn.thread_id()
self.assertTrue(isinstance(tid, int),
"thread_id didn't return an int.")
self.assertRaises(TypeError, self.conn.thread_id, ('evil',),
"thread_id shouldn't accept arguments.")
def test_affected_rows(self):
self.assertEquals(self.conn.affected_rows(), 0,
"Should return 0 before we do anything.")
#def test_debug(self):
## FIXME Only actually tests if you lack SUPER
#self.assertRaises(MySQLdb.OperationalError,
#self.conn.dump_debug_info)
def test_charset_name(self):
self.assertTrue(isinstance(self.conn.character_set_name(), str),
"Should return a string.")
def test_host_info(self):
self.assertTrue(isinstance(self.conn.get_host_info(), str),
"Should return a string.")
def test_proto_info(self):
self.assertTrue(isinstance(self.conn.get_proto_info(), int),
"Should return an int.")
def test_server_info(self):
self.assertTrue(isinstance(self.conn.get_server_info(), str),
"Should return an str.")
|
kxxoling/fabric | refs/heads/chs | tests/Python26SocketServer.py | 21 | """Generic socket server classes.
This module tries to capture the various aspects of defining a server:
For socket-based servers:
- address family:
- AF_INET{,6}: IP (Internet Protocol) sockets (default)
- AF_UNIX: Unix domain sockets
- others, e.g. AF_DECNET are conceivable (see <socket.h>
- socket type:
- SOCK_STREAM (reliable stream, e.g. TCP)
- SOCK_DGRAM (datagrams, e.g. UDP)
For request-based servers (including socket-based):
- client address verification before further looking at the request
(This is actually a hook for any processing that needs to look
at the request before anything else, e.g. logging)
- how to handle multiple requests:
- synchronous (one request is handled at a time)
- forking (each request is handled by a new process)
- threading (each request is handled by a new thread)
The classes in this module favor the server type that is simplest to
write: a synchronous TCP/IP server. This is bad class design, but
save some typing. (There's also the issue that a deep class hierarchy
slows down method lookups.)
There are five classes in an inheritance diagram, four of which represent
synchronous servers of four types:
+------------+
| BaseServer |
+------------+
|
v
+-----------+ +------------------+
| TCPServer |------->| UnixStreamServer |
+-----------+ +------------------+
|
v
+-----------+ +--------------------+
| UDPServer |------->| UnixDatagramServer |
+-----------+ +--------------------+
Note that UnixDatagramServer derives from UDPServer, not from
UnixStreamServer -- the only difference between an IP and a Unix
stream server is the address family, which is simply repeated in both
unix server classes.
Forking and threading versions of each type of server can be created
using the ForkingMixIn and ThreadingMixIn mix-in classes. For
instance, a threading UDP server class is created as follows:
class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass
The Mix-in class must come first, since it overrides a method defined
in UDPServer! Setting the various member variables also changes
the behavior of the underlying server mechanism.
To implement a service, you must derive a class from
BaseRequestHandler and redefine its handle() method. You can then run
various versions of the service by combining one of the server classes
with your request handler class.
The request handler class must be different for datagram or stream
services. This can be hidden by using the request handler
subclasses StreamRequestHandler or DatagramRequestHandler.
Of course, you still have to use your head!
For instance, it makes no sense to use a forking server if the service
contains state in memory that can be modified by requests (since the
modifications in the child process would never reach the initial state
kept in the parent process and passed to each child). In this case,
you can use a threading server, but you will probably have to use
locks to avoid two requests that come in nearly simultaneous to apply
conflicting changes to the server state.
On the other hand, if you are building e.g. an HTTP server, where all
data is stored externally (e.g. in the file system), a synchronous
class will essentially render the service "deaf" while one request is
being handled -- which may be for a very long time if a client is slow
to reqd all the data it has requested. Here a threading or forking
server is appropriate.
In some cases, it may be appropriate to process part of a request
synchronously, but to finish processing in a forked child depending on
the request data. This can be implemented by using a synchronous
server and doing an explicit fork in the request handler class
handle() method.
Another approach to handling multiple simultaneous requests in an
environment that supports neither threads nor fork (or where these are
too expensive or inappropriate for the service) is to maintain an
explicit table of partially finished requests and to use select() to
decide which request to work on next (or whether to handle a new
incoming request). This is particularly important for stream services
where each client can potentially be connected for a long time (if
threads or subprocesses cannot be used).
Future work:
- Standard classes for Sun RPC (which uses either UDP or TCP)
- Standard mix-in classes to implement various authentication
and encryption schemes
- Standard framework for select-based multiplexing
XXX Open problems:
- What to do with out-of-band data?
BaseServer:
- split generic "request" functionality out into BaseServer class.
Copyright (C) 2000 Luke Kenneth Casson Leighton <[email protected]>
example: read entries from a SQL database (requires overriding
get_request() to return a table entry from the database).
entry is processed by a RequestHandlerClass.
"""
# This file copyright (c) 2001-2015 Python Software Foundation; All Rights Reserved
# Author of the BaseServer patch: Luke Kenneth Casson Leighton
# XXX Warning!
# There is a test suite for this module, but it cannot be run by the
# standard regression test.
# To run it manually, run Lib/test/test_socketserver.py.
__version__ = "0.4"
import socket
import select
import sys
import os
try:
import threading
except ImportError:
import dummy_threading as threading
__all__ = ["TCPServer", "UDPServer", "ForkingUDPServer", "ForkingTCPServer",
"ThreadingUDPServer", "ThreadingTCPServer", "BaseRequestHandler",
"StreamRequestHandler", "DatagramRequestHandler",
"ThreadingMixIn", "ForkingMixIn"]
if hasattr(socket, "AF_UNIX"):
__all__.extend(["UnixStreamServer", "UnixDatagramServer",
"ThreadingUnixStreamServer",
"ThreadingUnixDatagramServer"])
class BaseServer:
"""Base class for server classes.
Methods for the caller:
- __init__(server_address, RequestHandlerClass)
- serve_forever(poll_interval=0.5)
- shutdown()
- handle_request() # if you do not use serve_forever()
- fileno() -> int # for select()
Methods that may be overridden:
- server_bind()
- server_activate()
- get_request() -> request, client_address
- handle_timeout()
- verify_request(request, client_address)
- server_close()
- process_request(request, client_address)
- close_request(request)
- handle_error()
Methods for derived classes:
- finish_request(request, client_address)
Class variables that may be overridden by derived classes or
instances:
- timeout
- address_family
- socket_type
- allow_reuse_address
Instance variables:
- RequestHandlerClass
- socket
"""
timeout = None
def __init__(self, server_address, RequestHandlerClass):
"""Constructor. May be extended, do not override."""
self.server_address = server_address
self.RequestHandlerClass = RequestHandlerClass
self.__is_shut_down = threading.Event()
self.__serving = False
def server_activate(self):
"""Called by constructor to activate the server.
May be overridden.
"""
pass
def serve_forever(self, poll_interval=0.5):
"""Handle one request at a time until shutdown.
Polls for shutdown every poll_interval seconds. Ignores
self.timeout. If you need to do periodic tasks, do them in
another thread.
"""
self.__serving = True
self.__is_shut_down.clear()
while self.__serving:
# XXX: Consider using another file descriptor or
# connecting to the socket to wake this up instead of
# polling. Polling reduces our responsiveness to a
# shutdown request and wastes cpu at all other times.
r, w, e = select.select([self], [], [], poll_interval)
if r:
self._handle_request_noblock()
self.__is_shut_down.set()
def shutdown(self):
"""Stops the serve_forever loop.
Blocks until the loop has finished. This must be called while
serve_forever() is running in another thread, or it will
deadlock.
"""
self.__serving = False
self.__is_shut_down.wait()
# The distinction between handling, getting, processing and
# finishing a request is fairly arbitrary. Remember:
#
# - handle_request() is the top-level call. It calls
# select, get_request(), verify_request() and process_request()
# - get_request() is different for stream or datagram sockets
# - process_request() is the place that may fork a new process
# or create a new thread to finish the request
# - finish_request() instantiates the request handler class;
# this constructor will handle the request all by itself
def handle_request(self):
"""Handle one request, possibly blocking.
Respects self.timeout.
"""
# Support people who used socket.settimeout() to escape
# handle_request before self.timeout was available.
timeout = self.socket.gettimeout()
if timeout is None:
timeout = self.timeout
elif self.timeout is not None:
timeout = min(timeout, self.timeout)
fd_sets = select.select([self], [], [], timeout)
if not fd_sets[0]:
self.handle_timeout()
return
self._handle_request_noblock()
def _handle_request_noblock(self):
"""Handle one request, without blocking.
I assume that select.select has returned that the socket is
readable before this function was called, so there should be
no risk of blocking in get_request().
"""
try:
request, client_address = self.get_request()
except socket.error:
return
if self.verify_request(request, client_address):
try:
self.process_request(request, client_address)
except:
self.handle_error(request, client_address)
self.close_request(request)
def handle_timeout(self):
"""Called if no new request arrives within self.timeout.
Overridden by ForkingMixIn.
"""
pass
def verify_request(self, request, client_address):
"""Verify the request. May be overridden.
Return True if we should proceed with this request.
"""
return True
def process_request(self, request, client_address):
"""Call finish_request.
Overridden by ForkingMixIn and ThreadingMixIn.
"""
self.finish_request(request, client_address)
self.close_request(request)
def server_close(self):
"""Called to clean-up the server.
May be overridden.
"""
pass
def finish_request(self, request, client_address):
"""Finish one request by instantiating RequestHandlerClass."""
self.RequestHandlerClass(request, client_address, self)
def close_request(self, request):
"""Called to clean up an individual request."""
pass
def handle_error(self, request, client_address):
"""Handle an error gracefully. May be overridden.
The default is to print a traceback and continue.
"""
print('-' * 40)
print('Exception happened during processing of request from %s' % (client_address,))
import traceback
traceback.print_exc() # XXX But this goes to stderr!
print('-' * 40)
class TCPServer(BaseServer):
"""Base class for various socket-based server classes.
Defaults to synchronous IP stream (i.e., TCP).
Methods for the caller:
- __init__(server_address, RequestHandlerClass, bind_and_activate=True)
- serve_forever(poll_interval=0.5)
- shutdown()
- handle_request() # if you don't use serve_forever()
- fileno() -> int # for select()
Methods that may be overridden:
- server_bind()
- server_activate()
- get_request() -> request, client_address
- handle_timeout()
- verify_request(request, client_address)
- process_request(request, client_address)
- close_request(request)
- handle_error()
Methods for derived classes:
- finish_request(request, client_address)
Class variables that may be overridden by derived classes or
instances:
- timeout
- address_family
- socket_type
- request_queue_size (only for stream sockets)
- allow_reuse_address
Instance variables:
- server_address
- RequestHandlerClass
- socket
"""
address_family = socket.AF_INET
socket_type = socket.SOCK_STREAM
request_queue_size = 5
allow_reuse_address = False
def __init__(self, server_address, RequestHandlerClass,
bind_and_activate=True):
"""Constructor. May be extended, do not override."""
BaseServer.__init__(self, server_address, RequestHandlerClass)
self.socket = socket.socket(self.address_family,
self.socket_type)
if bind_and_activate:
self.server_bind()
self.server_activate()
def server_bind(self):
"""Called by constructor to bind the socket.
May be overridden.
"""
if self.allow_reuse_address:
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.socket.bind(self.server_address)
self.server_address = self.socket.getsockname()
def server_activate(self):
"""Called by constructor to activate the server.
May be overridden.
"""
self.socket.listen(self.request_queue_size)
def server_close(self):
"""Called to clean-up the server.
May be overridden.
"""
self.socket.close()
def fileno(self):
"""Return socket file number.
Interface required by select().
"""
return self.socket.fileno()
def get_request(self):
"""Get the request and client address from the socket.
May be overridden.
"""
return self.socket.accept()
def close_request(self, request):
"""Called to clean up an individual request."""
request.close()
class UDPServer(TCPServer):
"""UDP server class."""
allow_reuse_address = False
socket_type = socket.SOCK_DGRAM
max_packet_size = 8192
def get_request(self):
data, client_addr = self.socket.recvfrom(self.max_packet_size)
return (data, self.socket), client_addr
def server_activate(self):
# No need to call listen() for UDP.
pass
def close_request(self, request):
# No need to close anything.
pass
class ForkingMixIn:
"""Mix-in class to handle each request in a new process."""
timeout = 300
active_children = None
max_children = 40
def collect_children(self):
"""Internal routine to wait for children that have exited."""
if self.active_children is None:
return
while len(self.active_children) >= self.max_children:
# XXX: This will wait for any child process, not just ones
# spawned by this library. This could confuse other
# libraries that expect to be able to wait for their own
# children.
try:
pid, status = os.waitpid(0, 0)
except os.error:
pid = None
if pid not in self.active_children:
continue
self.active_children.remove(pid)
# XXX: This loop runs more system calls than it ought
# to. There should be a way to put the active_children into a
# process group and then use os.waitpid(-pgid) to wait for any
# of that set, but I couldn't find a way to allocate pgids
# that couldn't collide.
for child in self.active_children:
try:
pid, status = os.waitpid(child, os.WNOHANG)
except os.error:
pid = None
if not pid:
continue
try:
self.active_children.remove(pid)
except ValueError, e:
raise ValueError('%s. x=%d and list=%r' % \
(e.message, pid, self.active_children))
def handle_timeout(self):
"""Wait for zombies after self.timeout seconds of inactivity.
May be extended, do not override.
"""
self.collect_children()
def process_request(self, request, client_address):
"""Fork a new subprocess to process the request."""
self.collect_children()
pid = os.fork()
if pid:
# Parent process
if self.active_children is None:
self.active_children = []
self.active_children.append(pid)
self.close_request(request)
return
else:
# Child process.
# This must never return, hence os._exit()!
try:
self.finish_request(request, client_address)
os._exit(0)
except:
try:
self.handle_error(request, client_address)
finally:
os._exit(1)
class ThreadingMixIn:
"""Mix-in class to handle each request in a new thread."""
# Decides how threads will act upon termination of the
# main process
daemon_threads = False
def process_request_thread(self, request, client_address):
"""Same as in BaseServer but as a thread.
In addition, exception handling is done here.
"""
try:
self.finish_request(request, client_address)
self.close_request(request)
except:
self.handle_error(request, client_address)
self.close_request(request)
def process_request(self, request, client_address):
"""Start a new thread to process the request."""
t = threading.Thread(target=self.process_request_thread,
args=(request, client_address))
if self.daemon_threads:
t.setDaemon(1)
t.start()
class ForkingUDPServer(ForkingMixIn, UDPServer):
pass
class ForkingTCPServer(ForkingMixIn, TCPServer):
pass
class ThreadingUDPServer(ThreadingMixIn, UDPServer):
pass
class ThreadingTCPServer(ThreadingMixIn, TCPServer):
pass
if hasattr(socket, 'AF_UNIX'):
class UnixStreamServer(TCPServer):
address_family = socket.AF_UNIX
class UnixDatagramServer(UDPServer):
address_family = socket.AF_UNIX
class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer):
pass
class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer):
pass
class BaseRequestHandler:
"""Base class for request handler classes.
This class is instantiated for each request to be handled. The
constructor sets the instance variables request, client_address
and server, and then calls the handle() method. To implement a
specific service, all you need to do is to derive a class which
defines a handle() method.
The handle() method can find the request as self.request, the
client address as self.client_address, and the server (in case it
needs access to per-server information) as self.server. Since a
separate instance is created for each request, the handle() method
can define arbitrary other instance variariables.
"""
def __init__(self, request, client_address, server):
self.request = request
self.client_address = client_address
self.server = server
try:
self.setup()
self.handle()
self.finish()
finally:
sys.exc_traceback = None # Help garbage collection
def setup(self):
pass
def handle(self):
pass
def finish(self):
pass
# The following two classes make it possible to use the same service
# class for stream or datagram servers.
# Each class sets up these instance variables:
# - rfile: a file object from which receives the request is read
# - wfile: a file object to which the reply is written
# When the handle() method returns, wfile is flushed properly
class StreamRequestHandler(BaseRequestHandler):
"""Define self.rfile and self.wfile for stream sockets."""
# Default buffer sizes for rfile, wfile.
# We default rfile to buffered because otherwise it could be
# really slow for large data (a getc() call per byte); we make
# wfile unbuffered because (a) often after a write() we want to
# read and we need to flush the line; (b) big writes to unbuffered
# files are typically optimized by stdio even when big reads
# aren't.
rbufsize = -1
wbufsize = 0
def setup(self):
self.connection = self.request
self.rfile = self.connection.makefile('rb', self.rbufsize)
self.wfile = self.connection.makefile('wb', self.wbufsize)
def finish(self):
if not self.wfile.closed:
self.wfile.flush()
self.wfile.close()
self.rfile.close()
class DatagramRequestHandler(BaseRequestHandler):
# XXX Regrettably, I cannot get this working on Linux;
# s.recvfrom() doesn't return a meaningful client address.
"""Define self.rfile and self.wfile for datagram sockets."""
def setup(self):
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
self.packet, self.socket = self.request
self.rfile = StringIO(self.packet)
self.wfile = StringIO()
def finish(self):
self.socket.sendto(self.wfile.getvalue(), self.client_address)
|
tinkhaven-organization/odoo | refs/heads/8.0 | addons/hw_posbox_homepage/controllers/main.py | 112 | # -*- coding: utf-8 -*-
import logging
import os
import time
from os import listdir
import openerp
from openerp import http
from openerp.http import request
from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
index_template = """
<!DOCTYPE HTML>
<html>
<head>
<title>Odoo's PosBox</title>
<style>
body {
width: 480px;
margin: 60px auto;
font-family: sans-serif;
text-align: justify;
color: #6B6B6B;
}
</style>
</head>
<body>
<h1>Your PosBox is up and running</h1>
<p>
The PosBox is an hardware adapter that allows you to use
receipt printers and barcode scanners with Odoo's Point of
Sale, <b>version 8.0 or later</b>. You can start an <a href='https://www.odoo.com/start'>online free trial</a>,
or <a href='https://www.odoo.com/start?download'>download and install</a> it yourself.
</p>
<p>
For more information on how to setup the Point of Sale with
the PosBox, please refer to <a href='/hw_proxy/static/doc/manual.pdf'>the manual</a>.
</p>
<p>
To see the status of the connected hardware, please refer
to the <a href='/hw_proxy/status'>hardware status page</a>.
</p>
<p>
The PosBox software installed on this posbox is <b>version 13</b>,
the posbox version number is independent from Odoo. You can upgrade
the software on the <a href='/hw_proxy/upgrade/'>upgrade page</a>.
</p>
<p>For any other question, please contact the Odoo support at <a href='mailto:[email protected]'>[email protected]</a>
</p>
</body>
</html>
"""
class PosboxHomepage(openerp.addons.web.controllers.main.Home):
@http.route('/', type='http', auth='none', website=True)
def index(self):
#return request.render('hw_posbox_homepage.index',mimetype='text/html')
return index_template
|
imtapps/django-class-registry | refs/heads/master | class_registry/tests/demo/__init__.py | 1 | from . import actions
from class_registry.auto_import import AutoImport
AutoImport(actions).setup()
|
ZerpaTechnology/AsenZor | refs/heads/master | static/js/brython/Lib/encodings/mac_croatian.py | 37 | """ Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
def getregentry():
return codecs.CodecInfo(
name='mac-croatian',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
decoding_table = (
'\x00' # 0x00 -> CONTROL CHARACTER
'\x01' # 0x01 -> CONTROL CHARACTER
'\x02' # 0x02 -> CONTROL CHARACTER
'\x03' # 0x03 -> CONTROL CHARACTER
'\x04' # 0x04 -> CONTROL CHARACTER
'\x05' # 0x05 -> CONTROL CHARACTER
'\x06' # 0x06 -> CONTROL CHARACTER
'\x07' # 0x07 -> CONTROL CHARACTER
'\x08' # 0x08 -> CONTROL CHARACTER
'\t' # 0x09 -> CONTROL CHARACTER
'\n' # 0x0A -> CONTROL CHARACTER
'\x0b' # 0x0B -> CONTROL CHARACTER
'\x0c' # 0x0C -> CONTROL CHARACTER
'\r' # 0x0D -> CONTROL CHARACTER
'\x0e' # 0x0E -> CONTROL CHARACTER
'\x0f' # 0x0F -> CONTROL CHARACTER
'\x10' # 0x10 -> CONTROL CHARACTER
'\x11' # 0x11 -> CONTROL CHARACTER
'\x12' # 0x12 -> CONTROL CHARACTER
'\x13' # 0x13 -> CONTROL CHARACTER
'\x14' # 0x14 -> CONTROL CHARACTER
'\x15' # 0x15 -> CONTROL CHARACTER
'\x16' # 0x16 -> CONTROL CHARACTER
'\x17' # 0x17 -> CONTROL CHARACTER
'\x18' # 0x18 -> CONTROL CHARACTER
'\x19' # 0x19 -> CONTROL CHARACTER
'\x1a' # 0x1A -> CONTROL CHARACTER
'\x1b' # 0x1B -> CONTROL CHARACTER
'\x1c' # 0x1C -> CONTROL CHARACTER
'\x1d' # 0x1D -> CONTROL CHARACTER
'\x1e' # 0x1E -> CONTROL CHARACTER
'\x1f' # 0x1F -> CONTROL CHARACTER
' ' # 0x20 -> SPACE
'!' # 0x21 -> EXCLAMATION MARK
'"' # 0x22 -> QUOTATION MARK
'#' # 0x23 -> NUMBER SIGN
'$' # 0x24 -> DOLLAR SIGN
'%' # 0x25 -> PERCENT SIGN
'&' # 0x26 -> AMPERSAND
"'" # 0x27 -> APOSTROPHE
'(' # 0x28 -> LEFT PARENTHESIS
')' # 0x29 -> RIGHT PARENTHESIS
'*' # 0x2A -> ASTERISK
'+' # 0x2B -> PLUS SIGN
',' # 0x2C -> COMMA
'-' # 0x2D -> HYPHEN-MINUS
'.' # 0x2E -> FULL STOP
'/' # 0x2F -> SOLIDUS
'0' # 0x30 -> DIGIT ZERO
'1' # 0x31 -> DIGIT ONE
'2' # 0x32 -> DIGIT TWO
'3' # 0x33 -> DIGIT THREE
'4' # 0x34 -> DIGIT FOUR
'5' # 0x35 -> DIGIT FIVE
'6' # 0x36 -> DIGIT SIX
'7' # 0x37 -> DIGIT SEVEN
'8' # 0x38 -> DIGIT EIGHT
'9' # 0x39 -> DIGIT NINE
':' # 0x3A -> COLON
';' # 0x3B -> SEMICOLON
'<' # 0x3C -> LESS-THAN SIGN
'=' # 0x3D -> EQUALS SIGN
'>' # 0x3E -> GREATER-THAN SIGN
'?' # 0x3F -> QUESTION MARK
'@' # 0x40 -> COMMERCIAL AT
'A' # 0x41 -> LATIN CAPITAL LETTER A
'B' # 0x42 -> LATIN CAPITAL LETTER B
'C' # 0x43 -> LATIN CAPITAL LETTER C
'D' # 0x44 -> LATIN CAPITAL LETTER D
'E' # 0x45 -> LATIN CAPITAL LETTER E
'F' # 0x46 -> LATIN CAPITAL LETTER F
'G' # 0x47 -> LATIN CAPITAL LETTER G
'H' # 0x48 -> LATIN CAPITAL LETTER H
'I' # 0x49 -> LATIN CAPITAL LETTER I
'J' # 0x4A -> LATIN CAPITAL LETTER J
'K' # 0x4B -> LATIN CAPITAL LETTER K
'L' # 0x4C -> LATIN CAPITAL LETTER L
'M' # 0x4D -> LATIN CAPITAL LETTER M
'N' # 0x4E -> LATIN CAPITAL LETTER N
'O' # 0x4F -> LATIN CAPITAL LETTER O
'P' # 0x50 -> LATIN CAPITAL LETTER P
'Q' # 0x51 -> LATIN CAPITAL LETTER Q
'R' # 0x52 -> LATIN CAPITAL LETTER R
'S' # 0x53 -> LATIN CAPITAL LETTER S
'T' # 0x54 -> LATIN CAPITAL LETTER T
'U' # 0x55 -> LATIN CAPITAL LETTER U
'V' # 0x56 -> LATIN CAPITAL LETTER V
'W' # 0x57 -> LATIN CAPITAL LETTER W
'X' # 0x58 -> LATIN CAPITAL LETTER X
'Y' # 0x59 -> LATIN CAPITAL LETTER Y
'Z' # 0x5A -> LATIN CAPITAL LETTER Z
'[' # 0x5B -> LEFT SQUARE BRACKET
'\\' # 0x5C -> REVERSE SOLIDUS
']' # 0x5D -> RIGHT SQUARE BRACKET
'^' # 0x5E -> CIRCUMFLEX ACCENT
'_' # 0x5F -> LOW LINE
'`' # 0x60 -> GRAVE ACCENT
'a' # 0x61 -> LATIN SMALL LETTER A
'b' # 0x62 -> LATIN SMALL LETTER B
'c' # 0x63 -> LATIN SMALL LETTER C
'd' # 0x64 -> LATIN SMALL LETTER D
'e' # 0x65 -> LATIN SMALL LETTER E
'f' # 0x66 -> LATIN SMALL LETTER F
'g' # 0x67 -> LATIN SMALL LETTER G
'h' # 0x68 -> LATIN SMALL LETTER H
'i' # 0x69 -> LATIN SMALL LETTER I
'j' # 0x6A -> LATIN SMALL LETTER J
'k' # 0x6B -> LATIN SMALL LETTER K
'l' # 0x6C -> LATIN SMALL LETTER L
'm' # 0x6D -> LATIN SMALL LETTER M
'n' # 0x6E -> LATIN SMALL LETTER N
'o' # 0x6F -> LATIN SMALL LETTER O
'p' # 0x70 -> LATIN SMALL LETTER P
'q' # 0x71 -> LATIN SMALL LETTER Q
'r' # 0x72 -> LATIN SMALL LETTER R
's' # 0x73 -> LATIN SMALL LETTER S
't' # 0x74 -> LATIN SMALL LETTER T
'u' # 0x75 -> LATIN SMALL LETTER U
'v' # 0x76 -> LATIN SMALL LETTER V
'w' # 0x77 -> LATIN SMALL LETTER W
'x' # 0x78 -> LATIN SMALL LETTER X
'y' # 0x79 -> LATIN SMALL LETTER Y
'z' # 0x7A -> LATIN SMALL LETTER Z
'{' # 0x7B -> LEFT CURLY BRACKET
'|' # 0x7C -> VERTICAL LINE
'}' # 0x7D -> RIGHT CURLY BRACKET
'~' # 0x7E -> TILDE
'\x7f' # 0x7F -> CONTROL CHARACTER
'\xc4' # 0x80 -> LATIN CAPITAL LETTER A WITH DIAERESIS
'\xc5' # 0x81 -> LATIN CAPITAL LETTER A WITH RING ABOVE
'\xc7' # 0x82 -> LATIN CAPITAL LETTER C WITH CEDILLA
'\xc9' # 0x83 -> LATIN CAPITAL LETTER E WITH ACUTE
'\xd1' # 0x84 -> LATIN CAPITAL LETTER N WITH TILDE
'\xd6' # 0x85 -> LATIN CAPITAL LETTER O WITH DIAERESIS
'\xdc' # 0x86 -> LATIN CAPITAL LETTER U WITH DIAERESIS
'\xe1' # 0x87 -> LATIN SMALL LETTER A WITH ACUTE
'\xe0' # 0x88 -> LATIN SMALL LETTER A WITH GRAVE
'\xe2' # 0x89 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
'\xe4' # 0x8A -> LATIN SMALL LETTER A WITH DIAERESIS
'\xe3' # 0x8B -> LATIN SMALL LETTER A WITH TILDE
'\xe5' # 0x8C -> LATIN SMALL LETTER A WITH RING ABOVE
'\xe7' # 0x8D -> LATIN SMALL LETTER C WITH CEDILLA
'\xe9' # 0x8E -> LATIN SMALL LETTER E WITH ACUTE
'\xe8' # 0x8F -> LATIN SMALL LETTER E WITH GRAVE
'\xea' # 0x90 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
'\xeb' # 0x91 -> LATIN SMALL LETTER E WITH DIAERESIS
'\xed' # 0x92 -> LATIN SMALL LETTER I WITH ACUTE
'\xec' # 0x93 -> LATIN SMALL LETTER I WITH GRAVE
'\xee' # 0x94 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
'\xef' # 0x95 -> LATIN SMALL LETTER I WITH DIAERESIS
'\xf1' # 0x96 -> LATIN SMALL LETTER N WITH TILDE
'\xf3' # 0x97 -> LATIN SMALL LETTER O WITH ACUTE
'\xf2' # 0x98 -> LATIN SMALL LETTER O WITH GRAVE
'\xf4' # 0x99 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
'\xf6' # 0x9A -> LATIN SMALL LETTER O WITH DIAERESIS
'\xf5' # 0x9B -> LATIN SMALL LETTER O WITH TILDE
'\xfa' # 0x9C -> LATIN SMALL LETTER U WITH ACUTE
'\xf9' # 0x9D -> LATIN SMALL LETTER U WITH GRAVE
'\xfb' # 0x9E -> LATIN SMALL LETTER U WITH CIRCUMFLEX
'\xfc' # 0x9F -> LATIN SMALL LETTER U WITH DIAERESIS
'\u2020' # 0xA0 -> DAGGER
'\xb0' # 0xA1 -> DEGREE SIGN
'\xa2' # 0xA2 -> CENT SIGN
'\xa3' # 0xA3 -> POUND SIGN
'\xa7' # 0xA4 -> SECTION SIGN
'\u2022' # 0xA5 -> BULLET
'\xb6' # 0xA6 -> PILCROW SIGN
'\xdf' # 0xA7 -> LATIN SMALL LETTER SHARP S
'\xae' # 0xA8 -> REGISTERED SIGN
'\u0160' # 0xA9 -> LATIN CAPITAL LETTER S WITH CARON
'\u2122' # 0xAA -> TRADE MARK SIGN
'\xb4' # 0xAB -> ACUTE ACCENT
'\xa8' # 0xAC -> DIAERESIS
'\u2260' # 0xAD -> NOT EQUAL TO
'\u017d' # 0xAE -> LATIN CAPITAL LETTER Z WITH CARON
'\xd8' # 0xAF -> LATIN CAPITAL LETTER O WITH STROKE
'\u221e' # 0xB0 -> INFINITY
'\xb1' # 0xB1 -> PLUS-MINUS SIGN
'\u2264' # 0xB2 -> LESS-THAN OR EQUAL TO
'\u2265' # 0xB3 -> GREATER-THAN OR EQUAL TO
'\u2206' # 0xB4 -> INCREMENT
'\xb5' # 0xB5 -> MICRO SIGN
'\u2202' # 0xB6 -> PARTIAL DIFFERENTIAL
'\u2211' # 0xB7 -> N-ARY SUMMATION
'\u220f' # 0xB8 -> N-ARY PRODUCT
'\u0161' # 0xB9 -> LATIN SMALL LETTER S WITH CARON
'\u222b' # 0xBA -> INTEGRAL
'\xaa' # 0xBB -> FEMININE ORDINAL INDICATOR
'\xba' # 0xBC -> MASCULINE ORDINAL INDICATOR
'\u03a9' # 0xBD -> GREEK CAPITAL LETTER OMEGA
'\u017e' # 0xBE -> LATIN SMALL LETTER Z WITH CARON
'\xf8' # 0xBF -> LATIN SMALL LETTER O WITH STROKE
'\xbf' # 0xC0 -> INVERTED QUESTION MARK
'\xa1' # 0xC1 -> INVERTED EXCLAMATION MARK
'\xac' # 0xC2 -> NOT SIGN
'\u221a' # 0xC3 -> SQUARE ROOT
'\u0192' # 0xC4 -> LATIN SMALL LETTER F WITH HOOK
'\u2248' # 0xC5 -> ALMOST EQUAL TO
'\u0106' # 0xC6 -> LATIN CAPITAL LETTER C WITH ACUTE
'\xab' # 0xC7 -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
'\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON
'\u2026' # 0xC9 -> HORIZONTAL ELLIPSIS
'\xa0' # 0xCA -> NO-BREAK SPACE
'\xc0' # 0xCB -> LATIN CAPITAL LETTER A WITH GRAVE
'\xc3' # 0xCC -> LATIN CAPITAL LETTER A WITH TILDE
'\xd5' # 0xCD -> LATIN CAPITAL LETTER O WITH TILDE
'\u0152' # 0xCE -> LATIN CAPITAL LIGATURE OE
'\u0153' # 0xCF -> LATIN SMALL LIGATURE OE
'\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE
'\u2014' # 0xD1 -> EM DASH
'\u201c' # 0xD2 -> LEFT DOUBLE QUOTATION MARK
'\u201d' # 0xD3 -> RIGHT DOUBLE QUOTATION MARK
'\u2018' # 0xD4 -> LEFT SINGLE QUOTATION MARK
'\u2019' # 0xD5 -> RIGHT SINGLE QUOTATION MARK
'\xf7' # 0xD6 -> DIVISION SIGN
'\u25ca' # 0xD7 -> LOZENGE
'\uf8ff' # 0xD8 -> Apple logo
'\xa9' # 0xD9 -> COPYRIGHT SIGN
'\u2044' # 0xDA -> FRACTION SLASH
'\u20ac' # 0xDB -> EURO SIGN
'\u2039' # 0xDC -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
'\u203a' # 0xDD -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
'\xc6' # 0xDE -> LATIN CAPITAL LETTER AE
'\xbb' # 0xDF -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
'\u2013' # 0xE0 -> EN DASH
'\xb7' # 0xE1 -> MIDDLE DOT
'\u201a' # 0xE2 -> SINGLE LOW-9 QUOTATION MARK
'\u201e' # 0xE3 -> DOUBLE LOW-9 QUOTATION MARK
'\u2030' # 0xE4 -> PER MILLE SIGN
'\xc2' # 0xE5 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
'\u0107' # 0xE6 -> LATIN SMALL LETTER C WITH ACUTE
'\xc1' # 0xE7 -> LATIN CAPITAL LETTER A WITH ACUTE
'\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON
'\xc8' # 0xE9 -> LATIN CAPITAL LETTER E WITH GRAVE
'\xcd' # 0xEA -> LATIN CAPITAL LETTER I WITH ACUTE
'\xce' # 0xEB -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
'\xcf' # 0xEC -> LATIN CAPITAL LETTER I WITH DIAERESIS
'\xcc' # 0xED -> LATIN CAPITAL LETTER I WITH GRAVE
'\xd3' # 0xEE -> LATIN CAPITAL LETTER O WITH ACUTE
'\xd4' # 0xEF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
'\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE
'\xd2' # 0xF1 -> LATIN CAPITAL LETTER O WITH GRAVE
'\xda' # 0xF2 -> LATIN CAPITAL LETTER U WITH ACUTE
'\xdb' # 0xF3 -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
'\xd9' # 0xF4 -> LATIN CAPITAL LETTER U WITH GRAVE
'\u0131' # 0xF5 -> LATIN SMALL LETTER DOTLESS I
'\u02c6' # 0xF6 -> MODIFIER LETTER CIRCUMFLEX ACCENT
'\u02dc' # 0xF7 -> SMALL TILDE
'\xaf' # 0xF8 -> MACRON
'\u03c0' # 0xF9 -> GREEK SMALL LETTER PI
'\xcb' # 0xFA -> LATIN CAPITAL LETTER E WITH DIAERESIS
'\u02da' # 0xFB -> RING ABOVE
'\xb8' # 0xFC -> CEDILLA
'\xca' # 0xFD -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
'\xe6' # 0xFE -> LATIN SMALL LETTER AE
'\u02c7' # 0xFF -> CARON
)
### Encoding table
encoding_table=codecs.charmap_build(decoding_table)
|
napalm-automation/napalm-yang | refs/heads/develop | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/__init__.py | 1 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.yangtypes import YANGDynClass
from pyangbind.lib.yangtypes import ReferenceType
from pyangbind.lib.base import PybindBase
from collections import OrderedDict
from decimal import Decimal
from bitarray import bitarray
import six
# PY3 support of some PY2 keywords (needs improved)
if six.PY3:
import builtins as __builtin__
long = int
elif six.PY2:
import __builtin__
class state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-network-instance - based on the path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/iih/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Operational counters relating to IIH PDUs
"""
__slots__ = (
"_path_helper",
"_extmethods",
"__received",
"__processed",
"__dropped",
"__sent",
"__retransmit",
)
_yang_name = "state"
_pybind_generated_by = "container"
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__received = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__processed = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__dropped = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__sent = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__retransmit = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path() + [self._yang_name]
else:
return [
"network-instances",
"network-instance",
"protocols",
"protocol",
"isis",
"interfaces",
"interface",
"levels",
"level",
"packet-counters",
"iih",
"state",
]
def _get_received(self):
"""
Getter method for received, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/received (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface.
"""
return self.__received
def _set_received(self, v, load=False):
"""
Setter method for received, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/received (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_received is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_received() directly.
YANG Description: The number of the specified type of PDU received on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """received must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__received = t
if hasattr(self, "_set"):
self._set()
def _unset_received(self):
self.__received = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_processed(self):
"""
Getter method for processed, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/processed (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface
that have been processed by the local system.
"""
return self.__processed
def _set_processed(self, v, load=False):
"""
Setter method for processed, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/processed (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_processed is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_processed() directly.
YANG Description: The number of the specified type of PDU received on the interface
that have been processed by the local system.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """processed must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="processed", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__processed = t
if hasattr(self, "_set"):
self._set()
def _unset_processed(self):
self.__processed = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_dropped(self):
"""
Getter method for dropped, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/dropped (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface
that have been dropped.
"""
return self.__dropped
def _set_dropped(self, v, load=False):
"""
Setter method for dropped, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/dropped (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_dropped is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dropped() directly.
YANG Description: The number of the specified type of PDU received on the interface
that have been dropped.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """dropped must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="dropped", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__dropped = t
if hasattr(self, "_set"):
self._set()
def _unset_dropped(self):
self.__dropped = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_sent(self):
"""
Getter method for sent, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/sent (yang:counter32)
YANG Description: The number of the specified type of PDU that have been sent by the
local system on the interface.
"""
return self.__sent
def _set_sent(self, v, load=False):
"""
Setter method for sent, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/sent (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_sent is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_sent() directly.
YANG Description: The number of the specified type of PDU that have been sent by the
local system on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """sent must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__sent = t
if hasattr(self, "_set"):
self._set()
def _unset_sent(self):
self.__sent = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_retransmit(self):
"""
Getter method for retransmit, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/retransmit (yang:counter32)
YANG Description: The number of the specified type of PDU that that have been
retransmitted by the local system on the interface.
"""
return self.__retransmit
def _set_retransmit(self, v, load=False):
"""
Setter method for retransmit, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/retransmit (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_retransmit is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_retransmit() directly.
YANG Description: The number of the specified type of PDU that that have been
retransmitted by the local system on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """retransmit must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="retransmit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__retransmit = t
if hasattr(self, "_set"):
self._set()
def _unset_retransmit(self):
self.__retransmit = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
received = __builtin__.property(_get_received)
processed = __builtin__.property(_get_processed)
dropped = __builtin__.property(_get_dropped)
sent = __builtin__.property(_get_sent)
retransmit = __builtin__.property(_get_retransmit)
_pyangbind_elements = OrderedDict(
[
("received", received),
("processed", processed),
("dropped", dropped),
("sent", sent),
("retransmit", retransmit),
]
)
class state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-network-instance-l2 - based on the path /network-instances/network-instance/protocols/protocol/isis/interfaces/interface/levels/level/packet-counters/iih/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Operational counters relating to IIH PDUs
"""
__slots__ = (
"_path_helper",
"_extmethods",
"__received",
"__processed",
"__dropped",
"__sent",
"__retransmit",
)
_yang_name = "state"
_pybind_generated_by = "container"
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__received = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__processed = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__dropped = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__sent = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
self.__retransmit = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path() + [self._yang_name]
else:
return [
"network-instances",
"network-instance",
"protocols",
"protocol",
"isis",
"interfaces",
"interface",
"levels",
"level",
"packet-counters",
"iih",
"state",
]
def _get_received(self):
"""
Getter method for received, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/received (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface.
"""
return self.__received
def _set_received(self, v, load=False):
"""
Setter method for received, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/received (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_received is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_received() directly.
YANG Description: The number of the specified type of PDU received on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """received must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__received = t
if hasattr(self, "_set"):
self._set()
def _unset_received(self):
self.__received = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="received",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_processed(self):
"""
Getter method for processed, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/processed (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface
that have been processed by the local system.
"""
return self.__processed
def _set_processed(self, v, load=False):
"""
Setter method for processed, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/processed (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_processed is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_processed() directly.
YANG Description: The number of the specified type of PDU received on the interface
that have been processed by the local system.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """processed must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="processed", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__processed = t
if hasattr(self, "_set"):
self._set()
def _unset_processed(self):
self.__processed = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="processed",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_dropped(self):
"""
Getter method for dropped, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/dropped (yang:counter32)
YANG Description: The number of the specified type of PDU received on the interface
that have been dropped.
"""
return self.__dropped
def _set_dropped(self, v, load=False):
"""
Setter method for dropped, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/dropped (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_dropped is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dropped() directly.
YANG Description: The number of the specified type of PDU received on the interface
that have been dropped.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """dropped must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="dropped", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__dropped = t
if hasattr(self, "_set"):
self._set()
def _unset_dropped(self):
self.__dropped = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="dropped",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_sent(self):
"""
Getter method for sent, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/sent (yang:counter32)
YANG Description: The number of the specified type of PDU that have been sent by the
local system on the interface.
"""
return self.__sent
def _set_sent(self, v, load=False):
"""
Setter method for sent, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/sent (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_sent is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_sent() directly.
YANG Description: The number of the specified type of PDU that have been sent by the
local system on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """sent must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="sent", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__sent = t
if hasattr(self, "_set"):
self._set()
def _unset_sent(self):
self.__sent = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="sent",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
def _get_retransmit(self):
"""
Getter method for retransmit, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/retransmit (yang:counter32)
YANG Description: The number of the specified type of PDU that that have been
retransmitted by the local system on the interface.
"""
return self.__retransmit
def _set_retransmit(self, v, load=False):
"""
Setter method for retransmit, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/packet_counters/iih/state/retransmit (yang:counter32)
If this variable is read-only (config: false) in the
source YANG file, then _set_retransmit is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_retransmit() directly.
YANG Description: The number of the specified type of PDU that that have been
retransmitted by the local system on the interface.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """retransmit must be of a type compatible with yang:counter32""",
"defined-type": "yang:counter32",
"generated-type": """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="retransmit", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='yang:counter32', is_config=False)""",
}
)
self.__retransmit = t
if hasattr(self, "_set"):
self._set()
def _unset_retransmit(self):
self.__retransmit = YANGDynClass(
base=RestrictedClassType(
base_type=long,
restriction_dict={"range": ["0..4294967295"]},
int_size=32,
),
is_leaf=True,
yang_name="retransmit",
parent=self,
path_helper=self._path_helper,
extmethods=self._extmethods,
register_paths=True,
namespace="http://openconfig.net/yang/network-instance",
defining_module="openconfig-network-instance",
yang_type="yang:counter32",
is_config=False,
)
received = __builtin__.property(_get_received)
processed = __builtin__.property(_get_processed)
dropped = __builtin__.property(_get_dropped)
sent = __builtin__.property(_get_sent)
retransmit = __builtin__.property(_get_retransmit)
_pyangbind_elements = OrderedDict(
[
("received", received),
("processed", processed),
("dropped", dropped),
("sent", sent),
("retransmit", retransmit),
]
)
|
dOpensource/dsiprouter | refs/heads/master | gui/globals.py | 1 | #
# TODO: this module shadows globals() builtin, which is a bad practice
# and may have unintended consequences elsewhere, we need to find a better implementation
#
# Also, we lose the state of global required if dsiprouter restarts
# which means kamailio may not have reloaded memory at all
# We should track the state of reloads in a file or database (the latter preferably)
#
def initialize():
global reload_required
global licensed
globals()['licensed'] = False
globals()['reload_required'] = False
# allow references in code before initialize is called
reload_required = globals()['reload_required'] if 'reload_required' in globals() else False
licensed = globals()['licensed'] if 'licensed' in globals() else False
|
Tejal011089/paypal_erpnext | refs/heads/develop | erpnext/stock/doctype/stock_settings/stock_settings.py | 63 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cint
from frappe.model.document import Document
class StockSettings(Document):
def validate(self):
for key in ["item_naming_by", "item_group", "stock_uom", "allow_negative_stock"]:
frappe.db.set_default(key, self.get(key, ""))
from erpnext.setup.doctype.naming_series.naming_series import set_by_naming_series
set_by_naming_series("Item", "item_code",
self.get("item_naming_by")=="Naming Series", hide_name_field=True)
stock_frozen_limit = 356
submitted_stock_frozen = self.stock_frozen_upto_days
if submitted_stock_frozen > stock_frozen_limit:
self.stock_frozen_upto_days = stock_frozen_limit
frappe.msgprint (_("`Freeze Stocks Older Than` should be smaller than %d days.") %stock_frozen_limit)
|
dimasad/numpy | refs/heads/master | numpy/tests/test_ctypeslib.py | 69 | from __future__ import division, absolute_import, print_function
import sys
import numpy as np
from numpy.ctypeslib import ndpointer, load_library
from numpy.distutils.misc_util import get_shared_lib_extension
from numpy.testing import *
try:
cdll = load_library('multiarray', np.core.multiarray.__file__)
_HAS_CTYPE = True
except ImportError:
_HAS_CTYPE = False
class TestLoadLibrary(TestCase):
@dec.skipif(not _HAS_CTYPE, "ctypes not available on this python installation")
@dec.knownfailureif(sys.platform=='cygwin', "This test is known to fail on cygwin")
def test_basic(self):
try:
cdll = load_library('multiarray',
np.core.multiarray.__file__)
except ImportError as e:
msg = "ctypes is not available on this python: skipping the test" \
" (import error was: %s)" % str(e)
print(msg)
@dec.skipif(not _HAS_CTYPE, "ctypes not available on this python installation")
@dec.knownfailureif(sys.platform=='cygwin', "This test is known to fail on cygwin")
def test_basic2(self):
"""Regression for #801: load_library with a full library name
(including extension) does not work."""
try:
try:
so = get_shared_lib_extension(is_python_ext=True)
cdll = load_library('multiarray%s' % so,
np.core.multiarray.__file__)
except ImportError:
print("No distutils available, skipping test.")
except ImportError as e:
msg = "ctypes is not available on this python: skipping the test" \
" (import error was: %s)" % str(e)
print(msg)
class TestNdpointer(TestCase):
def test_dtype(self):
dt = np.intc
p = ndpointer(dtype=dt)
self.assertTrue(p.from_param(np.array([1], dt)))
dt = '<i4'
p = ndpointer(dtype=dt)
self.assertTrue(p.from_param(np.array([1], dt)))
dt = np.dtype('>i4')
p = ndpointer(dtype=dt)
p.from_param(np.array([1], dt))
self.assertRaises(TypeError, p.from_param,
np.array([1], dt.newbyteorder('swap')))
dtnames = ['x', 'y']
dtformats = [np.intc, np.float64]
dtdescr = {'names' : dtnames, 'formats' : dtformats}
dt = np.dtype(dtdescr)
p = ndpointer(dtype=dt)
self.assertTrue(p.from_param(np.zeros((10,), dt)))
samedt = np.dtype(dtdescr)
p = ndpointer(dtype=samedt)
self.assertTrue(p.from_param(np.zeros((10,), dt)))
dt2 = np.dtype(dtdescr, align=True)
if dt.itemsize != dt2.itemsize:
self.assertRaises(TypeError, p.from_param, np.zeros((10,), dt2))
else:
self.assertTrue(p.from_param(np.zeros((10,), dt2)))
def test_ndim(self):
p = ndpointer(ndim=0)
self.assertTrue(p.from_param(np.array(1)))
self.assertRaises(TypeError, p.from_param, np.array([1]))
p = ndpointer(ndim=1)
self.assertRaises(TypeError, p.from_param, np.array(1))
self.assertTrue(p.from_param(np.array([1])))
p = ndpointer(ndim=2)
self.assertTrue(p.from_param(np.array([[1]])))
def test_shape(self):
p = ndpointer(shape=(1, 2))
self.assertTrue(p.from_param(np.array([[1, 2]])))
self.assertRaises(TypeError, p.from_param, np.array([[1], [2]]))
p = ndpointer(shape=())
self.assertTrue(p.from_param(np.array(1)))
def test_flags(self):
x = np.array([[1, 2], [3, 4]], order='F')
p = ndpointer(flags='FORTRAN')
self.assertTrue(p.from_param(x))
p = ndpointer(flags='CONTIGUOUS')
self.assertRaises(TypeError, p.from_param, x)
p = ndpointer(flags=x.flags.num)
self.assertTrue(p.from_param(x))
self.assertRaises(TypeError, p.from_param, np.array([[1, 2], [3, 4]]))
if __name__ == "__main__":
run_module_suite()
|
Jgarcia-IAS/localizacion | refs/heads/master | openerp/addons-extra/odoo-pruebas/odoo-server/addons-extra/multi_store/__openerp__.py | 9 | # -*- coding: utf-8 -*-
{
'name': 'Multi Store',
'version': '1.0',
'category': 'Accounting',
'sequence': 14,
'summary': '',
'description': """
Multi Store
===========
The main purpose of this module is to restrict journals access for users on different stores.
This module add a new concept "stores" in some point similar to multicompany.
Similar to multicompany:
* User can have multiple stores available (store_ids)
* User can be active only in one store (store_id) which can be set up in his own preferences
* There is a group "multi store" that gives users the availability to see multi store fields
This module also adds a store_id field on journal:
* If store_id = False then journal can be seen by everyone
* If store_id is set, then journal can be seen by users on that store and parent stores
It also restrict edition, creation and unlink on: account.move, account.invoice and account.voucher.
It is done with the same logic to journal. We do not limitate the "read" of this models because user should need to access those documents, for example, to see partner due.
""",
'author': 'Ingenieria ADHOC',
'website': 'www.ingadhoc.com',
'images': [
],
'depends': [
'account',
'account_voucher',
'stock',
'sale',
'purchase',
'product',
],
'data': [
'views/res_store_view.xml',
'views/res_users_view.xml',
'views/account_view.xml',
'views/stock_view.xml',
'views/sale_view.xml',
'views/purchase_view.xml',
'views/product_view.xml',
'views/res_partner_view.xml',
'security/multi_store_security.xml',
'security/ir.model.access.csv',
],
'demo': [
],
'test': [
],
'installable': True,
'auto_install': False,
'application': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
willbittner/datto-php-test-polymer | refs/heads/master | node_modules/node-sass/node_modules/pangyp/gyp/pylib/gyp/MSVSNew.py | 601 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""New implementation of Visual Studio project generation."""
import os
import random
import gyp.common
# hashlib is supplied as of Python 2.5 as the replacement interface for md5
# and other secure hashes. In 2.6, md5 is deprecated. Import hashlib if
# available, avoiding a deprecation warning under 2.6. Import md5 otherwise,
# preserving 2.4 compatibility.
try:
import hashlib
_new_md5 = hashlib.md5
except ImportError:
import md5
_new_md5 = md5.new
# Initialize random number generator
random.seed()
# GUIDs for project types
ENTRY_TYPE_GUIDS = {
'project': '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}',
'folder': '{2150E333-8FDC-42A3-9474-1A3956D46DE8}',
}
#------------------------------------------------------------------------------
# Helper functions
def MakeGuid(name, seed='msvs_new'):
"""Returns a GUID for the specified target name.
Args:
name: Target name.
seed: Seed for MD5 hash.
Returns:
A GUID-line string calculated from the name and seed.
This generates something which looks like a GUID, but depends only on the
name and seed. This means the same name/seed will always generate the same
GUID, so that projects and solutions which refer to each other can explicitly
determine the GUID to refer to explicitly. It also means that the GUID will
not change when the project for a target is rebuilt.
"""
# Calculate a MD5 signature for the seed and name.
d = _new_md5(str(seed) + str(name)).hexdigest().upper()
# Convert most of the signature to GUID form (discard the rest)
guid = ('{' + d[:8] + '-' + d[8:12] + '-' + d[12:16] + '-' + d[16:20]
+ '-' + d[20:32] + '}')
return guid
#------------------------------------------------------------------------------
class MSVSSolutionEntry(object):
def __cmp__(self, other):
# Sort by name then guid (so things are in order on vs2008).
return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))
class MSVSFolder(MSVSSolutionEntry):
"""Folder in a Visual Studio project or solution."""
def __init__(self, path, name = None, entries = None,
guid = None, items = None):
"""Initializes the folder.
Args:
path: Full path to the folder.
name: Name of the folder.
entries: List of folder entries to nest inside this folder. May contain
Folder or Project objects. May be None, if the folder is empty.
guid: GUID to use for folder, if not None.
items: List of solution items to include in the folder project. May be
None, if the folder does not directly contain items.
"""
if name:
self.name = name
else:
# Use last layer.
self.name = os.path.basename(path)
self.path = path
self.guid = guid
# Copy passed lists (or set to empty lists)
self.entries = sorted(list(entries or []))
self.items = list(items or [])
self.entry_type_guid = ENTRY_TYPE_GUIDS['folder']
def get_guid(self):
if self.guid is None:
# Use consistent guids for folders (so things don't regenerate).
self.guid = MakeGuid(self.path, seed='msvs_folder')
return self.guid
#------------------------------------------------------------------------------
class MSVSProject(MSVSSolutionEntry):
"""Visual Studio project."""
def __init__(self, path, name = None, dependencies = None, guid = None,
spec = None, build_file = None, config_platform_overrides = None,
fixpath_prefix = None):
"""Initializes the project.
Args:
path: Absolute path to the project file.
name: Name of project. If None, the name will be the same as the base
name of the project file.
dependencies: List of other Project objects this project is dependent
upon, if not None.
guid: GUID to use for project, if not None.
spec: Dictionary specifying how to build this project.
build_file: Filename of the .gyp file that the vcproj file comes from.
config_platform_overrides: optional dict of configuration platforms to
used in place of the default for this target.
fixpath_prefix: the path used to adjust the behavior of _fixpath
"""
self.path = path
self.guid = guid
self.spec = spec
self.build_file = build_file
# Use project filename if name not specified
self.name = name or os.path.splitext(os.path.basename(path))[0]
# Copy passed lists (or set to empty lists)
self.dependencies = list(dependencies or [])
self.entry_type_guid = ENTRY_TYPE_GUIDS['project']
if config_platform_overrides:
self.config_platform_overrides = config_platform_overrides
else:
self.config_platform_overrides = {}
self.fixpath_prefix = fixpath_prefix
self.msbuild_toolset = None
def set_dependencies(self, dependencies):
self.dependencies = list(dependencies or [])
def get_guid(self):
if self.guid is None:
# Set GUID from path
# TODO(rspangler): This is fragile.
# 1. We can't just use the project filename sans path, since there could
# be multiple projects with the same base name (for example,
# foo/unittest.vcproj and bar/unittest.vcproj).
# 2. The path needs to be relative to $SOURCE_ROOT, so that the project
# GUID is the same whether it's included from base/base.sln or
# foo/bar/baz/baz.sln.
# 3. The GUID needs to be the same each time this builder is invoked, so
# that we don't need to rebuild the solution when the project changes.
# 4. We should be able to handle pre-built project files by reading the
# GUID from the files.
self.guid = MakeGuid(self.name)
return self.guid
def set_msbuild_toolset(self, msbuild_toolset):
self.msbuild_toolset = msbuild_toolset
#------------------------------------------------------------------------------
class MSVSSolution:
"""Visual Studio solution."""
def __init__(self, path, version, entries=None, variants=None,
websiteProperties=True):
"""Initializes the solution.
Args:
path: Path to solution file.
version: Format version to emit.
entries: List of entries in solution. May contain Folder or Project
objects. May be None, if the folder is empty.
variants: List of build variant strings. If none, a default list will
be used.
websiteProperties: Flag to decide if the website properties section
is generated.
"""
self.path = path
self.websiteProperties = websiteProperties
self.version = version
# Copy passed lists (or set to empty lists)
self.entries = list(entries or [])
if variants:
# Copy passed list
self.variants = variants[:]
else:
# Use default
self.variants = ['Debug|Win32', 'Release|Win32']
# TODO(rspangler): Need to be able to handle a mapping of solution config
# to project config. Should we be able to handle variants being a dict,
# or add a separate variant_map variable? If it's a dict, we can't
# guarantee the order of variants since dict keys aren't ordered.
# TODO(rspangler): Automatically write to disk for now; should delay until
# node-evaluation time.
self.Write()
def Write(self, writer=gyp.common.WriteOnDiff):
"""Writes the solution file to disk.
Raises:
IndexError: An entry appears multiple times.
"""
# Walk the entry tree and collect all the folders and projects.
all_entries = set()
entries_to_check = self.entries[:]
while entries_to_check:
e = entries_to_check.pop(0)
# If this entry has been visited, nothing to do.
if e in all_entries:
continue
all_entries.add(e)
# If this is a folder, check its entries too.
if isinstance(e, MSVSFolder):
entries_to_check += e.entries
all_entries = sorted(all_entries)
# Open file and print header
f = writer(self.path)
f.write('Microsoft Visual Studio Solution File, '
'Format Version %s\r\n' % self.version.SolutionVersion())
f.write('# %s\r\n' % self.version.Description())
# Project entries
sln_root = os.path.split(self.path)[0]
for e in all_entries:
relative_path = gyp.common.RelativePath(e.path, sln_root)
# msbuild does not accept an empty folder_name.
# use '.' in case relative_path is empty.
folder_name = relative_path.replace('/', '\\') or '.'
f.write('Project("%s") = "%s", "%s", "%s"\r\n' % (
e.entry_type_guid, # Entry type GUID
e.name, # Folder name
folder_name, # Folder name (again)
e.get_guid(), # Entry GUID
))
# TODO(rspangler): Need a way to configure this stuff
if self.websiteProperties:
f.write('\tProjectSection(WebsiteProperties) = preProject\r\n'
'\t\tDebug.AspNetCompiler.Debug = "True"\r\n'
'\t\tRelease.AspNetCompiler.Debug = "False"\r\n'
'\tEndProjectSection\r\n')
if isinstance(e, MSVSFolder):
if e.items:
f.write('\tProjectSection(SolutionItems) = preProject\r\n')
for i in e.items:
f.write('\t\t%s = %s\r\n' % (i, i))
f.write('\tEndProjectSection\r\n')
if isinstance(e, MSVSProject):
if e.dependencies:
f.write('\tProjectSection(ProjectDependencies) = postProject\r\n')
for d in e.dependencies:
f.write('\t\t%s = %s\r\n' % (d.get_guid(), d.get_guid()))
f.write('\tEndProjectSection\r\n')
f.write('EndProject\r\n')
# Global section
f.write('Global\r\n')
# Configurations (variants)
f.write('\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r\n')
for v in self.variants:
f.write('\t\t%s = %s\r\n' % (v, v))
f.write('\tEndGlobalSection\r\n')
# Sort config guids for easier diffing of solution changes.
config_guids = []
config_guids_overrides = {}
for e in all_entries:
if isinstance(e, MSVSProject):
config_guids.append(e.get_guid())
config_guids_overrides[e.get_guid()] = e.config_platform_overrides
config_guids.sort()
f.write('\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n')
for g in config_guids:
for v in self.variants:
nv = config_guids_overrides[g].get(v, v)
# Pick which project configuration to build for this solution
# configuration.
f.write('\t\t%s.%s.ActiveCfg = %s\r\n' % (
g, # Project GUID
v, # Solution build configuration
nv, # Project build config for that solution config
))
# Enable project in this solution configuration.
f.write('\t\t%s.%s.Build.0 = %s\r\n' % (
g, # Project GUID
v, # Solution build configuration
nv, # Project build config for that solution config
))
f.write('\tEndGlobalSection\r\n')
# TODO(rspangler): Should be able to configure this stuff too (though I've
# never seen this be any different)
f.write('\tGlobalSection(SolutionProperties) = preSolution\r\n')
f.write('\t\tHideSolutionNode = FALSE\r\n')
f.write('\tEndGlobalSection\r\n')
# Folder mappings
# Omit this section if there are no folders
if any([e.entries for e in all_entries if isinstance(e, MSVSFolder)]):
f.write('\tGlobalSection(NestedProjects) = preSolution\r\n')
for e in all_entries:
if not isinstance(e, MSVSFolder):
continue # Does not apply to projects, only folders
for subentry in e.entries:
f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid()))
f.write('\tEndGlobalSection\r\n')
f.write('EndGlobal\r\n')
f.close()
|
SahilTikale/switchHaaS | refs/heads/haas-as-a-switch | tests/unit/config.py | 3 | from haas.test_common import config_set
from haas import config
import sys
def test_load_extension():
"""Check that putting modules in [extensions] results in importing them."""
config_set({
'extensions': {
# These modules are chosen because:
#
# 1. They are in the standard library, and cross-platform
# 2. If you ever think you need to import these for use in
# HaaS, I will judge you.
'sndhdr': '',
'colorsys': '',
'email.mime.audio': '',
},
})
config.load_extensions()
for module in 'sndhdr', 'colorsys', 'email.mime.audio':
assert module in sys.modules
|
jeffery-do/Vizdoombot | refs/heads/master | doom/lib/python3.5/site-packages/numpy/core/tests/test_scalarmath.py | 21 | from __future__ import division, absolute_import, print_function
import sys
import itertools
import warnings
import operator
import numpy as np
from numpy.testing.utils import _gen_alignment_data
from numpy.testing import (
TestCase, run_module_suite, assert_, assert_equal, assert_raises,
assert_almost_equal, assert_allclose
)
types = [np.bool_, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc,
np.int_, np.uint, np.longlong, np.ulonglong,
np.single, np.double, np.longdouble, np.csingle,
np.cdouble, np.clongdouble]
floating_types = np.floating.__subclasses__()
# This compares scalarmath against ufuncs.
class TestTypes(TestCase):
def test_types(self, level=1):
for atype in types:
a = atype(1)
assert_(a == 1, "error with %r: got %r" % (atype, a))
def test_type_add(self, level=1):
# list of types
for k, atype in enumerate(types):
a_scalar = atype(3)
a_array = np.array([3], dtype=atype)
for l, btype in enumerate(types):
b_scalar = btype(1)
b_array = np.array([1], dtype=btype)
c_scalar = a_scalar + b_scalar
c_array = a_array + b_array
# It was comparing the type numbers, but the new ufunc
# function-finding mechanism finds the lowest function
# to which both inputs can be cast - which produces 'l'
# when you do 'q' + 'b'. The old function finding mechanism
# skipped ahead based on the first argument, but that
# does not produce properly symmetric results...
assert_equal(c_scalar.dtype, c_array.dtype,
"error with types (%d/'%c' + %d/'%c')" %
(k, np.dtype(atype).char, l, np.dtype(btype).char))
def test_type_create(self, level=1):
for k, atype in enumerate(types):
a = np.array([1, 2, 3], atype)
b = atype([1, 2, 3])
assert_equal(a, b)
def test_leak(self):
# test leak of scalar objects
# a leak would show up in valgrind as still-reachable of ~2.6MB
for i in range(200000):
np.add(1, 1)
class TestBaseMath(TestCase):
def test_blocked(self):
# test alignments offsets for simd instructions
# alignments for vz + 2 * (vs - 1) + 1
for dt, sz in [(np.float32, 11), (np.float64, 7)]:
for out, inp1, inp2, msg in _gen_alignment_data(dtype=dt,
type='binary',
max_size=sz):
exp1 = np.ones_like(inp1)
inp1[...] = np.ones_like(inp1)
inp2[...] = np.zeros_like(inp2)
assert_almost_equal(np.add(inp1, inp2), exp1, err_msg=msg)
assert_almost_equal(np.add(inp1, 1), exp1 + 1, err_msg=msg)
assert_almost_equal(np.add(1, inp2), exp1, err_msg=msg)
np.add(inp1, inp2, out=out)
assert_almost_equal(out, exp1, err_msg=msg)
inp2[...] += np.arange(inp2.size, dtype=dt) + 1
assert_almost_equal(np.square(inp2),
np.multiply(inp2, inp2), err_msg=msg)
assert_almost_equal(np.reciprocal(inp2),
np.divide(1, inp2), err_msg=msg)
inp1[...] = np.ones_like(inp1)
inp2[...] = np.zeros_like(inp2)
np.add(inp1, 1, out=out)
assert_almost_equal(out, exp1 + 1, err_msg=msg)
np.add(1, inp2, out=out)
assert_almost_equal(out, exp1, err_msg=msg)
def test_lower_align(self):
# check data that is not aligned to element size
# i.e doubles are aligned to 4 bytes on i386
d = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64)
o = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64)
assert_almost_equal(d + d, d * 2)
np.add(d, d, out=o)
np.add(np.ones_like(d), d, out=o)
np.add(d, np.ones_like(d), out=o)
np.add(np.ones_like(d), d)
np.add(d, np.ones_like(d))
class TestPower(TestCase):
def test_small_types(self):
for t in [np.int8, np.int16, np.float16]:
a = t(3)
b = a ** 4
assert_(b == 81, "error with %r: got %r" % (t, b))
def test_large_types(self):
for t in [np.int32, np.int64, np.float32, np.float64, np.longdouble]:
a = t(51)
b = a ** 4
msg = "error with %r: got %r" % (t, b)
if np.issubdtype(t, np.integer):
assert_(b == 6765201, msg)
else:
assert_almost_equal(b, 6765201, err_msg=msg)
def test_mixed_types(self):
typelist = [np.int8, np.int16, np.float16,
np.float32, np.float64, np.int8,
np.int16, np.int32, np.int64]
for t1 in typelist:
for t2 in typelist:
a = t1(3)
b = t2(2)
result = a**b
msg = ("error with %r and %r:"
"got %r, expected %r") % (t1, t2, result, 9)
if np.issubdtype(np.dtype(result), np.integer):
assert_(result == 9, msg)
else:
assert_almost_equal(result, 9, err_msg=msg)
class TestModulus(TestCase):
floordiv = operator.floordiv
mod = operator.mod
def test_modulus_basic(self):
dt = np.typecodes['AllInteger'] + np.typecodes['Float']
for dt1, dt2 in itertools.product(dt, dt):
for sg1, sg2 in itertools.product((+1, -1), (+1, -1)):
if sg1 == -1 and dt1 in np.typecodes['UnsignedInteger']:
continue
if sg2 == -1 and dt2 in np.typecodes['UnsignedInteger']:
continue
fmt = 'dt1: %s, dt2: %s, sg1: %s, sg2: %s'
msg = fmt % (dt1, dt2, sg1, sg2)
a = np.array(sg1*71, dtype=dt1)[()]
b = np.array(sg2*19, dtype=dt2)[()]
div = self.floordiv(a, b)
rem = self.mod(a, b)
assert_equal(div*b + rem, a, err_msg=msg)
if sg2 == -1:
assert_(b < rem <= 0, msg)
else:
assert_(b > rem >= 0, msg)
def test_float_modulus_exact(self):
# test that float results are exact for small integers. This also
# holds for the same integers scaled by powers of two.
nlst = list(range(-127, 0))
plst = list(range(1, 128))
dividend = nlst + [0] + plst
divisor = nlst + plst
arg = list(itertools.product(dividend, divisor))
tgt = list(divmod(*t) for t in arg)
a, b = np.array(arg, dtype=int).T
# convert exact integer results from Python to float so that
# signed zero can be used, it is checked.
tgtdiv, tgtrem = np.array(tgt, dtype=float).T
tgtdiv = np.where((tgtdiv == 0.0) & ((b < 0) ^ (a < 0)), -0.0, tgtdiv)
tgtrem = np.where((tgtrem == 0.0) & (b < 0), -0.0, tgtrem)
for dt in np.typecodes['Float']:
msg = 'dtype: %s' % (dt,)
fa = a.astype(dt)
fb = b.astype(dt)
# use list comprehension so a_ and b_ are scalars
div = [self.floordiv(a_, b_) for a_, b_ in zip(fa, fb)]
rem = [self.mod(a_, b_) for a_, b_ in zip(fa, fb)]
assert_equal(div, tgtdiv, err_msg=msg)
assert_equal(rem, tgtrem, err_msg=msg)
def test_float_modulus_roundoff(self):
# gh-6127
dt = np.typecodes['Float']
for dt1, dt2 in itertools.product(dt, dt):
for sg1, sg2 in itertools.product((+1, -1), (+1, -1)):
fmt = 'dt1: %s, dt2: %s, sg1: %s, sg2: %s'
msg = fmt % (dt1, dt2, sg1, sg2)
a = np.array(sg1*78*6e-8, dtype=dt1)[()]
b = np.array(sg2*6e-8, dtype=dt2)[()]
div = self.floordiv(a, b)
rem = self.mod(a, b)
# Equal assertion should hold when fmod is used
assert_equal(div*b + rem, a, err_msg=msg)
if sg2 == -1:
assert_(b < rem <= 0, msg)
else:
assert_(b > rem >= 0, msg)
def test_float_modulus_corner_cases(self):
# Check remainder magnitude.
for dt in np.typecodes['Float']:
b = np.array(1.0, dtype=dt)
a = np.nextafter(np.array(0.0, dtype=dt), -b)
rem = self.mod(a, b)
assert_(rem <= b, 'dt: %s' % dt)
rem = self.mod(-a, -b)
assert_(rem >= -b, 'dt: %s' % dt)
# Check nans, inf
with warnings.catch_warnings():
warnings.simplefilter('always')
warnings.simplefilter('ignore', RuntimeWarning)
for dt in np.typecodes['Float']:
fone = np.array(1.0, dtype=dt)
fzer = np.array(0.0, dtype=dt)
finf = np.array(np.inf, dtype=dt)
fnan = np.array(np.nan, dtype=dt)
rem = self.mod(fone, fzer)
assert_(np.isnan(rem), 'dt: %s' % dt)
# MSVC 2008 returns NaN here, so disable the check.
#rem = self.mod(fone, finf)
#assert_(rem == fone, 'dt: %s' % dt)
rem = self.mod(fone, fnan)
assert_(np.isnan(rem), 'dt: %s' % dt)
rem = self.mod(finf, fone)
assert_(np.isnan(rem), 'dt: %s' % dt)
class TestComplexDivision(TestCase):
def test_zero_division(self):
with np.errstate(all="ignore"):
for t in [np.complex64, np.complex128]:
a = t(0.0)
b = t(1.0)
assert_(np.isinf(b/a))
b = t(complex(np.inf, np.inf))
assert_(np.isinf(b/a))
b = t(complex(np.inf, np.nan))
assert_(np.isinf(b/a))
b = t(complex(np.nan, np.inf))
assert_(np.isinf(b/a))
b = t(complex(np.nan, np.nan))
assert_(np.isnan(b/a))
b = t(0.)
assert_(np.isnan(b/a))
def test_signed_zeros(self):
with np.errstate(all="ignore"):
for t in [np.complex64, np.complex128]:
# tupled (numerator, denominator, expected)
# for testing as expected == numerator/denominator
data = (
(( 0.0,-1.0), ( 0.0, 1.0), (-1.0,-0.0)),
(( 0.0,-1.0), ( 0.0,-1.0), ( 1.0,-0.0)),
(( 0.0,-1.0), (-0.0,-1.0), ( 1.0, 0.0)),
(( 0.0,-1.0), (-0.0, 1.0), (-1.0, 0.0)),
(( 0.0, 1.0), ( 0.0,-1.0), (-1.0, 0.0)),
(( 0.0,-1.0), ( 0.0,-1.0), ( 1.0,-0.0)),
((-0.0,-1.0), ( 0.0,-1.0), ( 1.0,-0.0)),
((-0.0, 1.0), ( 0.0,-1.0), (-1.0,-0.0))
)
for cases in data:
n = cases[0]
d = cases[1]
ex = cases[2]
result = t(complex(n[0], n[1])) / t(complex(d[0], d[1]))
# check real and imag parts separately to avoid comparison
# in array context, which does not account for signed zeros
assert_equal(result.real, ex[0])
assert_equal(result.imag, ex[1])
def test_branches(self):
with np.errstate(all="ignore"):
for t in [np.complex64, np.complex128]:
# tupled (numerator, denominator, expected)
# for testing as expected == numerator/denominator
data = list()
# trigger branch: real(fabs(denom)) > imag(fabs(denom))
# followed by else condition as neither are == 0
data.append((( 2.0, 1.0), ( 2.0, 1.0), (1.0, 0.0)))
# trigger branch: real(fabs(denom)) > imag(fabs(denom))
# followed by if condition as both are == 0
# is performed in test_zero_division(), so this is skipped
# trigger else if branch: real(fabs(denom)) < imag(fabs(denom))
data.append((( 1.0, 2.0), ( 1.0, 2.0), (1.0, 0.0)))
for cases in data:
n = cases[0]
d = cases[1]
ex = cases[2]
result = t(complex(n[0], n[1])) / t(complex(d[0], d[1]))
# check real and imag parts separately to avoid comparison
# in array context, which does not account for signed zeros
assert_equal(result.real, ex[0])
assert_equal(result.imag, ex[1])
class TestConversion(TestCase):
def test_int_from_long(self):
l = [1e6, 1e12, 1e18, -1e6, -1e12, -1e18]
li = [10**6, 10**12, 10**18, -10**6, -10**12, -10**18]
for T in [None, np.float64, np.int64]:
a = np.array(l, dtype=T)
assert_equal([int(_m) for _m in a], li)
a = np.array(l[:3], dtype=np.uint64)
assert_equal([int(_m) for _m in a], li[:3])
def test_iinfo_long_values(self):
for code in 'bBhH':
res = np.array(np.iinfo(code).max + 1, dtype=code)
tgt = np.iinfo(code).min
assert_(res == tgt)
for code in np.typecodes['AllInteger']:
res = np.array(np.iinfo(code).max, dtype=code)
tgt = np.iinfo(code).max
assert_(res == tgt)
for code in np.typecodes['AllInteger']:
res = np.typeDict[code](np.iinfo(code).max)
tgt = np.iinfo(code).max
assert_(res == tgt)
def test_int_raise_behaviour(self):
def overflow_error_func(dtype):
np.typeDict[dtype](np.iinfo(dtype).max + 1)
for code in 'lLqQ':
assert_raises(OverflowError, overflow_error_func, code)
def test_longdouble_int(self):
# gh-627
x = np.longdouble(np.inf)
assert_raises(OverflowError, x.__int__)
x = np.clongdouble(np.inf)
assert_raises(OverflowError, x.__int__)
def test_numpy_scalar_relational_operators(self):
# All integer
for dt1 in np.typecodes['AllInteger']:
assert_(1 > np.array(0, dtype=dt1)[()], "type %s failed" % (dt1,))
assert_(not 1 < np.array(0, dtype=dt1)[()], "type %s failed" % (dt1,))
for dt2 in np.typecodes['AllInteger']:
assert_(np.array(1, dtype=dt1)[()] > np.array(0, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
assert_(not np.array(1, dtype=dt1)[()] < np.array(0, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
#Unsigned integers
for dt1 in 'BHILQP':
assert_(-1 < np.array(1, dtype=dt1)[()], "type %s failed" % (dt1,))
assert_(not -1 > np.array(1, dtype=dt1)[()], "type %s failed" % (dt1,))
assert_(-1 != np.array(1, dtype=dt1)[()], "type %s failed" % (dt1,))
#unsigned vs signed
for dt2 in 'bhilqp':
assert_(np.array(1, dtype=dt1)[()] > np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
assert_(not np.array(1, dtype=dt1)[()] < np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
assert_(np.array(1, dtype=dt1)[()] != np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
#Signed integers and floats
for dt1 in 'bhlqp' + np.typecodes['Float']:
assert_(1 > np.array(-1, dtype=dt1)[()], "type %s failed" % (dt1,))
assert_(not 1 < np.array(-1, dtype=dt1)[()], "type %s failed" % (dt1,))
assert_(-1 == np.array(-1, dtype=dt1)[()], "type %s failed" % (dt1,))
for dt2 in 'bhlqp' + np.typecodes['Float']:
assert_(np.array(1, dtype=dt1)[()] > np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
assert_(not np.array(1, dtype=dt1)[()] < np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
assert_(np.array(-1, dtype=dt1)[()] == np.array(-1, dtype=dt2)[()],
"type %s and %s failed" % (dt1, dt2))
#class TestRepr(TestCase):
# def test_repr(self):
# for t in types:
# val = t(1197346475.0137341)
# val_repr = repr(val)
# val2 = eval(val_repr)
# assert_equal( val, val2 )
class TestRepr(object):
def _test_type_repr(self, t):
finfo = np.finfo(t)
last_fraction_bit_idx = finfo.nexp + finfo.nmant
last_exponent_bit_idx = finfo.nexp
storage_bytes = np.dtype(t).itemsize*8
# could add some more types to the list below
for which in ['small denorm', 'small norm']:
# Values from http://en.wikipedia.org/wiki/IEEE_754
constr = np.array([0x00]*storage_bytes, dtype=np.uint8)
if which == 'small denorm':
byte = last_fraction_bit_idx // 8
bytebit = 7-(last_fraction_bit_idx % 8)
constr[byte] = 1 << bytebit
elif which == 'small norm':
byte = last_exponent_bit_idx // 8
bytebit = 7-(last_exponent_bit_idx % 8)
constr[byte] = 1 << bytebit
else:
raise ValueError('hmm')
val = constr.view(t)[0]
val_repr = repr(val)
val2 = t(eval(val_repr))
if not (val2 == 0 and val < 1e-100):
assert_equal(val, val2)
def test_float_repr(self):
# long double test cannot work, because eval goes through a python
# float
for t in [np.float32, np.float64]:
yield self._test_type_repr, t
class TestSizeOf(TestCase):
def test_equal_nbytes(self):
for type in types:
x = type(0)
assert_(sys.getsizeof(x) > x.nbytes)
def test_error(self):
d = np.float32()
assert_raises(TypeError, d.__sizeof__, "a")
class TestAbs(TestCase):
def _test_abs_func(self, absfunc):
for tp in floating_types:
x = tp(-1.5)
assert_equal(absfunc(x), 1.5)
x = tp(0.0)
res = absfunc(x)
# assert_equal() checks zero signedness
assert_equal(res, 0.0)
x = tp(-0.0)
res = absfunc(x)
assert_equal(res, 0.0)
def test_builtin_abs(self):
self._test_abs_func(abs)
def test_numpy_abs(self):
self._test_abs_func(np.abs)
if __name__ == "__main__":
run_module_suite()
|
unho/pootle | refs/heads/master | pootle/core/views/base.py | 5 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.utils.functional import cached_property
from django.utils.translation import get_language
from django.views.decorators.cache import never_cache
from django.views.generic import DetailView
from pootle.core.delegate import site_languages
from pootle.core.url_helpers import get_path_parts
from pootle.i18n.gettext import ugettext as _
from pootle_app.models.permissions import check_permission
from pootle_misc.util import ajax_required
from .decorators import requires_permission, set_permissions
from .mixins import GatherContextMixin, PootleJSONMixin
class PootleDetailView(GatherContextMixin, DetailView):
translate_url_path = ""
browse_url_path = ""
resource_path = ""
view_name = ""
sw_version = 0
ns = "pootle.core"
@property
def browse_url(self):
return reverse(
self.browse_url_path,
kwargs=self.url_kwargs)
@property
def cache_key(self):
return (
"%s.%s.%s.%s"
% (self.page_name,
self.view_name,
self.object.data_tool.cache_key,
self.request_lang))
@property
def request_lang(self):
return get_language()
@cached_property
def has_admin_access(self):
return check_permission('administrate', self.request)
@property
def language(self):
if self.tp:
return self.tp.language
@property
def permission_context(self):
return self.get_object()
@property
def pootle_path(self):
return self.object.pootle_path
@property
def project(self):
if self.tp:
return self.tp.project
@property
def tp(self):
return None
@property
def translate_url(self):
return reverse(
self.translate_url_path,
kwargs=self.url_kwargs)
@set_permissions
@requires_permission("view")
def dispatch(self, request, *args, **kwargs):
# get funky with the request 8/
return super(PootleDetailView, self).dispatch(request, *args, **kwargs)
@property
def languages(self):
languages = site_languages.get()
languages = (
languages.all_languages
if self.has_admin_access
else languages.languages)
lang_map = {
v: k
for k, v
in languages.items()}
return OrderedDict(
(lang_map[v], v)
for v
in sorted(languages.values()))
def get_context_data(self, *args, **kwargs):
return {
'object': self.object,
'pootle_path': self.pootle_path,
'project': self.project,
'language': self.language,
"all_languages": self.languages,
'translation_project': self.tp,
'has_admin_access': self.has_admin_access,
'resource_path': self.resource_path,
'resource_path_parts': get_path_parts(self.resource_path),
'translate_url': self.translate_url,
'browse_url': self.browse_url,
'paths_placeholder': _("Entire Project"),
'unit_api_root': "/xhr/units/"}
class PootleJSON(PootleJSONMixin, PootleDetailView):
@never_cache
@method_decorator(ajax_required)
@set_permissions
@requires_permission("view")
def dispatch(self, request, *args, **kwargs):
return super(PootleJSON, self).dispatch(request, *args, **kwargs)
class PootleAdminView(DetailView):
@set_permissions
@requires_permission("administrate")
def dispatch(self, request, *args, **kwargs):
return super(PootleAdminView, self).dispatch(request, *args, **kwargs)
@property
def permission_context(self):
return self.get_object().directory
def post(self, *args, **kwargs):
return self.get(*args, **kwargs)
|
bowang/tensorflow | refs/heads/master | tensorflow/python/kernel_tests/distributions/exponential_test.py | 76 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for initializers."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import importlib
import numpy as np
from tensorflow.python.client import session
from tensorflow.python.framework import constant_op
from tensorflow.python.ops import nn_ops
from tensorflow.python.ops.distributions import exponential as exponential_lib
from tensorflow.python.platform import test
from tensorflow.python.platform import tf_logging
def try_import(name): # pylint: disable=invalid-name
module = None
try:
module = importlib.import_module(name)
except ImportError as e:
tf_logging.warning("Could not import %s: %s" % (name, str(e)))
return module
stats = try_import("scipy.stats")
class ExponentialTest(test.TestCase):
def testExponentialLogPDF(self):
with session.Session():
batch_size = 6
lam = constant_op.constant([2.0] * batch_size)
lam_v = 2.0
x = np.array([2.5, 2.5, 4.0, 0.1, 1.0, 2.0], dtype=np.float32)
exponential = exponential_lib.Exponential(rate=lam)
log_pdf = exponential.log_prob(x)
self.assertEqual(log_pdf.get_shape(), (6,))
pdf = exponential.prob(x)
self.assertEqual(pdf.get_shape(), (6,))
if not stats:
return
expected_log_pdf = stats.expon.logpdf(x, scale=1 / lam_v)
self.assertAllClose(log_pdf.eval(), expected_log_pdf)
self.assertAllClose(pdf.eval(), np.exp(expected_log_pdf))
def testExponentialCDF(self):
with session.Session():
batch_size = 6
lam = constant_op.constant([2.0] * batch_size)
lam_v = 2.0
x = np.array([2.5, 2.5, 4.0, 0.1, 1.0, 2.0], dtype=np.float32)
exponential = exponential_lib.Exponential(rate=lam)
cdf = exponential.cdf(x)
self.assertEqual(cdf.get_shape(), (6,))
if not stats:
return
expected_cdf = stats.expon.cdf(x, scale=1 / lam_v)
self.assertAllClose(cdf.eval(), expected_cdf)
def testExponentialMean(self):
with session.Session():
lam_v = np.array([1.0, 4.0, 2.5])
exponential = exponential_lib.Exponential(rate=lam_v)
self.assertEqual(exponential.mean().get_shape(), (3,))
if not stats:
return
expected_mean = stats.expon.mean(scale=1 / lam_v)
self.assertAllClose(exponential.mean().eval(), expected_mean)
def testExponentialVariance(self):
with session.Session():
lam_v = np.array([1.0, 4.0, 2.5])
exponential = exponential_lib.Exponential(rate=lam_v)
self.assertEqual(exponential.variance().get_shape(), (3,))
if not stats:
return
expected_variance = stats.expon.var(scale=1 / lam_v)
self.assertAllClose(exponential.variance().eval(), expected_variance)
def testExponentialEntropy(self):
with session.Session():
lam_v = np.array([1.0, 4.0, 2.5])
exponential = exponential_lib.Exponential(rate=lam_v)
self.assertEqual(exponential.entropy().get_shape(), (3,))
if not stats:
return
expected_entropy = stats.expon.entropy(scale=1 / lam_v)
self.assertAllClose(exponential.entropy().eval(), expected_entropy)
def testExponentialSample(self):
with self.test_session():
lam = constant_op.constant([3.0, 4.0])
lam_v = [3.0, 4.0]
n = constant_op.constant(100000)
exponential = exponential_lib.Exponential(rate=lam)
samples = exponential.sample(n, seed=137)
sample_values = samples.eval()
self.assertEqual(sample_values.shape, (100000, 2))
self.assertFalse(np.any(sample_values < 0.0))
if not stats:
return
for i in range(2):
self.assertLess(
stats.kstest(
sample_values[:, i], stats.expon(scale=1.0 / lam_v[i]).cdf)[0],
0.01)
def testExponentialSampleMultiDimensional(self):
with self.test_session():
batch_size = 2
lam_v = [3.0, 22.0]
lam = constant_op.constant([lam_v] * batch_size)
exponential = exponential_lib.Exponential(rate=lam)
n = 100000
samples = exponential.sample(n, seed=138)
self.assertEqual(samples.get_shape(), (n, batch_size, 2))
sample_values = samples.eval()
self.assertFalse(np.any(sample_values < 0.0))
if not stats:
return
for i in range(2):
self.assertLess(
stats.kstest(
sample_values[:, 0, i],
stats.expon(scale=1.0 / lam_v[i]).cdf)[0],
0.01)
self.assertLess(
stats.kstest(
sample_values[:, 1, i],
stats.expon(scale=1.0 / lam_v[i]).cdf)[0],
0.01)
def testExponentialWithSoftplusRate(self):
with self.test_session():
lam = [-2.2, -3.4]
exponential = exponential_lib.ExponentialWithSoftplusRate(rate=lam)
self.assertAllClose(nn_ops.softplus(lam).eval(),
exponential.rate.eval())
if __name__ == "__main__":
test.main()
|
snehasi/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/wptserve/tests/functional/docroot/test_tuple_3.py | 467 | def main(request, response):
return (202, "Giraffe"), [("Content-Type", "text/html"), ("X-Test", "PASS")], "PASS"
|
sunjerry019/photonLauncher | refs/heads/master | micron/project_guimicro/guimicro.py | 1 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# final level Graphical User Interface for stagecontrol.py
# Swapped to PyQt5 from Tkinter, because the former is more powerful/intuitive to implement features
# microgui will pair functions with commands imported from stagecontrol.py which uses raster in turn
# I'm sorry to whoever has to maintain this GUI code. I tried my best to make it as clear and precise as
# possible but it like trying to make a HTML page using pure JavaScript and it's well...messy
# The helper codes used in this are meant to be extensible for any weird scale coding projects that you might want
# Made 2019, Sun Yudong, Wu Mingsong
# sunyudong [at] outlook [dot] sg, mingsongwu [at] outlook [dot] sg
import sys, os
# import pathlib
from PyQt5 import QtCore, QtGui, QtWidgets
import time, datetime
from PIL import Image as PILImage
import argparse
# AUDIO
from contextlib import redirect_stdout
import io, threading
# threading for interrupt
# multiprocessing so we can terminate the processes on abort
import traceback
import math
from functools import reduce
# To catch Ctrl+C
import signal
import platform, ctypes # For Windows Icon
base_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.abspath(os.path.join(base_dir, ".."))
sys.path.insert(0, root_dir)
import stagecontrol, picConv
import servos
from micron import Stage as mstage # for default x and y lims
from extraFunctions import moveToCentre, ThreadWithExc, DoneObject
if platform.system() == "Windows":
from pycaw.pycaw import AudioUtilities, ISimpleAudioVolume
class MicroGui(QtWidgets.QMainWindow):
def __init__(self, devMode = False, noHome = False):
super().__init__()
self.micronInitialized = False
self.currentStatus = ""
self.devMode = devMode
self.noHome = noHome
self.customicon = os.path.join(base_dir, 'icons', 'guimicro.svg')
self._DP_optionsChangedFlag = False
# symboldefs
self.MICROSYMBOL = u"\u00B5"
self.KEYSTROKE_TIMEOUT = 10 # ms
# Default based on 100ums / 10um
# need to change on speed and interval change
self.initUI()
def initUI(self):
self.setGeometry(50, 50, 800, 700) # x, y, w, h
# moveToCentre(self)
self.setWindowTitle('Micos Stage Controller MARK II 0.15b')
self.setWindowIcon(QtGui.QIcon(self.customicon))
# Essentially the steps for the gui works like this
# Create a widget -> Create a layout -> Add widgets to layout -> Assign layout to widget -> Assign widget to window
# FONTS AND STYLES
# TODO INSERT SOME HERE
# WINDOW_WIDGET
self.window_widget = QtWidgets.QWidget()
self.window_layout = QtWidgets.QVBoxLayout()
# MENU
self.createMenu()
# / MENU
# MODE WIDGET
self.mode_widget = self.createModes()
self.window_layout.addWidget(self.mode_widget)
# / MODE WIDGET
# MAIN WIDGET
self.main_widget = QtWidgets.QStackedWidget() # We use stacked widget to avoid using a stackedlayout
# Add widgets in order of the top menu
# DrawPic, Single Raster, Array Raster, Stage Movement
self.drawpic_widget = self.create_drawpic()
self.single_raster_widget = self.create_single_raster()
self.array_raster_widget = self.create_array_raster()
self.stage_widget = self.create_stage()
self.main_widget.addWidget(self.drawpic_widget)
self.main_widget.addWidget(self.array_raster_widget)
self.main_widget.addWidget(self.single_raster_widget)
self.main_widget.addWidget(self.stage_widget)
# / MAIN WIDGET
self.window_layout.addWidget(self.main_widget)
# SHUTTER WIDGET
self.shutter_widget = self.create_shutter_control()
self.window_layout.addWidget(self.shutter_widget)
# / SHUTTER WIDGET
# STATUS BAR WIDGET
self.statusBarWidget = QtWidgets.QStatusBar()
self._statusbar_label = QtWidgets.QLabel("status")
self.setStyleSheet("QStatusBar::item { border: 0px solid black };"); # Remove border around the status
self.statusBarWidget.addWidget(self._statusbar_label, stretch = 1)
self.setStatusBar(self.statusBarWidget)
# / STATUS BAR WIDGET
# / WINDOW_WIDGET
self.window_widget.setLayout(self.window_layout)
# WRAP UP
self.setCentralWidget(self.window_widget)
self.initSettings()
self.initEventListeners()
self.initializeDevice()
self.winAudioSetMuted(False)
self.recalculateARValues()
# Set to the last menu item
self.showPage(self.main_widget.count() - 1)
if platform.system() == "Windows":
self.resize(self.minimumSizeHint())
moveToCentre(self)
# Show actual window
self.show()
def initSettings(self):
# Here we make a QSettings Object and read data from it to populate default variables
QtCore.QCoreApplication.setOrganizationName("NUS Nanomaterials Lab")
QtCore.QCoreApplication.setOrganizationDomain("physics.nus.edu.sg")
QtCore.QCoreApplication.setApplicationName("Micos Stage Controller and Shutter")
# These settings are to be shared between this and shutterbtn
self.qsettings = QtCore.QSettings()
self.set_shutterAbsoluteMode = self.qsettings.value("shutter/absoluteMode", True, type = bool)
self.set_shutterChannel = self.qsettings.value("shutter/channel", servos.Servo.RIGHTCH, type = int)
self.set_powerAbsoluteMode = self.qsettings.value("power/absoluteMode", False, type = bool)
self.set_invertx = self.qsettings.value("stage/invertx", False, type = bool)
self.set_inverty = self.qsettings.value("stage/inverty", False, type = bool)
self.set_stageConfig = self.qsettings.value("stage/config", None, type = dict) # Should be a dictionary
self.explicitNoHomeSet = self.noHome
self.noHome = self.qsettings.value("stage/noHome", False, type = bool) if not self.noHome else self.noHome
# Load nohome from settings only if not explicitly specified ^
self.set_noFinishTone = self.qsettings.value("audio/noFinishTone", True, type = bool)
self.logconsole("Settings Loaded:\n\tShutterAbsolute = {}\n\tShutterChannel = {}\n\tPowerAbsolute = {}\n\tInvert-X = {}\n\tInvert-Y = {}\n\tStageConfig = {}\n\tnoHome = {}\n\tnoFinishTone = {}".format(
self.set_shutterAbsoluteMode ,
self.set_shutterChannel ,
self.set_powerAbsoluteMode ,
self.set_invertx ,
self.set_inverty ,
self.set_stageConfig ,
self.noHome ,
self.set_noFinishTone ,
))
# Update GUI Checkboxes
self._SL_invertx_checkbox.setChecked(self.set_invertx)
self._SL_inverty_checkbox.setChecked(self.set_inverty)
# Settings will be reloaded whenever the settings window is called
# self.qsettings.sync()
def startInterruptHandler(self):
# Usually not started because signal doesn't work with PyQt anyway
# https://stackoverflow.com/a/4205386/3211506
signal.signal(signal.SIGINT, self.KeyboardInterruptHandler)
def KeyboardInterruptHandler(self, signal = None, frame = None, abortTrigger = False):
# 2 args above for use with signal.signal
# ALt + B also aborts
# Disable the abort button
self._abortBtn.setEnabled(False)
self._abortBtn.setStyleSheet("background-color: #ccc;")
# Close shutter
self.stageControl.controller.shutter.quietLog = True
if not abortTrigger:
self.setOperationStatus("^C Detected: Aborting the FIFO stack. Shutter will be closed as part of the aborting process.")
else:
self.setOperationStatus("Aborting the FIFO stack. Shutter will be closed as part of the aborting process.")
self.stageControl.controller.shutter.close()
self.stageControl.controller.shutter.quietLog = False
# / Close shutter
# End all running threads
main_thread = threading.main_thread()
for p in threading.enumerate():
if p is main_thread:
continue
if isinstance(p, ThreadWithExc):
p.terminate()
# / End all running threads
if not self.devMode:
self.stageControl.controller.abort()
self._SR_start.setEnabled(True)
self._AR_start.setEnabled(True)
# Enable the abort button
self._abortBtn.setStyleSheet("background-color: #DF2928;")
self._abortBtn.setEnabled(True)
# self.dev.close()
# print("Exiting")
# sys.exit(1)
# use os._exit(1) to avoid raising any SystemExit exception
def initializeDevice(self):
# We create a blocked window which the user cannot close
initWindow = QtWidgets.QDialog()
initWindow.setWindowTitle("Initializing...")
self.setOperationStatus("Initializing StageControl()")
initWindow.setGeometry(50, 50, 300, 200)
initWindow.setWindowFlags(QtCore.Qt.WindowTitleHint | QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.CustomizeWindowHint)
initWindow.setWindowIcon(QtGui.QIcon(self.customicon))
moveToCentre(initWindow)
initWindow_layout = QtWidgets.QVBoxLayout()
initWindow_wrapper_widget = QtWidgets.QWidget()
initWindow_wrapper_layout = QtWidgets.QVBoxLayout()
statusLabel = QtWidgets.QLabel("Initializing...")
statusLabel.setWordWrap(True)
statusLabel.setMaximumWidth(250)
topLabel = QtWidgets.QLabel("--- INITIALIZING STAGECONTROL---")
topLabel.setAlignment(QtCore.Qt.AlignCenter)
bottomLabel = QtWidgets.QLabel("-- PLEASE WAIT AND DO NOT CLOSE --")
bottomLabel.setAlignment(QtCore.Qt.AlignCenter)
lineC = QtWidgets.QFrame()
lineC.setFrameShape(QtWidgets.QFrame.HLine);
lineD = QtWidgets.QFrame()
lineD.setFrameShape(QtWidgets.QFrame.HLine);
initWindow_wrapper_layout.addWidget(topLabel)
initWindow_wrapper_layout.addWidget(lineC)
initWindow_wrapper_layout.addStretch(1)
initWindow_wrapper_layout.addWidget(statusLabel)
initWindow_wrapper_layout.addStretch(1)
initWindow_wrapper_layout.addWidget(lineD)
initWindow_wrapper_layout.addWidget(bottomLabel)
initWindow_wrapper_widget.setLayout(initWindow_wrapper_layout)
initWindow_layout.addWidget(initWindow_wrapper_widget)
initWindow.setLayout(initWindow_layout)
# We create a file-like object to capture the micron-messages
f = io.StringIO()
l = []
def initMicron():
self.stageControl = None
with redirect_stdout(f):
if self.devMode:
# Following code is for testing and emulation of homing commands
# for i in range(2):
# print("Message number:", i)
# time.sleep(1)
self.stageControl = stagecontrol.StageControl(noCtrlCHandler = True, devMode = True, GUI_Object = self, shutter_channel = self.set_shutterChannel, shutterAbsolute = self.set_shutterAbsoluteMode, powerAbsolute = self.set_powerAbsoluteMode, noFinishTone = self.set_noFinishTone)
else:
try:
self.stageControl = stagecontrol.StageControl(
noCtrlCHandler = True,
GUI_Object = self,
noHome = self.noHome,
noinvertx = -1 if self.set_invertx else 1,
noinverty = -1 if self.set_inverty else 1,
stageConfig = self.set_stageConfig,
shutter_channel = self.set_shutterChannel,
shutterAbsolute = self.set_shutterAbsoluteMode,
powerAbsolute = self.set_powerAbsoluteMode,
noFinishTone = self.set_noFinishTone,
)
except RuntimeError as e:
initWindow.close()
# mb.setTextFormat(Qt.RichText)
# mb.setDetailedText(message)
# msgBox.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.EL_self_criticalDialog.emit("System has encountered a RuntimeError and will now exit.", "Oh no!", "Error: {}".format(e), True)
# Clean up unneeded settings
del self.set_shutterChannel
del self.set_shutterAbsoluteMode
del self.set_powerAbsoluteMode
del self.set_invertx
del self.set_inverty
del self.set_stageConfig
del self.set_noFinishTone
self.micronInitialized = True
self.setOperationStatus("StageControl Initialized")
def printStuff():
prevValue = ""
while True:
q = f.getvalue()
if q != prevValue:
prevValue = q
status = q.split("\n")[-2].strip()
# l.append(status)
# initWindow.setWindowTitle(q.split()[-1].strip())
self.setOperationStatus(status, printToTerm = False)
statusLabel.setText(status)
if threading.activeCount() == baselineThreads:
# The initialization is done and we quit the initWindow
self.updatePositionDisplay()
initWindow.close()
break
time.sleep(0.5) # We have to sleep to release the lock on f
thread1 = threading.Thread(target = initMicron, args = ())
thread2 = threading.Thread(target = printStuff, args = ())
thread1.start()
baselineThreads = threading.activeCount()
thread2.start()
# We need exec so that the event loop is started to show the widgets
initWindow.exec_()
# We end the initWindow from the thread itself since code below .exec() doesn't actually get run
# This is because .exec() starts a loop that blocks the process
# exec() and exec_() is equivalent for Py3
# thread1.join()
# thread2.join()
# initWindow.close()
# We declare a decorator to initialize a widget and assign the layout
def make_widget_from_layout(function):
def wrapper(self):
# We create a widget
widget = QtWidgets.QWidget()
# Get the layout
layout = function(self, widget)
# Assign the layout to the widget
widget.setLayout(layout)
return widget
return wrapper
# Menu
def createMenu(self):
menu_bar = self.menuBar()
# File Menu
file_menu = menu_bar.addMenu("File")
settings = QtWidgets.QAction("Settings", self)
settings.setShortcut("Ctrl+,")
settings.setStatusTip('Configure the application')
settings.triggered.connect(self.showSettings)
file_menu.addAction(settings)
quit = QtWidgets.QAction("Quit", self)
quit.setShortcut("Ctrl+Q")
quit.setStatusTip('Exit application')
quit.triggered.connect(self.close)
file_menu.addAction(quit)
# Help Menu
help_menu = menu_bar.addMenu("Help")
about = QtWidgets.QAction("About", self)
about.setStatusTip('About this application')
about.triggered.connect(self.showAbout)
help_menu.addAction(about)
def showAbout(self):
self.exPopup = aboutPopUp(parent = self)
self.exPopup.exec_() # show()
# buttonReply = QtWidgets.QMessageBox.about(self, 'About', "Made 2019, Sun Yudong, Wu Mingsong\n\nsunyudong [at] outlook [dot] sg\n\nmingsongwu [at] outlook [dot] sg")
def showSettings(self):
self.settingsScreen = SettingsScreen(parent = self)
self.settingsScreen.exec_()
# Top row buttons
@make_widget_from_layout
def createModes(self, widget):
_mode_layout = QtWidgets.QHBoxLayout()
self._modes = [
QtWidgets.QPushButton("Draw &Picture") ,
QtWidgets.QPushButton("&Array Raster") ,
QtWidgets.QPushButton("Single &Raster") ,
QtWidgets.QPushButton("&Stage Movement")
]
# for i, btn in enumerate(_modes):
# _modes[i].clicked.connect(lambda: self.showPage(i))
# Somehow I cannot dynamic the showpage index
self._modes[0].clicked.connect(lambda: self.showPage(0))
self._modes[1].clicked.connect(lambda: self.showPage(1))
self._modes[2].clicked.connect(lambda: self.showPage(2))
self._modes[3].clicked.connect(lambda: self.showPage(3))
for btn in self._modes:
_mode_layout.addWidget(btn)
return _mode_layout
def showPage(self, page):
# Page 0 = Draw Picture
# Page 1 = Array Raster
# Page 2 = Single Raster
# Page 3 = Stage Movement
# Change colour of the current tab
self._modes[self.main_widget.currentIndex()].setStyleSheet("")
self._modes[page].setStyleSheet("border : 0px; border-bottom : 4px solid #09c; padding-bottom: 3px; padding-top: -3px")
self.main_widget.setCurrentIndex(page)
if page == 3:
self.updatePositionDisplay()
# Shutter Control layout
@make_widget_from_layout
def create_shutter_control(self, widget):
_shutter_layout = QtWidgets.QGridLayout()
# Shutter controls
self._shutter_label = QtWidgets.QLabel("Shutter Controls")
self._shutter_state = QtWidgets.QLabel() # Change color
self._open_shutter = QtWidgets.QPushButton("&Open")
self._close_shutter = QtWidgets.QPushButton("&Close")
self._abortBtn = QtWidgets.QPushButton("A&bort")
self._shutter_state.setStyleSheet("QLabel { background-color: #DF2928; }")
self._shutter_state.setAlignment(QtCore.Qt.AlignCenter)
self._abortBtn.setMinimumHeight(50)
self._abortBtn.setStyleSheet("background-color: #DF2928;")
_shutter_layout.addWidget(self._shutter_label, 0, 0)
_shutter_layout.addWidget(self._shutter_state, 0, 1)
_shutter_layout.addWidget(self._open_shutter, 0, 2)
_shutter_layout.addWidget(self._close_shutter, 0, 3)
_shutter_layout.addWidget(self._abortBtn, 1, 0, 1, 4)
return _shutter_layout
# first layout
@make_widget_from_layout
def create_stage(self, widget):
# Create all child elements
# need to link to stagecontrol to read position of controllers
# LCDS
_lcdx_label = QtWidgets.QLabel("Current X")
_lcdy_label = QtWidgets.QLabel("Current Y")
_lcdx_label.setAlignment(QtCore.Qt.AlignCenter)
_lcdy_label.setAlignment(QtCore.Qt.AlignCenter)
_lcdx_label.setMaximumHeight(20)
_lcdy_label.setMaximumHeight(20)
self._lcdx = QtWidgets.QLCDNumber()
self._lcdx.setDigitCount(8)
self._lcdx.setSmallDecimalPoint(True)
self._lcdx.setMaximumHeight(200)
self._lcdx.setMinimumHeight(150)
self._lcdy = QtWidgets.QLCDNumber()
self._lcdy.setDigitCount(8)
self._lcdy.setSmallDecimalPoint(True)
self._lcdy.setMaximumHeight(200)
self._lcdy.setMinimumHeight(150)
# TODO: Some styling here for the QLCD number
# BUTTONS
self._upArrow = QtWidgets.QPushButton(u'\u21E7')
self._downArrow = QtWidgets.QPushButton(u'\u21E9')
self._leftArrow = QtWidgets.QPushButton(u'\u21E6')
self._rightArrow = QtWidgets.QPushButton(u'\u21E8')
self._homeBtn = QtWidgets.QPushButton("Home\nStage")
self._stage_buttons = [
self._upArrow ,
self._downArrow ,
self._leftArrow ,
self._rightArrow ,
self._homeBtn ,
]
for btn in self._stage_buttons:
btn.setSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
btn.setMaximumHeight(150)
self.arrowFont = QtGui.QFont("Arial", 30)
self.arrowFont.setBold(True)
self._upArrow.setFont(self.arrowFont); self._downArrow.setFont(self.arrowFont); self._leftArrow.setFont(self.arrowFont); self._rightArrow.setFont(self.arrowFont);
# SETTINGS AND PARAMS
_velocity_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_velocity_label.setAlignment(QtCore.Qt.AlignRight)
_step_size_label = QtWidgets.QLabel("Step size ({}m)".format(self.MICROSYMBOL))
self._SL_velocity = QtWidgets.QLineEdit()
self._SL_velocity.setText('100')
self._SL_velocity.setValidator(QtGui.QDoubleValidator(0,10000, 12))
# _velocity.setFont(QtGui.QFont("Arial",20))
self._SL_step_size = QtWidgets.QLineEdit()
self._SL_step_size.setText('10')
self._SL_step_size.setValidator(QtGui.QDoubleValidator(0.5,10000, 12))
# _step_size.setFont(QtGui.QFont("Arial",20))
_SL_settings = QtWidgets.QWidget()
_SL_settings_layout = QtWidgets.QVBoxLayout()
self._SL_invertx_checkbox = QtWidgets.QCheckBox("Invert Horizontal")
self._SL_inverty_checkbox = QtWidgets.QCheckBox("Invert Vertical")
_SL_settings_layout.addWidget(self._SL_invertx_checkbox)
_SL_settings_layout.addWidget(self._SL_inverty_checkbox)
_SL_settings.setLayout(_SL_settings_layout)
# Create the layout with the child elements
_stage_layout = QtWidgets.QGridLayout()
# void QGridLayout::addWidget(QWidget *widget, int row, int column, Qt::Alignment alignment = Qt::Alignment())
# void QGridLayout::addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = Qt::Alignment())
# currx, y label
_stage_layout.addWidget(_lcdx_label, 0, 1, 1, 2)
_stage_layout.addWidget(_lcdy_label, 0, 3, 1, 2)
_stage_layout.addWidget(self._lcdx, 1, 1, 1, 2)
_stage_layout.addWidget(self._lcdy, 1, 3, 1, 2)
_stage_layout.addWidget(_lcdx_label, 0, 1, 1, 2)
_stage_layout.addWidget(_lcdy_label, 0, 3, 1, 2)
_stage_layout.addWidget(_velocity_label, 2, 0)
_stage_layout.addWidget(self._SL_velocity, 2, 1, 1, 2)
_stage_layout.addWidget(self._SL_step_size, 2, 3, 1, 2)
_stage_layout.addWidget(_step_size_label, 2, 5)
_stage_layout.addWidget(self._upArrow, 4, 2, 1, 2)
_stage_layout.addWidget(self._downArrow, 5, 2, 1, 2)
_stage_layout.addWidget(self._leftArrow, 5, 0, 1, 2)
_stage_layout.addWidget(self._rightArrow, 5, 4, 1, 2)
_stage_layout.addWidget(_SL_settings, 4, 4, 1, 2)
_stage_layout.addWidget(self._homeBtn, 4, 0, 1, 2)
return _stage_layout
# second layout
@make_widget_from_layout
def create_single_raster(self, widget):
_single_raster_layout = QtWidgets.QGridLayout()
# Velocity and power adjustments
_SR_params = QtWidgets.QGroupBox("Parameters")
_SR_params_layout = QtWidgets.QGridLayout()
_SR_vel_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_SR_vel_label.setAlignment(QtCore.Qt.AlignHCenter| QtCore.Qt.AlignVCenter)
_SR_pow_label = QtWidgets.QLabel("Power (steps)")
_SR_pow_label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter)
self._SR_pow_up = QtWidgets.QPushButton("++")
self._SR_pow_up.setToolTip("Increase Power")
self._SR_pow_dn = QtWidgets.QPushButton("--")
self._SR_pow_dn.setToolTip("Decrease Power")
self._SR_pow_step = QtWidgets.QLineEdit()
self._SR_pow_step.setText('1')
self._SR_pow_step.setValidator(QtGui.QIntValidator(0,10000))
self._SR_pow_step.setAlignment(QtCore.Qt.AlignHCenter)
self._SR_velocity = QtWidgets.QLineEdit()
self._SR_velocity.setText('100')
self._SR_velocity.setValidator(QtGui.QDoubleValidator(0,10000, 12))
self._SR_velocity.setAlignment(QtCore.Qt.AlignHCenter)
_SR_params_layout.addWidget(_SR_vel_label, 0, 0, 1, 1)
_SR_params_layout.addWidget(self._SR_velocity, 1, 0, 1, 1)
_SR_params_layout.addWidget(_SR_pow_label, 0, 1, 1, 1)
_SR_params_layout.addWidget(self._SR_pow_step, 1, 1, 1, 1)
_SR_params_layout.addWidget(self._SR_pow_up, 0, 2, 1, 1)
_SR_params_layout.addWidget(self._SR_pow_dn, 1, 2, 1, 1)
_SR_params_layout.setColumnStretch(0, 1)
_SR_params_layout.setColumnStretch(1, 1)
_SR_params_layout.setColumnStretch(2, 1)
_SR_params.setLayout(_SR_params_layout)
# / Velocity and power adjustments
# Box Settings
_SR_settings = QtWidgets.QGroupBox("Settings")
_SR_settings_layout = QtWidgets.QGridLayout()
_SR_size_y_label = QtWidgets.QLabel("Height ({}m)".format(self.MICROSYMBOL))
_SR_size_y_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_SR_size_x_label = QtWidgets.QLabel("Width ({}m)".format(self.MICROSYMBOL))
_SR_size_x_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_SR_step_size_label = QtWidgets.QLabel("Step Size ({}m)".format(self.MICROSYMBOL))
_SR_step_size_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._SR_size_x = QtWidgets.QLineEdit()
self._SR_size_x.setText("10")
self._SR_size_x.setValidator(QtGui.QDoubleValidator(1,10000,12))
self._SR_size_y = QtWidgets.QLineEdit()
self._SR_size_y.setText("10")
self._SR_size_y.setValidator(QtGui.QDoubleValidator(1,10000,12))
self._SR_step_size = QtWidgets.QLineEdit()
self._SR_step_size.setText("1")
self._SR_step_size.setValidator(QtGui.QDoubleValidator(0.1,10000,12))
self._SR_raster_x = QtWidgets.QCheckBox()
self._SR_raster_y = QtWidgets.QCheckBox()
self._SR_raster_y.setChecked(True)
_SR_raster_step_along_label = QtWidgets.QLabel("Steps?")
_SR_raster_step_along_label.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeft)
self._SR_raster_style = QtWidgets.QLabel("Filled square\nContinuous along y-axis")
self._SR_raster_style.setAlignment(QtCore.Qt.AlignVCenter | QtCore.Qt.AlignRight)
_SR_settings_layout.addWidget(_SR_step_size_label, 0, 0)
_SR_settings_layout.addWidget(self._SR_step_size, 0, 1)
_SR_settings_layout.addWidget(_SR_raster_step_along_label, 0, 2)
_SR_settings_layout.addWidget(self._SR_raster_y, 1, 2)
_SR_settings_layout.addWidget(self._SR_raster_x, 2, 2)
_SR_settings_layout.addWidget(_SR_size_y_label, 1, 0)
_SR_settings_layout.addWidget(_SR_size_x_label, 2, 0)
_SR_settings_layout.addWidget(self._SR_size_y, 1, 1)
_SR_settings_layout.addWidget(self._SR_size_x, 2, 1)
_SR_settings_layout.addWidget(self._SR_raster_style, 3, 0, 1, 3)
_SR_settings.setLayout(_SR_settings_layout)
# / Box Settings
# Action Buttons
_SR_action_btns = QtWidgets.QWidget()
_SR_action_btns_layout = QtWidgets.QGridLayout()
# https://stackoverflow.com/a/33793752/3211506
_SR_action_btns_spacer = QtWidgets.QSpacerItem(0, 0, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self._SR_retToOri = QtWidgets.QCheckBox("Return to Origin")
self._SR_retToOri.setChecked(True)
self._SR_start = QtWidgets.QPushButton("START")
_SR_action_btns_layout.setColumnStretch(0, 0)
_SR_action_btns_layout.addItem(_SR_action_btns_spacer, 0, 0)
_SR_action_btns_layout.addWidget(self._SR_retToOri, 1, 0)
_SR_action_btns_layout.addWidget(self._SR_start, 2, 0)
_SR_action_btns.setLayout(_SR_action_btns_layout)
# / Action Buttons
_single_raster_layout.addWidget(_SR_settings, 0, 1, 1, 1)
_single_raster_layout.addWidget(_SR_params, 1, 1, 1, 1)
_single_raster_layout.addWidget(_SR_action_btns, 2, 1, 1, 1)
_single_raster_layout.setColumnStretch(0, 1)
_single_raster_layout.setColumnStretch(1, 2)
_single_raster_layout.setColumnStretch(2, 1)
return _single_raster_layout
# third layout
@make_widget_from_layout
def create_array_raster(self, widget):
# https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/core/Qt.AlignmentFlag.html
# Widget Defs
# AR_initial_settings
_AR_initial_settings = QtWidgets.QGroupBox("Initial Values")
_AR_initial_settings_layout = QtWidgets.QGridLayout()
_AR_init_vel_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_AR_init_vel_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_init_pow_label = QtWidgets.QLabel("Power (steps)")
_AR_init_pow_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_init_velocity = QtWidgets.QLineEdit()
self._AR_init_velocity.setText('100')
self._AR_init_velocity.setValidator(QtGui.QDoubleValidator(0,10000, 12))
self._AR_init_power = QtWidgets.QLineEdit()
self._AR_init_power.setText('0')
self._AR_init_power.setValidator(QtGui.QIntValidator(0,10000))
_AR_initial_settings_layout.addWidget(_AR_init_vel_label, 0, 0)
_AR_initial_settings_layout.addWidget(_AR_init_pow_label, 1, 0)
_AR_initial_settings_layout.addWidget(self._AR_init_velocity, 0, 1)
_AR_initial_settings_layout.addWidget(self._AR_init_power, 1, 1)
_AR_initial_settings.setLayout(_AR_initial_settings_layout)
# / AR_initial_settings
# AR_X_final_settings
self._AR_X_final_settings = QtWidgets.QGroupBox("Calculated Final Values")
_AR_X_final_settings_layout = QtWidgets.QGridLayout()
_AR_X_final_vel_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_AR_X_final_vel_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_X_final_pow_label = QtWidgets.QLabel("Power (steps)")
_AR_X_final_pow_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_X_final_velocity = QtWidgets.QLabel("0")
self._AR_X_final_power = QtWidgets.QLabel("0")
self._AR_X_final_velocity.setAlignment(QtCore.Qt.AlignVCenter)
self._AR_X_final_power.setAlignment(QtCore.Qt.AlignVCenter)
_AR_X_final_settings_layout.addWidget(_AR_X_final_vel_label, 0, 0)
_AR_X_final_settings_layout.addWidget(_AR_X_final_pow_label, 1, 0)
_AR_X_final_settings_layout.addWidget(self._AR_X_final_velocity, 0, 1)
_AR_X_final_settings_layout.addWidget(self._AR_X_final_power, 1, 1)
self._AR_X_final_settings.setLayout(_AR_X_final_settings_layout)
# / AR_X_final_settings
# AR_Y_final_settings
self._AR_Y_final_settings = QtWidgets.QGroupBox("Calculated Final Values")
_AR_Y_final_settings_layout = QtWidgets.QGridLayout()
_AR_Y_final_vel_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_AR_Y_final_vel_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_Y_final_pow_label = QtWidgets.QLabel("Power (steps)")
_AR_Y_final_pow_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_Y_final_velocity = QtWidgets.QLabel("0")
self._AR_Y_final_power = QtWidgets.QLabel("0")
self._AR_Y_final_velocity.setAlignment(QtCore.Qt.AlignVCenter)
self._AR_Y_final_power.setAlignment(QtCore.Qt.AlignVCenter)
_AR_Y_final_settings_layout.addWidget(_AR_Y_final_vel_label, 0, 0)
_AR_Y_final_settings_layout.addWidget(_AR_Y_final_pow_label, 1, 0)
_AR_Y_final_settings_layout.addWidget(self._AR_Y_final_velocity, 0, 1)
_AR_Y_final_settings_layout.addWidget(self._AR_Y_final_power, 1, 1)
self._AR_Y_final_settings.setLayout(_AR_Y_final_settings_layout)
# / AR_Y_final_settings
# X Interval
_AR_X_interval_settings = QtWidgets.QGroupBox("Horizontal Settings")
_AR_X_interval_settings_layout = QtWidgets.QGridLayout()
self._AR_X_mode = QtWidgets.QComboBox()
self._AR_X_mode.addItem("Velocity")
self._AR_X_mode.addItem("Power")
_AR_cols_label = QtWidgets.QLabel("NCols")
_AR_cols_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_cols = QtWidgets.QLineEdit()
self._AR_cols.setText("1")
self._AR_cols.setValidator(QtGui.QIntValidator(1,10000))
_AR_X_intervals_label = QtWidgets.QLabel("Increment")
_AR_X_intervals_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_X_intervals = QtWidgets.QLineEdit()
self._AR_X_intervals.setText("10")
self._AR_X_intervals.setValidator(QtGui.QDoubleValidator(-10000,10000,12))
# self._AR_X_intervals.setMinimumWidth(50)
_AR_X_spacing_label = QtWidgets.QLabel("Spacing")
_AR_X_spacing_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_X_spacing = QtWidgets.QLineEdit()
self._AR_X_spacing.setText("10")
self._AR_X_spacing.setValidator(QtGui.QDoubleValidator(1,10000,12))
_AR_X_interval_settings_layout.addWidget(self._AR_X_mode, 0, 0, 1, 2)
_AR_X_interval_settings_layout.addWidget(_AR_X_intervals_label, 0, 2)
_AR_X_interval_settings_layout.addWidget(self._AR_X_intervals, 0, 3)
_AR_X_interval_settings_layout.addWidget(_AR_cols_label, 1, 0)
_AR_X_interval_settings_layout.addWidget(self._AR_cols, 1, 1)
_AR_X_interval_settings_layout.addWidget(_AR_X_spacing_label, 1, 2)
_AR_X_interval_settings_layout.addWidget(self._AR_X_spacing, 1, 3)
_AR_X_interval_settings.setLayout(_AR_X_interval_settings_layout)
_AR_X_interval_settings.setStyleSheet("QGroupBox { background-color: rgba(0,0,0,0.1); }")
# / X Interval
# Y Interval
_AR_Y_interval_settings = QtWidgets.QGroupBox("Vertical Settings")
_AR_Y_interval_settings_layout = QtWidgets.QGridLayout()
self._AR_Y_mode = QtWidgets.QComboBox()
self._AR_Y_mode.addItem("Velocity")
self._AR_Y_mode.addItem("Power")
_AR_rows_label = QtWidgets.QLabel("NRows")
_AR_rows_label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignBottom)
self._AR_rows = QtWidgets.QLineEdit()
self._AR_rows.setText("1")
self._AR_rows.setValidator(QtGui.QIntValidator(1,10000))
_AR_Y_intervals_label = QtWidgets.QLabel("Increment")
_AR_Y_intervals_label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignBottom)
self._AR_Y_intervals = QtWidgets.QLineEdit()
self._AR_Y_intervals.setText("10")
self._AR_Y_intervals.setValidator(QtGui.QDoubleValidator(-10000,10000,12))
_AR_Y_spacing_label = QtWidgets.QLabel("Spacing")
_AR_Y_spacing_label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignBottom)
self._AR_Y_spacing = QtWidgets.QLineEdit()
self._AR_Y_spacing.setText("10")
self._AR_Y_spacing.setValidator(QtGui.QDoubleValidator(1,10000,12))
_AR_Y_interval_settings_layout.addWidget(self._AR_Y_mode, 0, 0, 2, 1)
_AR_Y_interval_settings_layout.addWidget(_AR_Y_intervals_label, 0, 1)
_AR_Y_interval_settings_layout.addWidget(self._AR_Y_intervals, 1, 1)
_AR_Y_interval_settings_layout.addWidget(_AR_rows_label, 2, 0)
_AR_Y_interval_settings_layout.addWidget(self._AR_rows, 3, 0)
_AR_Y_interval_settings_layout.addWidget(_AR_Y_spacing_label, 2, 1)
_AR_Y_interval_settings_layout.addWidget(self._AR_Y_spacing, 3, 1)
_AR_Y_interval_settings.setLayout(_AR_Y_interval_settings_layout)
_AR_Y_interval_settings.setStyleSheet("QGroupBox { background-color: rgba(0,0,0,0.1); }")
# / Y Interval
# AR_XY_final_settings
self._AR_XY_final_settings = QtWidgets.QGroupBox("Calculated Final Values")
_AR_XY_final_settings_layout = QtWidgets.QGridLayout()
_AR_XY_final_vel_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_AR_XY_final_vel_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_XY_final_pow_label = QtWidgets.QLabel("Power (steps)")
_AR_XY_final_pow_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_XY_final_velocity = QtWidgets.QLabel("0")
self._AR_XY_final_power = QtWidgets.QLabel("0")
self._AR_XY_final_velocity.setAlignment(QtCore.Qt.AlignVCenter)
self._AR_XY_final_power.setAlignment(QtCore.Qt.AlignVCenter)
_AR_XY_final_settings_layout.addWidget(_AR_XY_final_vel_label, 0, 0)
_AR_XY_final_settings_layout.addWidget(_AR_XY_final_pow_label, 1, 0)
_AR_XY_final_settings_layout.addWidget(self._AR_XY_final_velocity, 0, 1)
_AR_XY_final_settings_layout.addWidget(self._AR_XY_final_power, 1, 1)
self._AR_XY_final_settings.setLayout(_AR_XY_final_settings_layout)
# / AR_XY_final_settings
# Arrows
# https://www.compart.com/en/unicode/U+1F82F
_right_dash = QtWidgets.QLabel(u"\u25B6")
_down_dash = QtWidgets.QLabel(u"\u25BC")
_right_arrow = QtWidgets.QLabel(u"\u25B6")
_down_arrow = QtWidgets.QLabel(u"\u25BC")
_arrows = [_right_dash, _down_dash, _right_arrow, _down_arrow]
for arr in _arrows:
arr.setAlignment(QtCore.Qt.AlignCenter)
# arr.setStyleSheet("line-height: 25px; font-size: 25px;")
# / Arrows
# Each Box Size
_AR_size = QtWidgets.QGroupBox("Individual Raster Setting")
_AR_size_layout = QtWidgets.QGridLayout()
_AR_size_y_label = QtWidgets.QLabel("Height ({}m)".format(self.MICROSYMBOL))
_AR_size_y_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_size_x_label = QtWidgets.QLabel("Width ({}m)".format(self.MICROSYMBOL))
_AR_size_x_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_AR_step_size_label = QtWidgets.QLabel("Step Size ({}m)".format(self.MICROSYMBOL))
_AR_step_size_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._AR_size_x = QtWidgets.QLineEdit()
self._AR_size_x.setText("10")
self._AR_size_x.setValidator(QtGui.QDoubleValidator(1,10000,12))
self._AR_size_y = QtWidgets.QLineEdit()
self._AR_size_y.setText("10")
self._AR_size_y.setValidator(QtGui.QDoubleValidator(1,10000,12))
self._AR_step_size = QtWidgets.QLineEdit()
self._AR_step_size.setText("1")
self._AR_step_size.setValidator(QtGui.QDoubleValidator(0.1,10000,12))
self._AR_raster_x = QtWidgets.QCheckBox()
self._AR_raster_y = QtWidgets.QCheckBox()
self._AR_raster_y.setChecked(True)
_AR_raster_step_along_label = QtWidgets.QLabel("Steps?")
_AR_raster_step_along_label.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeft)
self._AR_raster_style = QtWidgets.QLabel("Filled square\nContinuous along y-axis")
self._AR_raster_style.setAlignment(QtCore.Qt.AlignVCenter | QtCore.Qt.AlignRight)
_AR_size_layout.addWidget(_AR_step_size_label, 0, 0)
_AR_size_layout.addWidget(self._AR_step_size, 0, 1)
_AR_size_layout.addWidget(_AR_raster_step_along_label, 0, 2)
_AR_size_layout.addWidget(self._AR_raster_y, 1, 2)
_AR_size_layout.addWidget(self._AR_raster_x, 2, 2)
_AR_size_layout.addWidget(_AR_size_y_label, 1, 0)
_AR_size_layout.addWidget(_AR_size_x_label, 2, 0)
_AR_size_layout.addWidget(self._AR_size_y, 1, 1)
_AR_size_layout.addWidget(self._AR_size_x, 2, 1)
_AR_size_layout.addWidget(self._AR_raster_style, 3, 0, 1, 3)
_AR_size.setLayout(_AR_size_layout)
# / Each Box Size
# Summary
_AR_summary = QtWidgets.QGroupBox("Array Raster Summary")
_AR_summary_layout = QtWidgets.QGridLayout()
self._AR_summary_text = QtWidgets.QLabel("-")
self._AR_summary_text.setAlignment(QtCore.Qt.AlignVCenter)
_AR_summary_layout.addWidget(self._AR_summary_text, 0, 0)
_AR_summary.setLayout(_AR_summary_layout)
_AR_summary.setStyleSheet("QGroupBox { background-color: rgba(255, 165, 0, 0.4); }")
# / Summary
# Action Buttons
_AR_action_btns = QtWidgets.QWidget()
_AR_action_btns_layout = QtWidgets.QGridLayout()
# https://stackoverflow.com/a/33793752/3211506
_AR_action_btns_spacer = QtWidgets.QSpacerItem(0, 0, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self._AR_retToOri = QtWidgets.QCheckBox("Return to Origin")
self._AR_retToOri.setChecked(True)
self._AR_start = QtWidgets.QPushButton("START")
_AR_action_btns_layout.setColumnStretch(0, 0)
_AR_action_btns_layout.addItem(_AR_action_btns_spacer, 0, 0)
_AR_action_btns_layout.addWidget(self._AR_retToOri, 1, 0)
_AR_action_btns_layout.addWidget(self._AR_start, 2, 0)
_AR_action_btns.setLayout(_AR_action_btns_layout)
# / Action Buttons
# void QGridLayout::addWidget(QWidget *widget, int row, int column, Qt::Alignment alignment = Qt::Alignment())
# void QGridLayout::addWidget(QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = Qt::Alignment())
# Create Layout to add widgets
_AR_numrows = 5
_AR_numcols = 6
_array_raster_layout = QtWidgets.QGridLayout()
# Add widgets at position
_array_raster_layout.addWidget(_AR_initial_settings, 0, 0)
_array_raster_layout.addWidget(_right_dash, 0, 1)
_array_raster_layout.addWidget(_AR_X_interval_settings, 0, 2, 1, 2)
_array_raster_layout.addWidget(_right_arrow, 0, 4)
_array_raster_layout.addWidget(self._AR_X_final_settings, 0, 5)
_array_raster_layout.addWidget(_down_dash, 1, 0)
_array_raster_layout.addWidget(_AR_Y_interval_settings, 2, 0)
_array_raster_layout.addWidget(_down_arrow, 3, 0)
_array_raster_layout.addWidget(_AR_size, 1, 2, 2, 2)
_array_raster_layout.addWidget(_AR_summary, 4, 1, 1, 4)
_array_raster_layout.addWidget(self._AR_Y_final_settings, 4, 0)
_array_raster_layout.addWidget(self._AR_XY_final_settings, 4, 5)
_array_raster_layout.addWidget(_AR_action_btns, 2, 5)
# To ensure each row and column is the same width
# https://stackoverflow.com/a/40154349/3211506
for i in range(_AR_numrows):
_array_raster_layout.setRowStretch(i, 1)
for j in range(_AR_numcols):
_array_raster_layout.setColumnStretch(j, 1)
_array_raster_layout.setColumnStretch(1, 0.5)
_array_raster_layout.setColumnStretch(4, 0.5)
_array_raster_layout.setRowStretch(1, 0.5)
_array_raster_layout.setRowStretch(3, 0.5)
# Velocities, comma separated
# Size
# Power, comma separated
return _array_raster_layout
# fourth layout
@make_widget_from_layout
def create_drawpic(self, widget):
_drawpic_layout = QtWidgets.QGridLayout()
# INSTRUCTION
# _DP_instructions = QtWidgets.QGroupBox("Instructions")
# _DP_instructions_layout = QtWidgets.QVBoxLayout()
_DP_instructions_scrollArea = QtWidgets.QScrollArea() # QTextBrowser
_DP_instructions_label = QtWidgets.QLabel()
_DP_instructions_string = [
"<b style='color: #22F;'>Instructions</b>",
"'Draw Picture' takes in a 1-bit BMP image and prints it out using the stage.",
"Each option has some hints on mouseover.",
"Go through each step <span style='font-family: Menlo, Consolas, monospace;'>[i]</span> sequentially to print the image. Each pixel represents 1 {}m.".format(self.MICROSYMBOL),
"Scale:<br>If x-scale = 2, this means that for every 1-pixel move along the x-direction the code sees, it moves 2{0}m along the x-direction. Generally, scale = beamspot-size in {0}m if x-scale = y-scale. Test and iterate to ensure.".format(self.MICROSYMBOL),
"Print a non-symmetrical image (e.g. <a href='{}'>fliptest.bmp</a>) to test whether the horizontal and vertical needs to be flipped. <span style='color: red;'>NOTE:</span> Flipping flips the image first before parsing its lines! To flip after, use a negative number as the scale.".format(os.path.join(root_dir, '1_runs', 'fliptest', 'fliptest.bmp')),
"The code will greedily search for the next pixel to the right of the current pixel to determine continuous lines. To prioritize searching the left pixel first, check 'Search left before right'."
]
_DP_instructions_label.setText("<br/><br/>".join(_DP_instructions_string))
_DP_instructions_label.setWordWrap(True)
_DP_instructions_label.setTextFormat(QtCore.Qt.RichText)
_DP_instructions_label.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
_DP_instructions_label.setOpenExternalLinks(True)
_DP_instructions_scrollArea.setBackgroundRole(QtGui.QPalette.Light)
_DP_instructions_scrollArea.setWidget(_DP_instructions_label)
_DP_instructions_scrollArea.setWidgetResizable(True)
# https://www.oipapio.com/question-3065786
# _DP_instructions_layout.addWidget(_DP_instructions_scrollArea)
# _DP_instructions.setLayout(_DP_instructions_layout)
# / INSTRUCTIONS
# DRAW PIC INTERFACE
_DP_main = QtWidgets.QGroupBox("Parameters")
_DP_main_layout = QtWidgets.QGridLayout()
# _DP_picture_fn_label = QtWidgets.QLabel("BMP File")
# _DP_picture_fn_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._DP_picture_fn = QtWidgets.QLineEdit()
self._DP_picture_fn.setPlaceholderText("File name")
self._DP_picture_btn = QtWidgets.QPushButton("Browse...")
self._DP_picture_load = QtWidgets.QPushButton("Load")
self._DP_picture_preview = QtWidgets.QLabel("<i>Preview Here</i>")
self._DP_picture_preview.setStyleSheet("color: #777;")
self._DP_picture_preview.setAlignment(QtCore.Qt.AlignCenter)
# Options
# def __init__(self, filename, xscale = 1, yscale = 1, cut = 0, allowDiagonals = False, prioritizeLeft = False, flipHorizontally = False, flipVertically = False ,frames = False, simulate = False, simulateDrawing = False, micronInstance = None, shutterTime = 800)
_DP_options = QtWidgets.QWidget() # QGroupBox("Options")
_DP_options_layout = QtWidgets.QGridLayout()
_DP_xscale_label = QtWidgets.QLabel("X-Scale")
_DP_xscale_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._DP_xscale = QtWidgets.QLineEdit("1")
# self._DP_xscale.setValidator(QtGui.QDoubleValidator(0,10000, 12))
self._DP_xscale.setValidator(QtGui.QDoubleValidator())
self._DP_xscale.setToolTip("This is usually your beam spot size.")
_DP_yscale_label = QtWidgets.QLabel("Y-Scale")
_DP_yscale_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._DP_yscale = QtWidgets.QLineEdit("1")
# self._DP_yscale.setValidator(QtGui.QDoubleValidator(0,10000, 12))
self._DP_yscale.setValidator(QtGui.QDoubleValidator())
self._DP_yscale.setToolTip("This is usually your beam spot size.")
_DP_cutMode_label = QtWidgets.QLabel("Cut")
_DP_cutMode_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._DP_cutMode = QtWidgets.QComboBox()
self._DP_cutMode.addItem("Black")
self._DP_cutMode.addItem("White")
self._DP_allowDiagonals = QtWidgets.QCheckBox("Allow Diagonals")
self._DP_flipVertically = QtWidgets.QCheckBox("Flip Vertically")
self._DP_flipHorizontally = QtWidgets.QCheckBox("Flip Horizontally")
self._DP_allowDiagonals.setChecked(True)
self._DP_allowDiagonals.setToolTip("Diagonal pixels will also be considered adjacent\npixels when parsing the picture into lines.")
self._DP_flipVertically.setToolTip("Use a simple image to test whether flipping is necessary.\nImage is flipped BEFORE parsing it.")
self._DP_flipHorizontally.setToolTip("Use a simple image to test whether flipping is necessary.\nImage is flipped BEFORE parsing it.")
self._DP_prioritizeLeft = QtWidgets.QCheckBox("Search left before right")
self._DP_prioritizeLeft.setToolTip("Algorithm moves from right to left and searches for\na left pixel first before of the right pixel.")
_DP_options_layout.addWidget(_DP_xscale_label , 0, 0, 1, 1)
_DP_options_layout.addWidget(self._DP_xscale , 0, 1, 1, 1)
_DP_options_layout.addWidget(_DP_yscale_label , 1, 0, 1, 1)
_DP_options_layout.addWidget(self._DP_yscale , 1, 1, 1, 1)
_DP_options_layout.addWidget(_DP_cutMode_label , 2, 0, 1, 1)
_DP_options_layout.addWidget(self._DP_cutMode , 2, 1, 1, 1)
_DP_options_layout.addWidget(self._DP_allowDiagonals , 2, 2, 1, 1)
_DP_options_layout.addWidget(self._DP_flipVertically , 1, 2, 1, 1)
_DP_options_layout.addWidget(self._DP_flipHorizontally , 0, 2, 1, 1)
_DP_options_layout.addWidget(self._DP_prioritizeLeft , 3, 0, 1, 3)
_DP_options_layout.setColumnStretch(0, 1)
_DP_options_layout.setColumnStretch(1, 2)
_DP_options_layout.setColumnStretch(2, 1)
_DP_options.setLayout(_DP_options_layout)
# / Options
self._DP_picture_parse = QtWidgets.QPushButton("Parse Picture")
_DP_moveToZero = QtWidgets.QLabel('Move to (0, 0), usually top-left, of the image using "Stage Movement"')
_DP_moveToZero.setWordWrap(True)
_DP_velocity_label = QtWidgets.QLabel("Velocity ({}m/s)".format(self.MICROSYMBOL))
_DP_velocity_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
self._DP_velocity = QtWidgets.QLineEdit("100")
self._DP_velocity.setValidator(QtGui.QDoubleValidator(0,10000, 12))
self._DP_picture_estimateTime = QtWidgets.QPushButton("Estimate Time")
self._DP_picture_draw = QtWidgets.QPushButton("Draw")
_DP_steps_labels = []
for i in range(6):
_temp_label = QtWidgets.QLabel("[{}]".format(i + 1))
_temp_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
_temp_label.setStyleSheet("font-family: Menlo, Consolas, monospace;")
_DP_steps_labels.append(_temp_label)
_DP_main_layout.addWidget(_DP_steps_labels[0], 0, 0, 1, 1)
# _DP_main_layout.addWidget(_DP_picture_fn_label, 1, 1, 1, 1)
_DP_main_layout.addWidget(self._DP_picture_fn, 0, 1, 1, 3)
_DP_main_layout.addWidget(self._DP_picture_btn, 0, 4, 1, 1)
_DP_main_layout.addWidget(_DP_steps_labels[1], 1, 0, 1, 1)
_DP_main_layout.addWidget(self._DP_picture_load, 1, 1, 1, 4)
_DP_main_layout.addWidget(_DP_steps_labels[2], 2, 0, 1, 1)
_DP_main_layout.addWidget(_DP_options, 2, 1, 1, 4)
_DP_main_layout.addWidget(_DP_steps_labels[3], 3, 0, 1, 1)
_DP_main_layout.addWidget(self._DP_picture_parse, 3, 1, 1, 4)
_DP_main_layout.addWidget(_DP_steps_labels[4], 4, 0, 1, 1)
_DP_main_layout.addWidget(_DP_moveToZero, 4, 1, 1, 4)
_DP_main_layout.addWidget(_DP_steps_labels[5], 5, 0, 1, 1)
_DP_main_layout.addWidget(_DP_velocity_label, 5, 1, 1, 1)
_DP_main_layout.addWidget(self._DP_velocity, 5, 2, 1, 3)
_DP_main_layout.addWidget(self._DP_picture_estimateTime, 6, 0, 1, 2)
_DP_main_layout.addWidget(self._DP_picture_draw, 6, 2, 1, 3)
_DP_main_layout.setColumnStretch(0, 1)
for i in range(1, 4):
_DP_main_layout.setColumnStretch(i, 2)
_DP_main.setLayout(_DP_main_layout)
# / DRAW PIC INTERFACE
# _drawpic_layout.addWidget(_DP_instructions, 0, 0)
_drawpic_layout.addWidget(self._DP_picture_preview, 0, 0, 1, 1)
_drawpic_layout.addWidget(_DP_instructions_scrollArea, 1, 0, 1, 1)
_drawpic_layout.addWidget(_DP_main, 0, 1, 2, 1)
_drawpic_layout.setColumnStretch(0, 1)
_drawpic_layout.setColumnStretch(1, 1)
_drawpic_layout.setRowStretch(0, 1)
_drawpic_layout.setRowStretch(1, 1)
return _drawpic_layout
# INTERACTION FUNCTONS
def initEventListeners(self):
# STAGE
self.UP, self.RIGHT, self.DOWN, self.LEFT = (0, 1), (1, 0), (0, -1), (-1, 0)
self.cardinalStageMoving = False
self.lastCardinalStageMove = datetime.datetime.now()
self._upArrow.clicked.connect(lambda: self.cardinalMoveStage(self.UP))
self._downArrow.clicked.connect(lambda: self.cardinalMoveStage(self.DOWN))
self._leftArrow.clicked.connect(lambda: self.cardinalMoveStage(self.LEFT))
self._rightArrow.clicked.connect(lambda: self.cardinalMoveStage(self.RIGHT))
self._homeBtn.clicked.connect(lambda: self.homeStage())
self._SL_invertx_checkbox.stateChanged.connect(lambda: self.invertCheck())
self._SL_inverty_checkbox.stateChanged.connect(lambda: self.invertCheck())
self._SL_velocity.textChanged.connect(lambda: self.recalculateKeystrokeTimeout())
self._SL_step_size.textChanged.connect(lambda: self.recalculateKeystrokeTimeout())
self.keyMapping = {
QtCore.Qt.Key_Up : "Up",
QtCore.Qt.Key_Down : "Down",
QtCore.Qt.Key_Left : "Left",
QtCore.Qt.Key_Right: "Right"
}
# self.keysPressed = {}
# Not implementing due to not being able to obtain keyPress events reliably
self.stage_widget.installEventFilter(self)
self.installEventFilter(self)
# note that the following you cannot connect(self.checkSRValues) because the value will be passed in as an argument to self.checkSRValues
# COMMON
self.operationDone.connect(self.on_operationDone)
self.EL_self_criticalDialog.connect(self.on_EL_self_criticalDialog)
# SINGLE RASTER
self._SR_velocity.textChanged.connect(lambda: self.checkSRValues())
self._SR_size_x.textChanged.connect(lambda: self.checkSRValues())
self._SR_size_y.textChanged.connect(lambda: self.checkSRValues())
self._SR_step_size.textChanged.connect(lambda: self.checkSRValues())
self._SR_raster_x.stateChanged.connect(lambda: self.checkSRValues())
self._SR_raster_y.stateChanged.connect(lambda: self.checkSRValues())
self._SR_retToOri.stateChanged.connect(lambda: self.checkSRValues())
self._SR_start.clicked.connect(lambda: self.checkSRValues(startRaster = True))
self._SR_pow_up.clicked.connect(lambda: self.adjustPower(direction = "+"))
self._SR_pow_dn.clicked.connect(lambda: self.adjustPower(direction = "-"))
self._SR_pow_step.textChanged.connect(lambda: self._SR_pow_step.setStyleSheet("background-color: none; color: #000;"))
# ARRAY RASTER
self._AR_init_velocity.textChanged.connect(lambda: self.recalculateARValues())
self._AR_init_power.textChanged.connect(lambda: self.recalculateARValues())
self._AR_X_mode.currentIndexChanged.connect(lambda: self.recalculateARValues())
self._AR_cols.textChanged.connect(lambda: self.recalculateARValues())
self._AR_X_intervals.textChanged.connect(lambda: self.recalculateARValues())
self._AR_X_spacing.textChanged.connect(lambda: self.recalculateARValues())
self._AR_Y_mode.currentIndexChanged.connect(lambda: self.recalculateARValues())
self._AR_rows.textChanged.connect(lambda: self.recalculateARValues())
self._AR_Y_intervals.textChanged.connect(lambda: self.recalculateARValues())
self._AR_Y_spacing.textChanged.connect(lambda: self.recalculateARValues())
self._AR_size_x.textChanged.connect(lambda: self.recalculateARValues())
self._AR_size_y.textChanged.connect(lambda: self.recalculateARValues())
self._AR_step_size.textChanged.connect(lambda: self.recalculateARValues())
self._AR_raster_x.stateChanged.connect(lambda: self.recalculateARValues())
self._AR_raster_y.stateChanged.connect(lambda: self.recalculateARValues())
self._AR_retToOri.stateChanged.connect(lambda: self.recalculateARValues())
self._AR_start.clicked.connect(lambda: self.recalculateARValues(startRaster = True))
# DRAW PIC
self._DP_picture_btn.clicked.connect(lambda: self._DP_getFile())
self._DP_picture_load.clicked.connect(lambda: self._DP_loadPicture())
self._DP_picture_parse.clicked.connect(lambda: self._DP_parsePicture())
self._DP_picture_estimateTime.clicked.connect(lambda: self._DP_drawPicture(estimateOnly = True))
self._DP_picture_draw.clicked.connect(lambda: self._DP_drawPicture())
self._DP_xscale.textChanged.connect(lambda: self._DP_optionsChanged())
self._DP_yscale.textChanged.connect(lambda: self._DP_optionsChanged())
self._DP_cutMode.currentIndexChanged.connect(lambda: self._DP_optionsChanged())
self._DP_allowDiagonals.stateChanged.connect(lambda: self._DP_optionsChanged())
self._DP_flipVertically.stateChanged.connect(lambda: self._DP_optionsChanged())
self._DP_flipHorizontally.stateChanged.connect(lambda: self._DP_optionsChanged())
self._DP_prioritizeLeft.stateChanged.connect(lambda: self._DP_optionsChanged())
self._DP_picture_fn.textChanged.connect(lambda: self._DP_filenameLineEditChanged())
self.picConvWarn.connect(self.on_picConvWarn)
# SHUTTER
self._close_shutter.clicked.connect(lambda: self.stageControl.controller.shutter.close())
self._open_shutter.clicked.connect(lambda: self.stageControl.controller.shutter.open())
self._abortBtn.clicked.connect(lambda: threading.Thread(target = self.KeyboardInterruptHandler, kwargs = dict(abortTrigger = True)).start())
# keyPressEvent(self, evt)
def eventFilter(self, source, evt):
# https://www.riverbankcomputing.com/static/Docs/PyQt4/qt.html#Key-enum
# print(evt)
if isinstance(evt, QtGui.QKeyEvent): #.type() ==
# Check source here
evtkey = evt.key()
# if (evt.type() == QtCore.QEvent.KeyPress):
# print("KeyPress : {}".format(key))
# if key not in self.keysPressed:
# self.keysPressed[key] = 1
# if key in self.keysPressed:
# del self.keysPressed[key]
# print("\033[K", str(self.keysPressed), end="\r")
if (evt.type() == QtCore.QEvent.KeyRelease):
# print("KeyRelease : {}".format(evtkey))
# All KeyRelease events go here
if evtkey == QtCore.Qt.Key_C and (evt.modifiers() & QtCore.Qt.ControlModifier):
# Will work everywhere
self.KeyboardInterruptHandler()
return True # Prevents further handling
if evtkey == QtCore.Qt.Key_Space:
self.stageControl.controller.shutter.close() if self.stageControl.controller.shutter.isOpen else self.stageControl.controller.shutter.open()
return True # Prevents further handling
# self.logconsole(self.lastCardinalStageMove)
# now = datetime.datetime.now()
# try:
# if now >= self.lastEvent + datetime.timedelta(seconds = 1):
# print(self.numEvents)
# self.numSeconds += 1
# self.lastEvent = now
# self.numEvents = 0
# except Exception as e:
# self.lastEvent = now
# self.numSeconds = 0
# self.numEvents = 0
#
# self.numEvents += 1
# ==> we deduce about 66 events / second
# we try to block it as early and possible
# WARNING: This still doesn't work as expected like in the previous VBA iteration of this
if source == self.stage_widget and not self.cardinalStageMoving and datetime.datetime.now() > self.lastCardinalStageMove + datetime.timedelta(milliseconds = self.KEYSTROKE_TIMEOUT):
if evtkey == QtCore.Qt.Key_Up:
self.cardinalMoveStage(self.UP)
if evtkey == QtCore.Qt.Key_Down:
self.cardinalMoveStage(self.DOWN)
if evtkey == QtCore.Qt.Key_Left:
self.cardinalMoveStage(self.LEFT)
if evtkey == QtCore.Qt.Key_Right:
self.cardinalMoveStage(self.RIGHT)
# TODO: Catching alert sound
# if isintance(evt, QtGui.QAccessibleEvent)
# return QtWidgets.QWidget.eventFilter(self, source, evt)
return super(QtWidgets.QWidget, self).eventFilter(source, evt)
# Custom functions
# Stage Movement
def homeStage(self):
if not self.devMode:
self.setOperationStatus("Homing stage...If any error arises, abort immediately with Ctrl + C")
self.stageControl.controller.homeStage()
self.setOperationStatus("Home stage finished")
else:
self.setOperationStatus("devMode, not homing...")
def cardinalMoveStage(self, direction):
# Get the distance
dist = float(self._SL_step_size.text())
vel = float(self._SL_velocity.text())
# Move the stage
if not self.devMode:
self.moveStage(direction, distance = dist, velocity = vel)
def moveStage(self, direction, distance, velocity):
# direction is a (dx, dy) tuple/vector that defines the direction that gets multiplied by distance
if sum(map(abs, direction)) > 1:
_mag = math.sqrt(direction[0]**2 + direction[1]**2)
direction = (direction[0] / _mag , direction[1] / _mag)
if not self.cardinalStageMoving:
self.cardinalStageMoving = True
if self.stageControl.controller.velocity != velocity:
# We reset the velocity if it is different
self.stageControl.controller.setvel(velocity)
self.stageControl.controller.rmove(x = direction[0] * distance * self.stageControl.noinvertx, y = direction[1] * distance * self.stageControl.noinverty)
self.updatePositionDisplay()
self.lastCardinalStageMove = datetime.datetime.now()
self.cardinalStageMoving = False
def updatePositionDisplay(self):
if self.stageControl is not None:
# self.logconsole(self.stageControl.controller.stage.position)
self._lcdx.display(self.stageControl.controller.stage.x)
self._lcdy.display(self.stageControl.controller.stage.y)
def invertCheck(self):
self.stageControl.noinvertx = -1 if self._SL_invertx_checkbox.checkState() else 1
self.stageControl.noinverty = -1 if self._SL_inverty_checkbox.checkState() else 1
self.qsettings.setValue("stage/invertx", True) if self.stageControl.noinvertx == -1 else self.qsettings.setValue("stage/invertx", False)
self.qsettings.setValue("stage/inverty", True) if self.stageControl.noinverty == -1 else self.qsettings.setValue("stage/inverty", False)
self.qsettings.sync()
def recalculateKeystrokeTimeout(self):
try:
vel = float(self._SL_velocity.text())
dist = float(self._SL_step_size.text())
estTime = self.stageControl.controller.getDeltaTime(x = dist, y = 0, velocity = vel)
self.KEYSTROKE_TIMEOUT = estTime * 66 * 0.002 * 1000 # 66 events per second, 0.002 to process each event
# i.e. to say how long to burn all the events
# Issue is events gets queued, not the connected function
except Exception as e:
self.logconsole(e)
self.KEYSTROKE_TIMEOUT = 10
# Common
def setStartButtonsEnabled(self, state):
self._SR_start.setEnabled(state)
self._AR_start.setEnabled(state)
self._DP_picture_draw.setEnabled(state)
def winAudioSetMuted(self, state):
if not hasattr(self, "pycaw_sess"):
if platform.system() == "Windows":
sessions = AudioUtilities.GetAllSessions()
for session in sessions:
if session.Process and session.Process.name() == "python.exe":
self.pycaw_sess = session
self.pycaw_vol = self.pycaw_sess._ctl.QueryInterface(ISimpleAudioVolume)
else:
self.pycaw_sess = None
if self.pycaw_sess is None:
return
return self.pycaw_vol.SetMasterVolume(0, None) if state else self.pycaw_vol.SetMasterVolume(1, None)
# Single Raster
def adjustPower(self, direction):
try:
assert direction == "+" or direction == "-", "Invalid Direction"
_step = int(self._SR_pow_step.text())
except ValueError as e:
self._SR_pow_step.setStyleSheet("background-color: #DF2928; color: #fff;")
return
except AssertionError as e:
self.logconsole("Invalid call to MicroGUI.adjustPower(direction = {})".format(direction))
return
self._SR_pow_step.setStyleSheet("background-color: none; color: #000;")
self.setOperationStatus("Adjusting power...")
self._SR_pow_up.setEnabled(False)
self._SR_pow_dn.setEnabled(False)
powerThread = ThreadWithExc(target = self._adjustPower, kwargs = dict(_step = _step, direction = direction))
powerThread.start()
# self._adjustPower()
def _adjustPower(self, _step, direction):
self.stageControl.controller.powerServo.powerstep(number = (-1 * _step) if direction == "-" else (_step))
self._SR_pow_up.setEnabled(True)
self._SR_pow_dn.setEnabled(True)
self.setOperationStatus("Ready.")
def checkSRValues(self, startRaster = False):
_got_error = False
try:
# Recalculate the values for Array Raster
_vel = float(self._SR_velocity.text())
# we convert 2 to 1 since .checkState gives 0 = unchecked, 2 = checked
step_along_x = not not self._SR_raster_x.checkState()
step_along_y = not not self._SR_raster_y.checkState()
step_size = float(self._SR_step_size.text())
returnToOrigin = not not self._SR_retToOri.checkState()
# sizes
# y, x
size = [float(self._SR_size_y.text()), float(self._SR_size_x.text())]
# Recalculate size based on flooring calculations
_lines = math.floor(abs(size[step_along_x] / step_size))
size[step_along_x] = _lines * step_size
# Indivdual Raster Type
indiv_type = "square" if size[0] == size[1] else "rectangle"
# catch all errors:
_got_error = (size[1] <= 0 or size[0] <= 0 or _vel <= 0)
self._SR_size_x.setStyleSheet("background-color: #DF2928; color: #fff;") if size[1] <= 0 else self._SR_size_x.setStyleSheet("background-color: none; color: #000;")
self._SR_size_y.setStyleSheet("background-color: #DF2928; color: #fff;") if size[0] <= 0 else self._SR_size_y.setStyleSheet("background-color: none; color: #000;")
# If power, ensure changes are integer
# RASTER SETTINGS
self._SR_raster_style.setStyleSheet("background-color: none; color: #000;")
if step_along_x and step_along_y:
self._SR_raster_style.setText("Unfilled {}\nDrawing an outline".format(indiv_type))
self._SR_step_size.setReadOnly(True)
self._SR_step_size.setStyleSheet("background-color: #ccc; color: #555;")
elif step_along_x:
self._SR_raster_style.setText("Filled {}\nContinuous along x-axis".format(indiv_type))
self._SR_step_size.setReadOnly(False)
self._SR_step_size.setStyleSheet("background-color: none; color: #000;")
elif step_along_y:
self._SR_raster_style.setText("Filled {}\nContinuous along y-axis".format(indiv_type))
self._SR_step_size.setReadOnly(False)
self._SR_step_size.setStyleSheet("background-color: none; color: #000;")
else:
_got_error = True
self._SR_raster_style.setText("No axis selected\nChoose at least one axis")
self._SR_raster_style.setStyleSheet("background-color: #DF2928; color: #fff;")
self._SR_step_size.setReadOnly(False)
self._SR_step_size.setStyleSheet("background-color: none; color: #000;")
except Exception as e:
# We assume the user is not done entering the data
self.logconsole("{}: {}".format(type(e).__name__, e))
self._SR_size_x.setStyleSheet("background-color: none; color: #000;")
self._SR_size_y.setStyleSheet("background-color: none; color: #000;")
self._SR_raster_style.setText("-\n")
self._SR_raster_style.setStyleSheet("background-color: none; color: #000;")
# Check if the values are even valid
# Change background if necessary
else:
# There are no errors, and we check if startRaster
if startRaster and not _got_error:
# JUMP TO DEF
# def singleraster(self, velocity, xDist, yDist, rasterSettings, returnToOrigin = False, estimateTime = True, onlyEstimate = False):
# Raster in a rectangle
# rasterSettings = {
# "direction": "x" || "y" || "xy", # Order matters here xy vs yx
# "step": 1 # If set to xy, step is not necessary
# }
if not step_along_x and not step_along_y:
self.setOperationStatus("Step-axis not selected!")
return
rsSettingsDir = ""
rsSettingsDir += "x" if step_along_x else ""
rsSettingsDir += "y" if step_along_y else ""
if step_along_x and step_along_y:
rsSettings = { "direction" : rsSettingsDir }
else:
rsSettings = { "direction" : rsSettingsDir, "step": step_size }
self.setOperationStatus("Starting Single Raster...")
self.setStartButtonsEnabled(False)
self.setOperationStatus("Starting Single Raster...")
sr_thread = ThreadWithExc(target = self._singleRaster, kwargs = dict(
velocity = _vel,
xDist = size[1],
yDist = size[0],
rasterSettings = rsSettings,
returnToOrigin = returnToOrigin
))
sr_thread.start()
elif startRaster:
# Alert got error
self.criticalDialog(message = "Error in single raster settings.\nPlease check again!", host = self)
def _singleRaster(self, **kwargs):
try:
self.stageControl.singleraster(**kwargs)
except Exception as e:
self.setOperationStatus("Error Occurred. {}".format(e))
if self.devMode:
raise
else:
# If no error
self.setOperationStatus("Ready.")
finally:
# Always run
self.setStartButtonsEnabled(True)
# Array Raster
def recalculateARValues(self, startRaster = False):
_got_error = False
try:
# Recalculate the values for Array Raster
vel_0 = float(self._AR_init_velocity.text())
pow_0 = int(self._AR_init_power.text())
# we convert 2 to 1 since .checkState gives 0 = unchecked, 2 = checked
step_along_x = not not self._AR_raster_x.checkState()
step_along_y = not not self._AR_raster_y.checkState()
step_size = float(self._AR_step_size.text())
# 0 = Velocity, 1 = Power
x_isPow = self._AR_X_mode.currentIndex()
x_incr = float(self._AR_X_intervals.text())
x_cols = int(self._AR_cols.text())
x_spac = float(self._AR_X_spacing.text())
y_isPow = self._AR_Y_mode.currentIndex()
y_incr = float(self._AR_Y_intervals.text())
y_rows = int(self._AR_rows.text())
y_spac = float(self._AR_Y_spacing.text())
returnToOrigin = not not self._AR_retToOri.checkState()
# sizes
# y, x
size = [float(self._AR_size_y.text()), float(self._AR_size_x.text())]
# Recalculate size based on flooring calculations
_lines = math.floor(abs(size[step_along_x] / step_size))
size[step_along_x] = _lines * step_size
# Horizontal
vel_x_f = vel_0 + (x_cols - 1) * x_incr if not x_isPow else vel_0
pow_x_f = pow_0 + (x_cols - 1) * x_incr if x_isPow else pow_0
# Vertical
vel_y_f = vel_0 + (y_rows - 1) * y_incr if not y_isPow else vel_0
pow_y_f = pow_0 + (y_rows - 1) * y_incr if y_isPow else pow_0
# Final
vel_xy_f = vel_x_f + vel_y_f - vel_0
pow_xy_f = pow_x_f + pow_y_f - pow_0
# Total Raster Area
tt_x = x_cols * size[1] + (x_cols - 1) * x_spac
tt_y = y_rows * size[0] + (y_rows - 1) * y_spac
# Indivdual Raster Type
indiv_type = "square" if size[0] == size[1] else "rectangle"
# catch all errors:
_got_error = (x_cols <= 0 or y_rows <= 0 or size[1] <= 0 or size[0] <= 0 or vel_x_f < 0 or vel_y_f < 0 or vel_xy_f < 0)
self._AR_cols.setStyleSheet("background-color: #DF2928; color: #fff;") if x_cols <= 0 else self._AR_cols.setStyleSheet("background-color: none; color: #000;")
self._AR_rows.setStyleSheet("background-color: #DF2928; color: #fff;") if y_rows <= 0 else self._AR_rows.setStyleSheet("background-color: none; color: #000;")
self._AR_size_x.setStyleSheet("background-color: #DF2928; color: #fff;") if size[1] <= 0 else self._AR_size_x.setStyleSheet("background-color: none; color: #000;")
self._AR_size_y.setStyleSheet("background-color: #DF2928; color: #fff;") if size[0] <= 0 else self._AR_size_y.setStyleSheet("background-color: none; color: #000;")
self._AR_X_final_settings.setStyleSheet("background-color: #DF2928; color: #fff;") if vel_x_f < 0 else self._AR_X_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_Y_final_settings.setStyleSheet("background-color: #DF2928; color: #fff;") if vel_y_f < 0 else self._AR_Y_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_XY_final_settings.setStyleSheet("background-color: #DF2928; color: #fff;") if vel_xy_f < 0 else self._AR_XY_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_summary_text.setText("Rastering a {} x {} array\nEach {} {} x {} {}m\nRaster Area = {} x {} {}m".format(y_rows, x_cols, indiv_type, *size, self.MICROSYMBOL, tt_y, tt_x, self.MICROSYMBOL))
self._AR_X_final_velocity.setText(str(vel_x_f))
self._AR_Y_final_velocity.setText(str(vel_y_f))
self._AR_XY_final_velocity.setText(str(vel_xy_f))
self._AR_X_final_power.setText(str(pow_x_f))
self._AR_Y_final_power.setText(str(pow_y_f))
self._AR_XY_final_power.setText(str(pow_xy_f))
# If power, ensure changes are integer
if x_isPow and not (x_incr.is_integer()):
# x_power error
_got_error = True
self._AR_X_intervals.setStyleSheet("background-color: #DF2928; color: #fff;")
self._AR_X_final_power.setText("<b style='color: red'>INT!<b>")
self._AR_XY_final_power.setText("<b style='color: red'>INT!<b>")
else:
self._AR_X_intervals.setStyleSheet("background-color: none; color: #000;")
if y_isPow and not (y_incr.is_integer()):
# y_power error
_got_error = True
self._AR_Y_intervals.setStyleSheet("background-color: #DF2928; color: #fff;")
self._AR_Y_final_power.setText("<b style='color: red'>INT!<b>")
self._AR_XY_final_power.setText("<b style='color: red'>INT!<b>")
else:
self._AR_Y_intervals.setStyleSheet("background-color: none; color: #000;")
# RASTER SETTINGS
self._AR_raster_style.setStyleSheet("background-color: none; color: #000;")
if step_along_x and step_along_y:
self._AR_raster_style.setText("Unfilled {}\nDrawing an outline".format(indiv_type))
self._AR_step_size.setReadOnly(True)
self._AR_step_size.setStyleSheet("background-color: #ccc; color: #555;")
elif step_along_x:
self._AR_raster_style.setText("Filled {}\nContinuous along x-axis".format(indiv_type))
self._AR_step_size.setReadOnly(False)
self._AR_step_size.setStyleSheet("background-color: none; color: #000;")
elif step_along_y:
self._AR_raster_style.setText("Filled {}\nContinuous along y-axis".format(indiv_type))
self._AR_step_size.setReadOnly(False)
self._AR_step_size.setStyleSheet("background-color: none; color: #000;")
else:
_got_error = True
self._AR_raster_style.setText("No axis selected\nChoose at least one axis")
self._AR_raster_style.setStyleSheet("background-color: #DF2928; color: #fff;")
self._AR_step_size.setReadOnly(False)
self._AR_step_size.setStyleSheet("background-color: none; color: #000;")
except Exception as e:
# We assume the user is not done entering the data
self.logconsole("{}: {}".format(type(e).__name__, e))
self._AR_Y_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_Y_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_XY_final_settings.setStyleSheet("background-color: none; color: #000;")
self._AR_rows.setStyleSheet("background-color: none; color: #000;")
self._AR_rows.setStyleSheet("background-color: none; color: #000;")
self._AR_size_x.setStyleSheet("background-color: none; color: #000;")
self._AR_size_y.setStyleSheet("background-color: none; color: #000;")
self._AR_summary_text.setText("-")
self._AR_raster_style.setText("-\n")
self._AR_raster_style.setStyleSheet("background-color: none; color: #000;")
self._AR_X_final_velocity.setText("-")
self._AR_Y_final_velocity.setText("-")
self._AR_XY_final_velocity.setText("-")
self._AR_X_final_power.setText("-")
self._AR_Y_final_power.setText("-")
self._AR_XY_final_power.setText("-")
# Check if the values are even valid
# Change background if necessary
else:
# There are no errors, and we check if startRaster
if startRaster and not _got_error:
# JUMP TO DEF
# def arrayraster(self, inivel, inipower, x_isVel, ncols, xincrement, xGap, y_isVel, nrows, yincrement, ygap, xDist, yDist, rasterSettings, returnToOrigin = True):
# Raster in a rectangle
# rasterSettings = {
# "direction": "x" || "y" || "xy", # Order matters here xy vs yx
# "step": 1 # If set to xy, step is not necessary
# }
if not step_along_x and not step_along_y:
self.setOperationStatus("Step-axis not selected!")
return
rsSettingsDir = ""
rsSettingsDir += "x" if step_along_x else ""
rsSettingsDir += "y" if step_along_y else ""
if step_along_x and step_along_y:
rsSettings = { "direction" : rsSettingsDir }
else:
rsSettings = { "direction" : rsSettingsDir, "step": step_size }
self.setStartButtonsEnabled(False)
self.setOperationStatus("Starting Array Raster...")
ar_thread = ThreadWithExc(target = self._arrayraster, kwargs = dict(
xDist = size[1], yDist = size[0],
xGap = x_spac, yGap = y_spac,
nrows = y_rows, ncols = x_cols,
inivel = vel_0, inipower = pow_0,
x_isVel = x_isPow ^ 1, y_isVel = y_isPow ^ 1,
xincrement = x_incr, yincrement = y_incr,
rasterSettings = rsSettings,
returnToOrigin = returnToOrigin
))
ar_thread.start()
elif startRaster:
# Alert got error
self.criticalDialog(message = "Error in array raster settings.\nPlease check again!", host = self)
def _arrayraster(self, **kwargs):
try:
self.stageControl.arrayraster(**kwargs)
except Exception as e:
self.setOperationStatus("Error Occurred. {}".format(e))
if self.devMode:
raise
else:
self.setOperationStatus("Ready.")
finally:
self.setStartButtonsEnabled(True)
# Draw Picture
def _DP_getFile(self):
# THIS IS PURELY FOR GUI CHOOSE FILE
# Attempt to get filename from QLineEdit
filename = self._DP_picture_fn.text()
if os.path.isfile(filename):
filename = os.path.abspath(os.path.realpath(os.path.expanduser(filename)))
dirname = os.path.dirname(filename)
else:
dirname = base_dir # base_dir of this file
self._DP_FileDialog = QtWidgets.QFileDialog(self, "Open Image", dirname, "1-Bit Bitmap Files (*.bmp)")
self._DP_FileDialog.setFileMode(QtWidgets.QFileDialog.ExistingFile)
self._DP_FileDialog.setViewMode(QtWidgets.QFileDialog.Detail)
firstRun = True
isValid = False
error = None
while not os.path.isfile(filename) or not isValid:
if not firstRun:
self.criticalDialog(message = "You have selected an invalid file", informativeText = "E: {}".format(error), title = "Invalid File", host = self)
firstRun = False
if (self._DP_FileDialog.exec_()):
filename = self._DP_FileDialog.selectedFiles()[0]
filename = os.path.abspath(os.path.realpath(os.path.expanduser(filename)))
# Running this before loadPicture is so that windows gives the same file path url
else:
return
# else (i.e. the user cancelled) we just ignore and act as though nothing happened
# We run some checks here
try:
isValid = self._DP_runChecks(filename)
except picConv.ImageError as e:
isValid = False
error = e
if isValid:
self._DP_picture_fn.setText(filename)
def _DP_runChecks(self, filename):
# Checks if the file exists and is valid
# Raises picConv.ImageError if there are any errors
if not os.path.isfile(filename):
raise picConv.ImageError("Path is not file!")
try:
image = PILImage.open(filename)
except Exception as e:
raise picConv.ImageError("({}): {}".format(type(e).__name__, e))
if image.format != "BMP":
raise picConv.ImageError("The selected image is not a valid .bmp file!")
if image.mode != '1':
raise picConv.ImageError("Your image has mode {}. Please use a 1-bit indexed (mode 1) image, see <a href='https://pillow.readthedocs.io/en/stable/handbook/concepts.html#bands'>https://pillow.readthedocs.io/en/stable/handbook/concepts.html#bands</a>. If using GIMP to convert picture to 1-bit index, ensure 'remove colour from palette' is unchecked. ".format(image.mode))
# Check size purely based on image and stage size
# Does not take into account the scaling factor yet
xlim = self.stageControl.controller.stage.xlim
ylim = self.stageControl.controller.stage.ylim
if image.size[0] > abs(xlim[1] - xlim[0]) or image.size[1] > abs(ylim[1] - ylim[0]):
raise picConv.ImageError("Image way too big ._., exceeds stage limits")
return True
def _DP_loadPictureIntoPreviewer(self, filename):
self._DP_picture_preview_pic = QtGui.QPixmap()
if self._DP_picture_preview_pic.load(filename):
self._DP_picture_preview_pic = self._DP_picture_preview_pic.scaled(self._DP_picture_preview.size(), QtCore.Qt.KeepAspectRatio)
self._DP_picture_preview.setPixmap(self._DP_picture_preview_pic)
return DoneObject()
else:
return self.criticalDialog(message = "Unable to load the selected file into preview", title = "Unable to load file", host = self)
def _DP_loadPicture(self):
# run tests again
filename = self._DP_picture_fn.text()
try:
filename = os.path.abspath(os.path.realpath(os.path.expanduser(filename)))
isValid = self._DP_runChecks(filename)
except picConv.ImageError as e:
return self.criticalDialog(message = "You have selected an invalid file", informativeText = "E: {}".format(e), title = "Invalid File", host = self)
# Load picture into previewer
x = self._DP_loadPictureIntoPreviewer(filename)
if isinstance(x, DoneObject):
# save the filename if everything passes
self._DP_filename_string = filename
self._DP_optionsChanged()
def _DP_filenameLineEditChanged(self):
self._DP_picture_load.setStyleSheet("background-color: #FF8800;")
def _DP_optionsChanged(self):
if hasattr(self, "_DP_filename_string"):
self._DP_optionsChangedFlag = True
self._DP_picture_load.setStyleSheet("")
self._DP_picture_parse.setStyleSheet("background-color: #FF8800;")
def _DP_parsePicture(self):
# _DP_loadPicture has to be run first to do sanity checks
if not hasattr(self, "_DP_filename_string") or self._DP_filename_string is None or not len(self._DP_filename_string):
return self.criticalDialog(message = "Image not loaded!", informativeText = "Please load the image first before parsing. Filename not captured", title = "Image not loaded!", host = self)
# Differs from Line edit, prompt to let user know
lefn = self._DP_picture_fn.text()
if self._DP_filename_string != lefn:
ret = self.unsavedQuestionDialog(message = "Load new filenames?", title = "Differing filenames",informativeText = "Registered filename differs from the input filename:\n\nREG:{}\nENT:{}\n\nSave to proceed.\nDiscard/Cancel to go back".format(self._DP_filename_string, lefn), host = self)
if ret == QtWidgets.QMessageBox.Save:
self._DP_loadPicture()
else:
return
# Change colour of the Parse button
self._DP_picture_parse.setStyleSheet("")
# Get Options
try:
xscale = float(self._DP_xscale.text())
yscale = float(self._DP_yscale.text())
cutMode = self._DP_cutMode.currentIndex()
allowDiagonals = not not self._DP_allowDiagonals.checkState()
flipVertically = not not self._DP_flipVertically.checkState()
flipHorizontally = not not self._DP_flipHorizontally.checkState()
prioritizeLeft = not not self._DP_prioritizeLeft.checkState()
except Exception as e:
return self.criticalDialog(message = "Invalid values", informativeText = "Please double check your parameters.", host = self)
# TODO: create the picConv object
# def __init__(self, filename, xscale = 1, yscale = 1, cut = 0, allowDiagonals = False, prioritizeLeft = False, flipHorizontally = False, flipVertically = False ,frames = False, simulate = False, simulateDrawing = False, micronInstance = None, shutterTime = 800):
self.picConv = picConv.PicConv(
filename = self._DP_filename_string,
xscale = xscale,
yscale = yscale,
cut = cutMode,
allowDiagonals = allowDiagonals,
prioritizeLeft = prioritizeLeft,
flipHorizontally = flipHorizontally,
flipVertically = flipVertically,
shutterTime = self.stageControl.controller.shutter.duration * 2,
micronInstance = self.stageControl.controller,
GUI_Object = self
)
# def progressDialog(self, host = None, title = "Progress", labelText = None, cancelButtonText = "Cancel", range = (0, 100)):
# Should be regenerated every time
if hasattr(self, "pDialog"):
del self.pDialog
self.pDialog = self.progressDialog(
host = self,
title = "PicConv",
labelText = "Converting Picture",
)
self.picConv_conversion_thread = ThreadWithExc(target = self._DP_ConvertParseLines)
self.picConv_conversion_thread.start()
self.pDialog.exec_()
if hasattr(self, "pDialog"):
del self.pDialog
def _DP_ConvertParseLines(self):
def cancelOperation(self):
return self.pDialog.close() if hasattr(self, "pDialog") else None
self.pDialog.canceled.connect(lambda: cancelOperation(self))
self.pDialog.setValue(0)
# Redirect output through pDialog.setLabelText()
try:
self.picConv.convert()
except Exception as e:
# The error should have been emitted already
self.logconsole("{}: {}".format(type(e).__name__, e))
return cancelOperation(self)
# Show test.png
try:
self._DP_loadPictureIntoPreviewer("picconv_test.png")
except Exception as e:
self.logconsole("{}: {}".format(type(e).__name__, e))
while datetime.datetime.now() < self.lastPDialogUpdate + datetime.timedelta(seconds = self.PDIALOG_TIMEOUT):
time.sleep(self.PDIALOG_TIMEOUT)
self.pDialog.setWindowTitle("Parsing Lines")
self.pDialog_setLabelText("Parsing Lines")
try:
self.picConv.parseLines()
except Exception as e:
# The error should have been emitted already
self.logconsole("{}: {}".format(type(e).__name__, e))
return cancelOperation(self)
# Change Colour of Draw
self._DP_picture_draw.setStyleSheet("background-color: #FF8800;")
self._DP_optionsChangedFlag = False
return self.pDialog.close() if hasattr(self, "pDialog") else None
def _DP_drawPicture(self, estimateOnly = False):
# Check if loaded
if not hasattr(self, "_DP_filename_string") or self._DP_filename_string is None or not len(self._DP_filename_string):
return self.criticalDialog(message = "Image not loaded!", informativeText = "Please load the image first before parsing and drawing. Filename not captured", title = "Image not loaded!", host = self)
# Check if parseded
if not hasattr(self, "picConv") or not isinstance(self.picConv, picConv.PicConv):
return self.criticalDialog(message = "Image not parsed!", informativeText = "Please parse the image first before drawing. Image and options not captured.", title = "Image not parsed!", host = self)
# Check if options changed
if self._DP_optionsChangedFlag:
ret = self.unsavedQuestionDialog(message = "Reparse with changed options?", title = "Options Changed",informativeText = "The parsing options have been changed since the last parse.\n\nSave to reparse with new options\nDiscard/Cancel to go back", host = self)
if ret == QtWidgets.QMessageBox.Save:
self._DP_parsePicture()
else:
return
# Check if enough space
if not estimateOnly:
size = self.picConv.image.size # (width, height)
fx = self.stageControl.controller.stage.x + self.picConv.scale["x"] * size[0]
fy = self.stageControl.controller.stage.y + self.picConv.scale["y"] * size[1]
xlim = sorted(self.stageControl.controller.stage.xlim)
ylim = sorted(self.stageControl.controller.stage.ylim)
xcond = xlim[0] <= fx <= xlim[1]
ycond = ylim[0] <= fy <= ylim[1]
if not xcond and not ycond:
return self.criticalDialog(message = "Image too large!", informativeText = "At the current position, printing the picture will exceed stage limits in both the x and y direction\n\nStage Limits = x[{}, {}], y[{}, {}]\nImage Size = ({}, {})\nCurrent Stage Position = ({}, {})".format(*xlim, *ylim, *size, *self.stageControl.controller.stage.position), title = "Image too large!", host = self)
elif not xcond:
return self.criticalDialog(message = "Image too large!", informativeText = "At the current position, printing the picture will exceed stage limits in the x direction\n\nStage Limits = x[{}, {}]\nImage Size = ({}, {})\nCurrent Stage Position = ({}, {})".format(*xlim, *size, *self.stageControl.controller.stage.position), title = "Image too large!", host = self)
elif not ycond:
return self.criticalDialog(message = "Image too large!", informativeText = "At the current position, printing the picture will exceed stage limits in the y direction\n\nStage Limits = y[{}, {}]\nImage Size = ({}, {})\nCurrent Stage Position = ({}, {})".format(*ylim, *size, *self.stageControl.controller.stage.position), title = "Image too large!", host = self)
# / Check space
# Check the velocity
vel = self._DP_velocity.text()
try:
vel = float(vel)
except Exception as e:
return self.criticalDialog(message = "Input Error", informativeText = "Unable to parse velocity into float. (Got {})".format(vel), title = "Input Error", host = self)
if not estimateOnly:
# alert confirm user has moved to (0,0)
# We don't bother if the user changed the filename without loading, we just let them know what image will be drawn.
ret = self.unsavedQuestionDialog(message = "Start drawing?", title = "Draw Picture",informativeText = "Using {}\n\nThis point has been taken as the (0, 0) of the image. This usually the top left.\n\nDraw to proceed.\nCancel to go back and change stage position.".format(self._DP_filename_string), host = self, buttons = {
QtWidgets.QMessageBox.Save : "Draw"
}, noDiscard = True)
if ret != QtWidgets.QMessageBox.Save:
return
# Here we start to draw
self.setStartButtonsEnabled(False)
self._DP_picture_draw.setStyleSheet("")
self.setOperationStatus("Starting Draw Picture...")
q = ThreadWithExc(target = self._picConv_draw, args=(vel,))
q.start()
else:
td = datetime.timedelta(seconds = self.picConv.estimateTime(velocity = vel))
return self.informationDialog(message = "The picture will take approximately {}.".format(td), title = "Estimated Time", host = self)
def _picConv_draw(self, velocity):
try:
# Errors are supposed to be emitted directly
self.stageControl.controller.shutter.quietLog = True
self.picConv.draw(velocity = velocity)
self.stageControl.controller.shutter.quietLog = False
self.stageControl.finishTone()
except Exception as e:
self.setOperationStatus("Error Occurred. {}".format(e))
if self.devMode:
raise
else:
# If no error
self.setOperationStatus("Ready.")
finally:
# Always run
self.setStartButtonsEnabled(True)
PDIALOG_TIMEOUT = 1 # in seconds
def pDialog_setValue(self, val):
# print("SETTING VALUE: ", val)
if val == 100 or val == 50 or val == 0 or datetime.datetime.now() > self.lastPDialogUpdate + datetime.timedelta(seconds = self.PDIALOG_TIMEOUT):
self.lastPDialogUpdate = datetime.datetime.now()
self.pDialog.setValue(val)
elif val == 100:
time.sleep(PDIALOG_TIMEOUT)
self.pDialog_setValue(val)
def pDialog_setLabelText(self, text):
if datetime.datetime.now() > self.lastPDialogUpdate + datetime.timedelta(seconds = self.PDIALOG_TIMEOUT):
self.lastPDialogUpdate = datetime.datetime.now()
self.pDialog.setLabelText(text)
# Helper functions
def setOperationStatus(self, status, printToTerm = True, **printArgs):
self.currentStatus = status
if printToTerm:
print("[{}]".format(datetime.datetime.now().time()), status, **printArgs)
# Do some updating of the status bar
self._statusbar_label.setText(status)
def logconsole(self, status):
print("[{}]".format(datetime.datetime.now().time()), status)
EL_self_criticalDialog = QtCore.pyqtSignal('QString', 'QString', 'QString', 'bool')
def on_EL_self_criticalDialog(self, message, title = "Oh no!", informativeText = None, exitAfter = False):
ret = self.criticalDialog(message = message, title = title, informativeText = informativeText, host = self)
if exitAfter:
return os._exit(1) # For the exit to propagate upwards
else:
return ret
def criticalDialog(self, message, title = "Oh no!", informativeText = None, host = None):
_msgBox = QtWidgets.QMessageBox(host)
_msgBox.setIcon(QtWidgets.QMessageBox.Critical)
_msgBox.setWindowTitle(title)
_msgBox.setText(message)
if informativeText is not None:
_msgBox.setInformativeText(informativeText)
# Get height and width
_h = _msgBox.height()
_w = _msgBox.width()
_msgBox.setGeometry(0, 0, _w, _h)
moveToCentre(_msgBox)
# mb.setTextFormat(Qt.RichText)
# mb.setDetailedText(message)
_msgBox.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.winAudioSetMuted(True)
ret = _msgBox.exec_()
self.winAudioSetMuted(False)
return ret
def informationDialog(self, message, title = "Information", informativeText = None, host = None):
_msgBox = QtWidgets.QMessageBox(host)
_msgBox.setIcon(QtWidgets.QMessageBox.Information)
_msgBox.setWindowTitle(title)
_msgBox.setText(message)
if informativeText is not None:
_msgBox.setInformativeText(informativeText)
# Get height and width
_h = _msgBox.height()
_w = _msgBox.width()
_msgBox.setGeometry(0, 0, _w, _h)
moveToCentre(_msgBox)
# mb.setTextFormat(Qt.RichText)
# mb.setDetailedText(message)
# _msgBox.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.winAudioSetMuted(True)
ret = _msgBox.exec_()
self.winAudioSetMuted(False)
return ret
def unsavedQuestionDialog(self, message, title = "Unsaved", informativeText = None, host = None, buttons = {}, noDiscard = False):
_msgBox = QtWidgets.QMessageBox(host)
_msgBox.setIcon(QtWidgets.QMessageBox.Question)
_msgBox.setWindowTitle(title)
_msgBox.setText(message)
if informativeText is not None:
_msgBox.setInformativeText(informativeText)
if not noDiscard:
_msgBox.setStandardButtons(QtWidgets.QMessageBox.Save | QtWidgets.QMessageBox.Discard | QtWidgets.QMessageBox.Cancel)
else:
_msgBox.setStandardButtons(QtWidgets.QMessageBox.Save | QtWidgets.QMessageBox.Cancel)
_msgBox.setDefaultButton(QtWidgets.QMessageBox.Cancel)
if buttons and isinstance(buttons, dict):
for key, val in buttons.items():
_msgBox.button(key).setText(val)
# Get height and width
_h = _msgBox.height()
_w = _msgBox.width()
_msgBox.setGeometry(0, 0, _w, _h)
moveToCentre(_msgBox)
# mb.setTextFormat(Qt.RichText)
# mb.setDetailedText(message)
# _msgBox.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.winAudioSetMuted(True)
ret = _msgBox.exec_()
self.winAudioSetMuted(False)
return ret
# https://doc.qt.io/qt-5/qprogressdialog.html
def progressDialog(self, host = None, title = "Progress", labelText = None, cancelButtonText = "Cancel", range = (0, 100)):
# QProgressDialog::QProgressDialog(const QString &labelText, const QString &cancelButtonText, int minimum, int maximum, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags())
# NOTE: DOES NOT EXEC
pDialog = QtWidgets.QProgressDialog(labelText, cancelButtonText, range[0], range[1], host)
pDialog.setWindowFlags(QtCore.Qt.WindowTitleHint | QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.CustomizeWindowHint)
pDialog.setWindowTitle(title)
pDialog.setWindowModality(QtCore.Qt.WindowModal)
# Get height and width
_h = pDialog.height()
_w = pDialog.width()
pDialog.setGeometry(0, 0, _w, _h)
moveToCentre(pDialog)
self.lastPDialogUpdate = datetime.datetime.now()
return pDialog
operationDone = QtCore.pyqtSignal()
def on_operationDone(self):
self.informationDialog(message = "Operation Completed!", title = "Done!", host = self)
if self.stageControl.musicProcess and self.stageControl.musicProcess.isAlive():
try:
self.stageControl.musicProcess.terminate()
except Exception as e:
self.logconsole("{}: {}".format(type(e).__name__, e))
picConvWarn = QtCore.pyqtSignal('QString', 'QString')
# [str, str]
def on_picConvWarn(self, message, error):
return self.criticalDialog(message = message, title = "PicConv Error!", informativeText = error, host = self)
# Status Bar
class aboutPopUp(QtWidgets.QDialog):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.initUI()
def initUI(self):
# x, y, w, h
self.setGeometry(0, 0, 250, 200)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose) # WidgetAttribute.
self.setWindowTitle("About")
moveToCentre(self)
self._main_layout = QtWidgets.QVBoxLayout()
# setContentsMargins(left, top, right, bottom)
self._main_layout.setContentsMargins(10, 10, 10, 10)
one = QtWidgets.QLabel("Made by")
one.setAlignment(QtCore.Qt.AlignCenter)
two = QtWidgets.QLabel("Sun Yudong, Wu Mingsong\n2019")
two.setAlignment(QtCore.Qt.AlignCenter)
ema = QtWidgets.QLabel()
dianyous = [
["sunyudong", "outlook.sg"],
["mingsongwu", "outlook.sg"]
]
ema.setText("<a href=\"mailto:{}\" title=\"Please don't spam us thanks\">sunyudong [at] outlook [dot] sg</a><br/><a href=\"mailto:{}\" title=\"Please don't spam us thanks\">mingsongwu [at] outlook [dot] sg</a>".format(*map("@".join, dianyous)))
ema.setTextFormat(QtCore.Qt.RichText)
ema.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
ema.setOpenExternalLinks(True)
ema.setAlignment(QtCore.Qt.AlignCenter)
thr = QtWidgets.QLabel("NUS Nanomaterials Lab")
thr.setAlignment(QtCore.Qt.AlignCenter)
self._main_layout.addWidget(one)
self._main_layout.addWidget(two)
self._main_layout.addWidget(ema)
self._main_layout.addWidget(thr)
self.setLayout(self._main_layout)
class SettingsScreen(QtWidgets.QDialog):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.microGUIParent = self.parentWidget()
self.initUI()
def initUI(self):
self.setWindowTitle("Settings")
# x, y ,w, h
self.setGeometry(0, 0, 500, 300)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
moveToCentre(self)
self.makeUI()
self.loadSettings()
self.initEventListeners()
def makeUI(self):
self._main_layout = QtWidgets.QGridLayout()
# Optomechanical
_servos = QtWidgets.QGroupBox("Optomechanical")
_servos_layout = QtWidgets.QGridLayout()
self._shutterAbsoluteMode = QtWidgets.QCheckBox("Use Absolute Mode for Shutter")
self._powerAbsoluteMode = QtWidgets.QCheckBox("Use Absolute Mode for Power")
_shutterChannel_label_main = QtWidgets.QLabel("Shutter Channel")
_shutterChannel_label_left = QtWidgets.QLabel("Left")
_shutterChannel_label_righ = QtWidgets.QLabel("Right")
_shutterChannel_label_main.setAlignment(QtCore.Qt.AlignTop)
_shutterChannel_label_left.setAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop)
_shutterChannel_label_righ.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTop)
self._shutterChannel = QtWidgets.QSlider(QtCore.Qt.Horizontal)
self._shutterChannel.setTickPosition(QtWidgets.QSlider.TicksBothSides)
self._shutterChannel.setRange(0, 1)
self._shutterChannel.setSingleStep(1)
self._shutterChannel.setPageStep(1)
self._shutterChannel.setTickInterval(1)
# WE USE THIS WORKAROUND OF SETTING 0 TO 1 BECAUSE MOUSEEVENTS ARE NOT AFFECTED BY ABOVE SETTINGS
# addWidget(QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0)
_servos_layout.addWidget(self._shutterAbsoluteMode, 0, 0, 1, 3)
_servos_layout.addWidget(self._powerAbsoluteMode, 1, 0, 1, 3)
_servos_layout.addWidget(_shutterChannel_label_main, 2, 0, 2, 1)
_servos_layout.addWidget(self._shutterChannel, 2, 1, 1, 2)
_servos_layout.addWidget(_shutterChannel_label_left, 3, 1, 1, 1)
_servos_layout.addWidget(_shutterChannel_label_righ, 3, 2, 1, 1)
_servos_layout.setColumnStretch(0, 2)
_servos_layout.setColumnStretch(1, 1)
_servos_layout.setColumnStretch(2, 1)
_servos.setLayout(_servos_layout)
# / Optomechanical
# Stage Configuration
# These are the initialization settings and does not affect the current session!
_stage = QtWidgets.QGroupBox("Stage Settings")
_stage_layout = QtWidgets.QGridLayout()
_stage_xlim_label = QtWidgets.QLabel("X-Limits")
self._stage_xlim_lower = QtWidgets.QLineEdit()
self._stage_xlim_lower.setValidator(QtGui.QDoubleValidator()) # Accept any Double
self._stage_xlim_upper = QtWidgets.QLineEdit()
self._stage_xlim_upper.setValidator(QtGui.QDoubleValidator()) # Accept any Double
_stage_ylim_label = QtWidgets.QLabel("Y-Limits")
self._stage_ylim_lower = QtWidgets.QLineEdit()
self._stage_ylim_lower.setValidator(QtGui.QDoubleValidator()) # Accept any Double
self._stage_ylim_upper = QtWidgets.QLineEdit()
self._stage_ylim_upper.setValidator(QtGui.QDoubleValidator()) # Accept any Double
self._noHome = QtWidgets.QCheckBox("Do not home stage on start")
_note = QtWidgets.QLabel("Limits and Homing Settings take effect only after app restart!\nStage will be initialised in the center of the limits")
_note.setStyleSheet("color: red;")
self._invertx = QtWidgets.QCheckBox("Invert Horizontal")
self._inverty = QtWidgets.QCheckBox("Invert Vertical")
_stage_layout.addWidget(_stage_xlim_label, 0, 0)
_stage_layout.addWidget(self._stage_xlim_lower, 0, 1)
_stage_layout.addWidget(QtWidgets.QLabel("to"), 0, 2)
_stage_layout.addWidget(self._stage_xlim_upper, 0, 3)
_stage_layout.addWidget(_stage_ylim_label, 1, 0)
_stage_layout.addWidget(self._stage_ylim_lower, 1, 1)
_stage_layout.addWidget(QtWidgets.QLabel("to"), 1, 2)
_stage_layout.addWidget(self._stage_ylim_upper, 1, 3)
_stage_layout.addWidget(self._noHome, 2, 0, 1, 4)
_stage_layout.addWidget(_note, 3, 0, 1, 4)
_stage_layout.addWidget(self._invertx, 4, 0, 1, 2)
_stage_layout.addWidget(self._inverty, 4, 2, 1, 2)
# TODO: Add some way of moving dx and dy
_stage.setLayout(_stage_layout)
# / Stage Configuration
# Audio
_audio = QtWidgets.QGroupBox("Audio")
_audio_layout = QtWidgets.QVBoxLayout()
self._disableFinishTone = QtWidgets.QCheckBox("Disable Finish Tone")
# WE USE THIS WORKAROUND OF SETTING 0 TO 1 BECAUSE MOUSEEVENTS ARE NOT AFFECTED BY ABOVE SETTINGS
# addWidget(QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0)
_audio_layout.addWidget(self._disableFinishTone)
_audio.setLayout(_audio_layout)
# / Audio
# Labels and warnings
_persistent = QtWidgets.QLabel("These settings persists across launches! Refer to documentation for more information.")
# / Labels and warnings
# Buttons
self._buttonBox = QtWidgets.QDialogButtonBox(QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.RestoreDefaults | QtWidgets.QDialogButtonBox.Close)
# / Buttons
self._main_layout.addWidget(_servos, 0, 0, 1, 1)
self._main_layout.addWidget(_audio, 1, 0, 1, 1)
self._main_layout.addWidget(_stage, 0, 1, 2, 1)
self._main_layout.addWidget(_persistent, 2, 0, 1, 2)
self._main_layout.addWidget(self._buttonBox, 3, 0, 1, 2)
self._main_layout.setColumnStretch(0, 1)
self._main_layout.setColumnStretch(1, 1)
self.setLayout(self._main_layout)
def initEventListeners(self):
self._buttonBox.rejected.connect(self.closeCheck)
self._buttonBox.button(QtWidgets.QDialogButtonBox.RestoreDefaults).clicked.connect(self.reset)
self._buttonBox.button(QtWidgets.QDialogButtonBox.Apply).clicked.connect(self.apply)
@property
def set_shutterChannel(self):
# THIS is gonna be abit confusing argh
return servos.Servo.LEFTCH if self._set_shutterChannel == 0 else servos.Servo.RIGHTCH
@set_shutterChannel.setter
def set_shutterChannel(self, x):
self._set_shutterChannel = 0 if x == servos.Servo.LEFTCH else 1
def loadSettings(self):
self.microGUIParent.qsettings.sync()
self.set_shutterAbsoluteMode = self.microGUIParent.qsettings.value("shutter/absoluteMode", True, type = bool)
self.set_shutterChannel = self.microGUIParent.qsettings.value("shutter/channel", servos.Servo.RIGHTCH, type = int)
self.set_powerAbsoluteMode = self.microGUIParent.qsettings.value("power/absoluteMode", False, type = bool)
self.set_invertx = self.microGUIParent.qsettings.value("stage/invertx", False, type = bool)
self.set_inverty = self.microGUIParent.qsettings.value("stage/inverty", False, type = bool)
self.set_stageConfig = self.microGUIParent.qsettings.value("stage/config", None, type = dict) # Should be a dictionary
self.set_noHome = self.microGUIParent.qsettings.value("stage/noHome", False, type = bool)
self.set_noFinishTone = self.microGUIParent.qsettings.value("audio/noFinishTone", True, type = bool)
# Update the GUI with the settings
self._shutterAbsoluteMode.setChecked(self.set_shutterAbsoluteMode)
self._powerAbsoluteMode.setChecked(self.set_powerAbsoluteMode)
self._shutterChannel.setValue(self._set_shutterChannel) # we use the _ value to get 0 and 1
self._invertx.setChecked(self.set_invertx)
self._inverty.setChecked(self.set_inverty)
self._disableFinishTone.setChecked(self.set_noFinishTone)
if not self.set_stageConfig:
self.set_stageConfig = {
"xlim" : mstage.DEFAULT_XLIM ,
"ylim" : mstage.DEFAULT_YLIM
}
self._stage_xlim_lower.setText(str(self.set_stageConfig["xlim"][0]))
self._stage_xlim_upper.setText(str(self.set_stageConfig["xlim"][1]))
self._stage_ylim_lower.setText(str(self.set_stageConfig["ylim"][0]))
self._stage_ylim_upper.setText(str(self.set_stageConfig["ylim"][1]))
def getStageConfigFromGUI(self):
try:
return {
"xlim" : [float(self._stage_xlim_lower.text()), float(self._stage_xlim_upper.text())] ,
"ylim" : [float(self._stage_ylim_lower.text()), float(self._stage_ylim_upper.text())]
}
except ValueError as e:
return None
def settingsEdited(self):
return not (self.set_shutterAbsoluteMode == (not not self._shutterAbsoluteMode.checkState()) and \
self._set_shutterChannel == self._shutterChannel.value() and \
self.set_powerAbsoluteMode == (not not self._powerAbsoluteMode.checkState()) and \
self.set_invertx == (not not self._invertx.checkState()) and \
self.set_inverty == (not not self._inverty.checkState()) and \
self.set_stageConfig == self.getStageConfigFromGUI() and \
self.set_noHome == (not not self._noHome.checkState()) and \
self.set_noFinishTone == (not not self._disableFinishTone.checkState())
)
def closeCheck(self):
if self.settingsEdited():
# Alert saying changes not saved
ret = self.microGUIParent.unsavedQuestionDialog(message = "Settings Changed", informativeText = "Save or Discard?\nClick Cancel to go back.", title = "Unsaved settings", host = self)
if ret == QtWidgets.QMessageBox.Save:
self.apply(noDialog = False)
return self.close()
elif ret == QtWidgets.QMessageBox.Discard:
self.microGUIParent.setOperationStatus("Changed settings discarded! Ready.")
return self.close()
else:
self.microGUIParent.setOperationStatus("Ready.")
return self.close()
def reset(self):
self._shutterAbsoluteMode.setChecked(True)
self._powerAbsoluteMode.setChecked(False)
self._shutterChannel.setValue(servos.Servo.RIGHTCH) # This is fine since its = 1
self._stage_xlim_lower.setText(str(mstage.DEFAULT_XLIM[0]))
self._stage_xlim_upper.setText(str(mstage.DEFAULT_XLIM[1]))
self._stage_ylim_lower.setText(str(mstage.DEFAULT_YLIM[0]))
self._stage_ylim_upper.setText(str(mstage.DEFAULT_YLIM[1]))
self._invertx.setChecked(False)
self._inverty.setChecked(False)
self._disableFinishTone.setChecked(True)
def apply(self, noDialog = False):
# TODO: Check for sane stage config values
newStageConfig = self.getStageConfigFromGUI()
if newStageConfig is None:
return self.microGUIParent.criticalDialog(message = "Error parsing Stage limits!", host = self)
elif newStageConfig["xlim"][0] >= newStageConfig["xlim"][1] or newStageConfig["ylim"][0] >= newStageConfig["ylim"][1]:
return self.microGUIParent.criticalDialog(message = "Stage lower limit must be strictly lower than higher limit!", host = self)
self._set_shutterChannel = self._shutterChannel.value() # Convert to PAN values
self.microGUIParent.qsettings.setValue("shutter/channel", self.set_shutterChannel)
self.microGUIParent.qsettings.setValue("shutter/absoluteMode", not not self._shutterAbsoluteMode.checkState())
self.microGUIParent.qsettings.setValue("power/absoluteMode", not not self._powerAbsoluteMode.checkState())
self.microGUIParent.qsettings.setValue("stage/invertx", not not self._invertx.checkState())
self.microGUIParent.qsettings.setValue("stage/inverty", not not self._inverty.checkState())
self.microGUIParent.qsettings.setValue("stage/noHome", not not self._noHome.checkState())
self.microGUIParent.qsettings.setValue("stage/config", newStageConfig) # Should be a dictionary
self.microGUIParent.qsettings.setValue("audio/noFinishTone", not not self._disableFinishTone.checkState())
self.microGUIParent.qsettings.sync()
# Set the settings in the main GUI also
# We do this after sync because invertCheck() calls sync as well
self.microGUIParent._SL_invertx_checkbox.setChecked(not not self._invertx.checkState())
self.microGUIParent._SL_inverty_checkbox.setChecked(not not self._inverty.checkState())
self.microGUIParent.invertCheck() # This will auto update the necessary variables
# Update the servos absoluteMode
self.microGUIParent.stageControl.controller.shutter.absoluteMode = (not not self._shutterAbsoluteMode.checkState())
self.microGUIParent.stageControl.controller.powerServo.absoluteMode = (not not self._powerAbsoluteMode.checkState())
self.microGUIParent.stageControl.controller.shutter.channel = self.set_shutterChannel
self.microGUIParent.stageControl.controller.powerServo.channel = self.set_shutterChannel * -1
# Update the finish tone
self.microGUIParent.stageControl.noFinishTone = (not not self._disableFinishTone.checkState())
# Reload from memory
self.loadSettings()
self.microGUIParent.setOperationStatus("Settings saved. Ready.")
if not noDialog:
self.microGUIParent.informationDialog(message = "Settings saved successfully.", title="Yay!", host = self)
def main(**kwargs):
# https://stackoverflow.com/a/1857/3211506
# Windows = Windows, Linux = Linux, Mac = Darwin
# For setting icon on Windows
if platform.system() == "Windows":
# https://stackoverflow.com/a/1552105/3211506
myappid = u'NUS.Nanomaterials.MicroGUI.0.10a' # arbitrary string
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
app = QtWidgets.QApplication(sys.argv)
window = MicroGui(**kwargs)
# Start the signal handler
# window.startInterruptHandler()
window.show()
window.raise_()
sys.exit(app.exec_())
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--devMode', help="Use DevMode so that StageControl is not initialized", action='store_true')
parser.add_argument('-H', '--noHome', help="Stage will not be homed", action='store_true')
args = parser.parse_args()
main(devMode = args.devMode, noHome = args.noHome)
# ARCHIVE CODE
# def moveToCentre(QtObj):
# # Get center of the window and move the window to the centre
# # Remember to setGeometry of the object first
# # https://pythonprogramminglanguage.com/pyqt5-center-window/
# _qtRectangle = QtObj.frameGeometry()
# _centerPoint = QtWidgets.QDesktopWidget().availableGeometry().center()
# _qtRectangle.moveCenter(_centerPoint)
# QtObj.move(_qtRectangle.topLeft())
|
srluge/SickRage | refs/heads/master | lib/sqlalchemy/orm/properties.py | 79 | # orm/properties.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""MapperProperty implementations.
This is a private module which defines the behavior of invidual ORM-
mapped attributes.
"""
from __future__ import absolute_import
from .. import util, log
from ..sql import expression
from . import attributes
from .util import _orm_full_deannotate
from .interfaces import PropComparator, StrategizedProperty
__all__ = ['ColumnProperty', 'CompositeProperty', 'SynonymProperty',
'ComparableProperty', 'RelationshipProperty']
@log.class_logger
class ColumnProperty(StrategizedProperty):
"""Describes an object attribute that corresponds to a table column.
Public constructor is the :func:`.orm.column_property` function.
"""
strategy_wildcard_key = 'column'
def __init__(self, *columns, **kwargs):
"""Provide a column-level property for use with a Mapper.
Column-based properties can normally be applied to the mapper's
``properties`` dictionary using the :class:`.Column` element directly.
Use this function when the given column is not directly present within the
mapper's selectable; examples include SQL expressions, functions, and
scalar SELECT queries.
Columns that aren't present in the mapper's selectable won't be persisted
by the mapper and are effectively "read-only" attributes.
:param \*cols:
list of Column objects to be mapped.
:param active_history=False:
When ``True``, indicates that the "previous" value for a
scalar attribute should be loaded when replaced, if not
already loaded. Normally, history tracking logic for
simple non-primary-key scalar values only needs to be
aware of the "new" value in order to perform a flush. This
flag is available for applications that make use of
:func:`.attributes.get_history` or :meth:`.Session.is_modified`
which also need to know
the "previous" value of the attribute.
.. versionadded:: 0.6.6
:param comparator_factory: a class which extends
:class:`.ColumnProperty.Comparator` which provides custom SQL clause
generation for comparison operations.
:param group:
a group name for this property when marked as deferred.
:param deferred:
when True, the column property is "deferred", meaning that
it does not load immediately, and is instead loaded when the
attribute is first accessed on an instance. See also
:func:`~sqlalchemy.orm.deferred`.
:param doc:
optional string that will be applied as the doc on the
class-bound descriptor.
:param expire_on_flush=True:
Disable expiry on flush. A column_property() which refers
to a SQL expression (and not a single table-bound column)
is considered to be a "read only" property; populating it
has no effect on the state of data, and it can only return
database state. For this reason a column_property()'s value
is expired whenever the parent object is involved in a
flush, that is, has any kind of "dirty" state within a flush.
Setting this parameter to ``False`` will have the effect of
leaving any existing value present after the flush proceeds.
Note however that the :class:`.Session` with default expiration
settings still expires
all attributes after a :meth:`.Session.commit` call, however.
.. versionadded:: 0.7.3
:param info: Optional data dictionary which will be populated into the
:attr:`.MapperProperty.info` attribute of this object.
.. versionadded:: 0.8
:param extension:
an
:class:`.AttributeExtension`
instance, or list of extensions, which will be prepended
to the list of attribute listeners for the resulting
descriptor placed on the class.
**Deprecated.** Please see :class:`.AttributeEvents`.
"""
self._orig_columns = [expression._labeled(c) for c in columns]
self.columns = [expression._labeled(_orm_full_deannotate(c))
for c in columns]
self.group = kwargs.pop('group', None)
self.deferred = kwargs.pop('deferred', False)
self.instrument = kwargs.pop('_instrument', True)
self.comparator_factory = kwargs.pop('comparator_factory',
self.__class__.Comparator)
self.descriptor = kwargs.pop('descriptor', None)
self.extension = kwargs.pop('extension', None)
self.active_history = kwargs.pop('active_history', False)
self.expire_on_flush = kwargs.pop('expire_on_flush', True)
if 'info' in kwargs:
self.info = kwargs.pop('info')
if 'doc' in kwargs:
self.doc = kwargs.pop('doc')
else:
for col in reversed(self.columns):
doc = getattr(col, 'doc', None)
if doc is not None:
self.doc = doc
break
else:
self.doc = None
if kwargs:
raise TypeError(
"%s received unexpected keyword argument(s): %s" % (
self.__class__.__name__,
', '.join(sorted(kwargs.keys()))))
util.set_creation_order(self)
self.strategy_class = self._strategy_lookup(
("deferred", self.deferred),
("instrument", self.instrument)
)
@property
def expression(self):
"""Return the primary column or expression for this ColumnProperty.
"""
return self.columns[0]
def instrument_class(self, mapper):
if not self.instrument:
return
attributes.register_descriptor(
mapper.class_,
self.key,
comparator=self.comparator_factory(self, mapper),
parententity=mapper,
doc=self.doc
)
def do_init(self):
super(ColumnProperty, self).do_init()
if len(self.columns) > 1 and \
set(self.parent.primary_key).issuperset(self.columns):
util.warn(
("On mapper %s, primary key column '%s' is being combined "
"with distinct primary key column '%s' in attribute '%s'. "
"Use explicit properties to give each column its own mapped "
"attribute name.") % (self.parent, self.columns[1],
self.columns[0], self.key))
def copy(self):
return ColumnProperty(
deferred=self.deferred,
group=self.group,
active_history=self.active_history,
*self.columns)
def _getcommitted(self, state, dict_, column,
passive=attributes.PASSIVE_OFF):
return state.get_impl(self.key).\
get_committed_value(state, dict_, passive=passive)
def merge(self, session, source_state, source_dict, dest_state,
dest_dict, load, _recursive):
if not self.instrument:
return
elif self.key in source_dict:
value = source_dict[self.key]
if not load:
dest_dict[self.key] = value
else:
impl = dest_state.get_impl(self.key)
impl.set(dest_state, dest_dict, value, None)
elif dest_state.has_identity and self.key not in dest_dict:
dest_state._expire_attributes(dest_dict, [self.key])
class Comparator(PropComparator):
"""Produce boolean, comparison, and other operators for
:class:`.ColumnProperty` attributes.
See the documentation for :class:`.PropComparator` for a brief
overview.
See also:
:class:`.PropComparator`
:class:`.ColumnOperators`
:ref:`types_operators`
:attr:`.TypeEngine.comparator_factory`
"""
@util.memoized_instancemethod
def __clause_element__(self):
if self.adapter:
return self.adapter(self.prop.columns[0])
else:
return self.prop.columns[0]._annotate({
"parententity": self._parentmapper,
"parentmapper": self._parentmapper})
@util.memoized_property
def info(self):
ce = self.__clause_element__()
try:
return ce.info
except AttributeError:
return self.prop.info
def __getattr__(self, key):
"""proxy attribute access down to the mapped column.
this allows user-defined comparison methods to be accessed.
"""
return getattr(self.__clause_element__(), key)
def operate(self, op, *other, **kwargs):
return op(self.__clause_element__(), *other, **kwargs)
def reverse_operate(self, op, other, **kwargs):
col = self.__clause_element__()
return op(col._bind_param(op, other), col, **kwargs)
def __str__(self):
return str(self.parent.class_.__name__) + "." + self.key
|
proversity-org/edx-platform | refs/heads/master | common/lib/calc/setup.py | 19 | from setuptools import setup
setup(
name="calc",
version="0.2",
packages=["calc"],
install_requires=[
"pyparsing==2.0.7",
"numpy==1.6.2",
"scipy==0.14.0",
],
)
|
madformuse/client | refs/heads/develop | runtests.py | 4 | #! /usr/bin/env python
sources = """
eNrsvWmX40hyINijPWbFWY2kXa32nHlo5qYAVDKYkVnV6hanWKXqrEwppbpeHurSi4phIghEBDpI
gAmAGRHTar39Ebuf50fsj9i/tXb5CQfJyKrq1r632V1BEnA3dzc3NzczNzf7P/7gt29/krz+k83t
dLGqL6aLRVmV3WLx9l+9/rvxeBzBs4uyuog+++Z5lMSbps63y6Jp4yir8ihe1lW7XdNv+FoVy67I
o3dlFl0Vt9d1k7dpBEBGo7d/8PpfYwttl7/9L17953/1k5+U603ddFF7245Gy1XWttHLLk/qs18D
jHQ2iuAfNr/Oroo26urN0ap4V6yizW13WVfRGrqxghfZu6xcZWerIsrgRxVlXdeUZ9uumBAE/McN
4RC6y2IdQeXzsmm7KFsui7ad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EqXVEOXPn9h6Ra0ROlZaxiXfYI6ylDRZ0Frnzx/Vj5z545TMLCDZEe6ojQN2qaKiC2TNpkt
kw+nskX+mxtzFeSojkdE8Qh3WyWDzAepGD+fyY3DAvSD7//uvs8PO1/tp4inQyvpnBFzrpCP3F+2
tuE4dPOg40PLRJcWegzp+5Qj5LfgOqXpLQjRL7pujr3hL+Qgffwfh/L/A3O3GmE=
"""
import sys
import base64
import zlib
class DictImporter(object):
def __init__(self, sources):
self.sources = sources
def find_module(self, fullname, path=None):
if fullname == "argparse" and sys.version_info >= (2,7):
# we were generated with <python2.7 (which pulls in argparse)
# but we are running now on a stdlib which has it, so use that.
return None
if fullname in self.sources:
return self
if fullname + '.__init__' in self.sources:
return self
return None
def load_module(self, fullname):
# print "load_module:", fullname
from types import ModuleType
try:
s = self.sources[fullname]
is_pkg = False
except KeyError:
s = self.sources[fullname + '.__init__']
is_pkg = True
co = compile(s, fullname, 'exec')
module = sys.modules.setdefault(fullname, ModuleType(fullname))
module.__file__ = "%s/%s" % (__file__, fullname)
module.__loader__ = self
if is_pkg:
module.__path__ = [fullname]
do_exec(co, module.__dict__) # noqa
return sys.modules[fullname]
def get_source(self, name):
res = self.sources.get(name)
if res is None:
res = self.sources.get(name + '.__init__')
return res
if __name__ == "__main__":
if sys.version_info >= (3, 0):
exec("def do_exec(co, loc): exec(co, loc)\n")
import pickle
sources = sources.encode("ascii") # ensure bytes
sources = pickle.loads(zlib.decompress(base64.decodebytes(sources)))
else:
import cPickle as pickle
exec("def do_exec(co, loc): exec co in loc\n")
sources = pickle.loads(zlib.decompress(base64.decodestring(sources)))
importer = DictImporter(sources)
sys.meta_path.insert(0, importer)
entry = "import pytest; raise SystemExit(pytest.cmdline.main())"
do_exec(entry, locals()) # noqa
|
resmo/ansible | refs/heads/devel | lib/ansible/modules/network/f5/bigip_dns_cache_resolver.py | 38 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2018, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'certified'}
DOCUMENTATION = r'''
---
module: bigip_dns_cache_resolver
short_description: Manage DNS resolver cache configurations on BIG-IP
description:
- Manage DNS resolver cache configurations on BIG-IP.
version_added: 2.8
options:
name:
description:
- Specifies the name of the cache.
type: str
required: True
answer_default_zones:
description:
- Specifies whether the system answers DNS queries for the default
zones localhost, reverse 127.0.0.1 and ::1, and AS112.
- When creating a new cache resolver, if this parameter is not specified, the
default is C(no).
type: bool
forward_zones:
description:
- Forward zones associated with the cache.
- To remove all forward zones, specify a value of C(none).
suboptions:
name:
description:
- Specifies a FQDN for the forward zone.
type: str
required: True
nameservers:
description:
- Specifies the IP address and service port of a recursive
nameserver that answers DNS queries for the zone when the
response cannot be found in the DNS cache.
suboptions:
address:
description:
- Address of recursive nameserver.
type: str
port:
description:
- Port of recursive nameserver.
- When specifying new nameservers, if this value is not provided, the
default is C(53).
type: int
type: list
type: raw
route_domain:
description:
- Specifies the route domain the resolver uses for outbound traffic.
type: str
state:
description:
- When C(present), ensures that the resource exists.
- When C(absent), ensures the resource is removed.
type: str
choices:
- present
- absent
default: present
partition:
description:
- Device partition to manage resources on.
type: str
default: Common
extends_documentation_fragment: f5
author:
- Tim Rupp (@caphrim007)
'''
EXAMPLES = r'''
- name: Create a DNS resolver cache
bigip_dns_cache:
name: foo
answer_default_zones: yes
forward_zones:
- name: foo.bar.com
nameservers:
- address: 1.2.3.4
port: 53
- address: 5.6.7.8
route_domain: 0
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
'''
RETURN = r'''
param1:
description: The new param1 value of the resource.
returned: changed
type: bool
sample: true
param2:
description: The new param2 value of the resource.
returned: changed
type: str
sample: Foo is bar
'''
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.basic import env_fallback
try:
from library.module_utils.network.f5.bigip import F5RestClient
from library.module_utils.network.f5.common import F5ModuleError
from library.module_utils.network.f5.common import AnsibleF5Parameters
from library.module_utils.network.f5.common import fq_name
from library.module_utils.network.f5.common import f5_argument_spec
from library.module_utils.network.f5.common import flatten_boolean
from library.module_utils.network.f5.common import transform_name
except ImportError:
from ansible.module_utils.network.f5.bigip import F5RestClient
from ansible.module_utils.network.f5.common import F5ModuleError
from ansible.module_utils.network.f5.common import AnsibleF5Parameters
from ansible.module_utils.network.f5.common import fq_name
from ansible.module_utils.network.f5.common import f5_argument_spec
from ansible.module_utils.network.f5.common import flatten_boolean
from ansible.module_utils.network.f5.common import transform_name
class Parameters(AnsibleF5Parameters):
api_map = {
'routeDomain': 'route_domain',
'answerDefaultZones': 'answer_default_zones',
'forwardZones': 'forward_zones',
}
api_attributes = [
'routeDomain',
'answerDefaultZones',
'forwardZones',
]
returnables = [
'route_domain',
'answer_default_zones',
'forward_zones',
]
updatables = [
'route_domain',
'answer_default_zones',
'forward_zones',
]
@property
def route_domain(self):
if self._values['route_domain'] is None:
return None
return fq_name(self.partition, self._values['route_domain'])
@property
def answer_default_zones(self):
return flatten_boolean(self._values['answer_default_zones'])
class ApiParameters(Parameters):
@property
def forward_zones(self):
if self._values['forward_zones'] is None:
return None
result = []
for x in self._values['forward_zones']:
tmp = dict(
name=x['name'],
nameservers=[]
)
if 'nameservers' in x:
tmp['nameservers'] = [y['name'] for y in x['nameservers']]
tmp['nameservers'].sort()
result.append(tmp)
return result
class ModuleParameters(Parameters):
@property
def forward_zones(self):
if self._values['forward_zones'] is None:
return None
elif self._values['forward_zones'] in ['', 'none']:
return ''
result = []
for x in self._values['forward_zones']:
if 'name' not in x:
raise F5ModuleError(
"A 'name' key must be provided when specifying a list of forward zones."
)
tmp = dict(
name=x['name'],
nameservers=[]
)
if 'nameservers' in x:
for ns in x['nameservers']:
if 'address' not in ns:
raise F5ModuleError(
"An 'address' key must be provided when specifying a list of forward zone nameservers."
)
item = '{0}:{1}'.format(ns['address'], ns.get('port', 53))
tmp['nameservers'].append(item)
tmp['nameservers'].sort()
result.append(tmp)
return result
class Changes(Parameters):
def to_return(self):
result = {}
try:
for returnable in self.returnables:
result[returnable] = getattr(self, returnable)
result = self._filter_params(result)
except Exception:
pass
return result
class UsableChanges(Changes):
@property
def forward_zones(self):
if self._values['forward_zones'] is None:
return None
result = []
for x in self._values['forward_zones']:
tmp = {'name': x['name']}
if 'nameservers' in x:
tmp['nameservers'] = []
for y in x['nameservers']:
tmp['nameservers'].append(dict(name=y))
result.append(tmp)
return result
class ReportableChanges(Changes):
pass
class Difference(object):
def __init__(self, want, have=None):
self.want = want
self.have = have
def compare(self, param):
try:
result = getattr(self, param)
return result
except AttributeError:
return self.__default(param)
def __default(self, param):
attr1 = getattr(self.want, param)
try:
attr2 = getattr(self.have, param)
if attr1 != attr2:
return attr1
except AttributeError:
return attr1
@property
def forward_zones(self):
if self.want.forward_zones is None:
return None
if self.have.forward_zones is None and self.want.forward_zones in ['', 'none']:
return None
if self.have.forward_zones is not None and self.want.forward_zones in ['', 'none']:
return []
if self.have.forward_zones is None:
return dict(
forward_zones=self.want.forward_zones
)
want = sorted(self.want.forward_zones, key=lambda x: x['name'])
have = sorted(self.have.forward_zones, key=lambda x: x['name'])
wnames = [x['name'] for x in want]
hnames = [x['name'] for x in have]
if set(wnames) != set(hnames):
return dict(
forward_zones=self.want.forward_zones
)
for idx, x in enumerate(want):
wns = x.get('nameservers', [])
hns = have[idx].get('nameservers', [])
if set(wns) != set(hns):
return dict(
forward_zones=self.want.forward_zones
)
class ModuleManager(object):
def __init__(self, *args, **kwargs):
self.module = kwargs.get('module', None)
self.client = F5RestClient(**self.module.params)
self.want = ModuleParameters(params=self.module.params)
self.have = ApiParameters()
self.changes = UsableChanges()
def _set_changed_options(self):
changed = {}
for key in Parameters.returnables:
if getattr(self.want, key) is not None:
changed[key] = getattr(self.want, key)
if changed:
self.changes = UsableChanges(params=changed)
def _update_changed_options(self):
diff = Difference(self.want, self.have)
updatables = Parameters.updatables
changed = dict()
for k in updatables:
change = diff.compare(k)
if change is None:
continue
else:
if isinstance(change, dict):
changed.update(change)
else:
changed[k] = change
if changed:
self.changes = UsableChanges(params=changed)
return True
return False
def should_update(self):
result = self._update_changed_options()
if result:
return True
return False
def exec_module(self):
changed = False
result = dict()
state = self.want.state
if state == "present":
changed = self.present()
elif state == "absent":
changed = self.absent()
reportable = ReportableChanges(params=self.changes.to_return())
changes = reportable.to_return()
result.update(**changes)
result.update(dict(changed=changed))
self._announce_deprecations(result)
return result
def _announce_deprecations(self, result):
warnings = result.pop('__warnings', [])
for warning in warnings:
self.client.module.deprecate(
msg=warning['msg'],
version=warning['version']
)
def present(self):
if self.exists():
return self.update()
else:
return self.create()
def exists(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/dns/cache/resolver/{2}".format(
self.client.provider['server'],
self.client.provider['server_port'],
transform_name(self.want.partition, self.want.name)
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError:
return False
if resp.status == 404 or 'code' in response and response['code'] == 404:
return False
return True
def update(self):
self.have = self.read_current_from_device()
if not self.should_update():
return False
if self.module.check_mode:
return True
self.update_on_device()
return True
def remove(self):
if self.module.check_mode:
return True
self.remove_from_device()
if self.exists():
raise F5ModuleError("Failed to delete the resource.")
return True
def create(self):
self._set_changed_options()
if self.module.check_mode:
return True
self.create_on_device()
return True
def create_on_device(self):
params = self.changes.api_params()
params['name'] = self.want.name
params['partition'] = self.want.partition
uri = "https://{0}:{1}/mgmt/tm/ltm/dns/cache/resolver/".format(
self.client.provider['server'],
self.client.provider['server_port']
)
resp = self.client.api.post(uri, json=params)
try:
response = resp.json()
except ValueError as ex:
raise F5ModuleError(str(ex))
if 'code' in response and response['code'] in [400, 403]:
if 'message' in response:
raise F5ModuleError(response['message'])
else:
raise F5ModuleError(resp.content)
def update_on_device(self):
params = self.changes.api_params()
uri = "https://{0}:{1}/mgmt/tm/ltm/dns/cache/resolver/{2}".format(
self.client.provider['server'],
self.client.provider['server_port'],
transform_name(self.want.partition, self.want.name)
)
resp = self.client.api.patch(uri, json=params)
try:
response = resp.json()
except ValueError as ex:
raise F5ModuleError(str(ex))
if 'code' in response and response['code'] == 400:
if 'message' in response:
raise F5ModuleError(response['message'])
else:
raise F5ModuleError(resp.content)
def absent(self):
if self.exists():
return self.remove()
return False
def remove_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/dns/cache/resolver/{2}".format(
self.client.provider['server'],
self.client.provider['server_port'],
transform_name(self.want.partition, self.want.name)
)
response = self.client.api.delete(uri)
if response.status == 200:
return True
raise F5ModuleError(response.content)
def read_current_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/dns/cache/resolver/{2}".format(
self.client.provider['server'],
self.client.provider['server_port'],
transform_name(self.want.partition, self.want.name)
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ex:
raise F5ModuleError(str(ex))
if 'code' in response and response['code'] == 400:
if 'message' in response:
raise F5ModuleError(response['message'])
else:
raise F5ModuleError(resp.content)
return ApiParameters(params=response)
class ArgumentSpec(object):
def __init__(self):
self.supports_check_mode = True
argument_spec = dict(
name=dict(required=True),
route_domain=dict(),
answer_default_zones=dict(type='bool'),
forward_zones=dict(
type='raw',
options=dict(
name=dict(),
nameservers=dict(
type='list',
elements='dict',
options=dict(
address=dict(),
port=dict(type='int')
)
)
)
),
state=dict(
default='present',
choices=['present', 'absent']
),
partition=dict(
default='Common',
fallback=(env_fallback, ['F5_PARTITION'])
)
)
self.argument_spec = {}
self.argument_spec.update(f5_argument_spec)
self.argument_spec.update(argument_spec)
def main():
spec = ArgumentSpec()
module = AnsibleModule(
argument_spec=spec.argument_spec,
supports_check_mode=spec.supports_check_mode,
)
try:
mm = ModuleManager(module=module)
results = mm.exec_module()
module.exit_json(**results)
except F5ModuleError as ex:
module.fail_json(msg=str(ex))
if __name__ == '__main__':
main()
|
jaesivsm/Radicale | refs/heads/master | radicale/tests/__init__.py | 1 | # This file is part of Radicale Server - Calendar Server
# Copyright © 2012-2017 Guillaume Ayoub
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
"""
Tests for Radicale.
"""
import logging
import os
import sys
from io import BytesIO
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
logger = logging.getLogger("radicale_test")
if not logger.hasHandlers():
handler = logging.StreamHandler(sys.stderr)
handler.setFormatter(logging.Formatter("%(levelname)s: %(message)s"))
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
class BaseTest:
"""Base class for tests."""
logger = logger
def request(self, method, path, data=None, **args):
"""Send a request."""
self.application._status = None
self.application._headers = None
self.application._answer = None
for key in args:
args[key.upper()] = args[key]
args["REQUEST_METHOD"] = method.upper()
args["PATH_INFO"] = path
if data:
data = data.encode("utf-8")
args["wsgi.input"] = BytesIO(data)
args["CONTENT_LENGTH"] = str(len(data))
self.application._answer = self.application(args, self.start_response)
return (
int(self.application._status.split()[0]),
dict(self.application._headers),
self.application._answer[0].decode("utf-8")
if self.application._answer else None)
def start_response(self, status, headers):
"""Put the response values into the current application."""
self.application._status = status
self.application._headers = headers
|
mvfsilva/bootcamp | refs/heads/master | bootcamp/questions/urls.py | 12 | from django.conf.urls import patterns, include, url
urlpatterns = patterns('bootcamp.questions.views',
url(r'^$', 'questions', name='questions'),
url(r'^answered/$', 'answered', name='answered'),
url(r'^unanswered/$', 'unanswered', name='unanswered'),
url(r'^all/$', 'all', name='all'),
url(r'^ask/$', 'ask', name='ask'),
url(r'^favorite/$', 'favorite', name='favorite'),
url(r'^answer/$', 'answer', name='answer'),
url(r'^answer/accept/$', 'accept', name='accept'),
url(r'^answer/vote/$', 'vote', name='vote'),
url(r'^(\d+)/$', 'question', name='question'),
) |
pcdocker/pcdocker | refs/heads/master | pcdocker/users/tests/test_admin.py | 264 | from test_plus.test import TestCase
from ..admin import MyUserCreationForm
class TestMyUserCreationForm(TestCase):
def setUp(self):
self.user = self.make_user()
def test_clean_username_success(self):
# Instantiate the form with a new username
form = MyUserCreationForm({
'username': 'alamode',
'password1': '123456',
'password2': '123456',
})
# Run is_valid() to trigger the validation
valid = form.is_valid()
self.assertTrue(valid)
# Run the actual clean_username method
username = form.clean_username()
self.assertEqual('alamode', username)
def test_clean_username_false(self):
# Instantiate the form with the same username as self.user
form = MyUserCreationForm({
'username': self.user.username,
'password1': '123456',
'password2': '123456',
})
# Run is_valid() to trigger the validation, which is going to fail
# because the username is already taken
valid = form.is_valid()
self.assertFalse(valid)
# The form.errors dict should contain a single error called 'username'
self.assertTrue(len(form.errors) == 1)
self.assertTrue('username' in form.errors)
|
Hybrid-Cloud/cinder | refs/heads/master | cinder/db/sqlalchemy/migrate_repo/manage.py | 50 | #!/usr/bin/env python
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
from cinder.db.sqlalchemy import migrate_repo
from migrate.versioning.shell import main
if __name__ == '__main__':
main(debug='False',
repository=os.path.abspath(os.path.dirname(migrate_repo.__file__)))
|
Darkmer/masterchief | refs/heads/master | CourseBuilderenv/lib/python2.7/site-packages/setuptools/command/rotate.py | 125 | import os
from setuptools import Command
from setuptools.compat import basestring
from distutils.util import convert_path
from distutils import log
from distutils.errors import DistutilsOptionError
class rotate(Command):
"""Delete older distributions"""
description = "delete older distributions, keeping N newest files"
user_options = [
('match=', 'm', "patterns to match (required)"),
('dist-dir=', 'd', "directory where the distributions are"),
('keep=', 'k', "number of matching distributions to keep"),
]
boolean_options = []
def initialize_options(self):
self.match = None
self.dist_dir = None
self.keep = None
def finalize_options(self):
if self.match is None:
raise DistutilsOptionError(
"Must specify one or more (comma-separated) match patterns "
"(e.g. '.zip' or '.egg')"
)
if self.keep is None:
raise DistutilsOptionError("Must specify number of files to keep")
try:
self.keep = int(self.keep)
except ValueError:
raise DistutilsOptionError("--keep must be an integer")
if isinstance(self.match, basestring):
self.match = [
convert_path(p.strip()) for p in self.match.split(',')
]
self.set_undefined_options('bdist',('dist_dir', 'dist_dir'))
def run(self):
self.run_command("egg_info")
from glob import glob
for pattern in self.match:
pattern = self.distribution.get_name()+'*'+pattern
files = glob(os.path.join(self.dist_dir,pattern))
files = [(os.path.getmtime(f),f) for f in files]
files.sort()
files.reverse()
log.info("%d file(s) matching %s", len(files), pattern)
files = files[self.keep:]
for (t,f) in files:
log.info("Deleting %s", f)
if not self.dry_run:
os.unlink(f)
|
RandyLowery/erpnext | refs/heads/develop | erpnext/stock/doctype/stock_settings/__init__.py | 12133432 | |
aleksandra-tarkowska/django | refs/heads/master | tests/multiple_database/__init__.py | 12133432 | |
tungvx/deploy | refs/heads/master | .google_appengine/lib/django_1_2/tests/regressiontests/special_headers/__init__.py | 12133432 | |
ncliam/serverpos | refs/heads/master | openerp/addons/l10n_hn/__init__.py | 27 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2009-2010 Salvatore J. Trimarchi <[email protected]>
# (http://salvatoreweb.co.cc)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
xiaoxiamii/scikit-learn | refs/heads/master | sklearn/metrics/cluster/tests/test_bicluster.py | 394 | """Testing for bicluster metrics module"""
import numpy as np
from sklearn.utils.testing import assert_equal, assert_almost_equal
from sklearn.metrics.cluster.bicluster import _jaccard
from sklearn.metrics import consensus_score
def test_jaccard():
a1 = np.array([True, True, False, False])
a2 = np.array([True, True, True, True])
a3 = np.array([False, True, True, False])
a4 = np.array([False, False, True, True])
assert_equal(_jaccard(a1, a1, a1, a1), 1)
assert_equal(_jaccard(a1, a1, a2, a2), 0.25)
assert_equal(_jaccard(a1, a1, a3, a3), 1.0 / 7)
assert_equal(_jaccard(a1, a1, a4, a4), 0)
def test_consensus_score():
a = [[True, True, False, False],
[False, False, True, True]]
b = a[::-1]
assert_equal(consensus_score((a, a), (a, a)), 1)
assert_equal(consensus_score((a, a), (b, b)), 1)
assert_equal(consensus_score((a, b), (a, b)), 1)
assert_equal(consensus_score((a, b), (b, a)), 1)
assert_equal(consensus_score((a, a), (b, a)), 0)
assert_equal(consensus_score((a, a), (a, b)), 0)
assert_equal(consensus_score((b, b), (a, b)), 0)
assert_equal(consensus_score((b, b), (b, a)), 0)
def test_consensus_score_issue2445():
''' Different number of biclusters in A and B'''
a_rows = np.array([[True, True, False, False],
[False, False, True, True],
[False, False, False, True]])
a_cols = np.array([[True, True, False, False],
[False, False, True, True],
[False, False, False, True]])
idx = [0, 2]
s = consensus_score((a_rows, a_cols), (a_rows[idx], a_cols[idx]))
# B contains 2 of the 3 biclusters in A, so score should be 2/3
assert_almost_equal(s, 2.0/3.0)
|
ColinIanKing/autotest | refs/heads/master | frontend/shared/common.py | 20 | import os, sys
try:
import autotest.client.setup_modules as setup_modules
dirname = os.path.dirname(setup_modules.__file__)
autotest_dir = os.path.join(dirname, "..")
except ImportError:
dirname = os.path.dirname(sys.modules[__name__].__file__)
autotest_dir = os.path.abspath(os.path.join(dirname, '..', '..'))
client_dir = os.path.join(autotest_dir, "client")
sys.path.insert(0, client_dir)
import setup_modules
sys.path.pop(0)
setup_modules.setup(base_path=autotest_dir, root_module_name="autotest")
|
pronto/dotfiles | refs/heads/master | .vim/pylibs/ropevim.py | 1 | """ropevim, a vim mode for using rope refactoring library"""
import glob
import os
import tempfile
import re
from pylibs.ropemode import decorators
from pylibs.ropemode import environment
from pylibs.ropemode import interface
import vim
# Gobal var to be able to shutup output
_rope_quiet = False
class VimUtils(environment.Environment):
def __init__(self, *args, **kwargs):
super(VimUtils, self).__init__(*args, **kwargs)
self.completeopt = vim.eval('&completeopt')
self.preview = 'preview' in self.completeopt
def ask(self, prompt, default=None, starting=None):
if starting is None:
starting = ''
if default is not None:
prompt = prompt + '[{0}] '.format(default)
result = call('input("{0}", "{1}")'.format(prompt, starting))
if default is not None and result == '':
return default
return result
def ask_values(self, prompt, values, default=None,
starting=None, show_values=None):
if show_values or (show_values is None and len(values) < 14):
self._print_values(values)
if default is not None:
prompt = prompt + '[{0}] '.format(default)
starting = starting or ''
_completer.values = values
answer = call(
'input("{0}", "{1}", "customlist,RopeValueCompleter")'.format(
prompt, starting
)
)
if answer is None:
if 'cancel' in values:
return 'cancel'
return
if default is not None and not answer:
return default
if answer.isdigit() and 0 <= int(answer) < len(values):
return values[int(answer)]
return answer
def _print_values(self, values):
numbered = []
for index, value in enumerate(values):
numbered.append('%s. %s' % (index, str(value)))
echo('\n'.join(numbered) + '\n')
def ask_directory(self, prompt, default=None, starting=None):
return call('input("{0}", ".", "dir")'.format(prompt))
def _update_proposals(self, values):
self.completeopt = vim.eval('&completeopt')
self.preview = 'preview' in self.completeopt
if not self.get('extended_complete'):
return u','.join(u"'{0}'".format(self._completion_text(proposal))
for proposal in values)
return u','.join(self._extended_completion(proposal)
for proposal in values)
def _command(self, command, encode=False):
if encode:
command = command.encode(self._get_encoding())
vim.command(command)
def ask_completion(self, prompt, values, starting=None):
if self.get('vim_completion') and 'i' in call('mode()'):
proposals = self._update_proposals(values)
col = int(call('col(".")'))
if starting:
col -= len(starting)
self._command(u'call complete({0}, [{1}])'.format(col, proposals),
encode=True)
return None
return self.ask_values(prompt, values, starting=starting,
show_values=False)
def message(self, message):
echo(message)
def yes_or_no(self, prompt):
return self.ask_values(prompt, ['yes', 'no']) == 'yes'
def y_or_n(self, prompt):
return self.yes_or_no(prompt)
def get(self, name, default=None):
vimname = 'g:pymode_rope_{0}'.format(name)
if str(vim.eval('exists("{0}")'.format(vimname))) == '0':
return default
result = vim.eval(vimname)
if isinstance(result, str) and result.isdigit():
return int(result)
return result
def get_offset(self):
result = self._position_to_offset(*self.cursor)
return result
@staticmethod
def _get_encoding():
return vim.eval('&encoding') or 'utf-8'
def _encode_line(self, line):
return line.encode(self._get_encoding())
def _decode_line(self, line):
return line.decode(self._get_encoding())
def _position_to_offset(self, lineno, colno):
result = min(colno, len(self.buffer[lineno - 1]) + 1)
for line in self.buffer[:lineno - 1]:
line = self._decode_line(line)
result += len(line) + 1
return result
def get_text(self):
return self._decode_line('\n'.join(self.buffer)) + u'\n'
def get_region(self):
start = self._position_to_offset(*self.buffer.mark('<'))
end = self._position_to_offset(*self.buffer.mark('>'))
return start, end
@property
def buffer(self):
return vim.current.buffer
def _get_cursor(self):
lineno, col = vim.current.window.cursor
line = self._decode_line(vim.current.line[:col])
col = len(line)
return (lineno, col)
def _set_cursor(self, cursor):
lineno, col = cursor
line = self._decode_line(vim.current.line)
line = self._encode_line(line[:col])
col = len(line)
vim.current.window.cursor = (lineno, col)
cursor = property(_get_cursor, _set_cursor)
@staticmethod
def get_cur_dir():
return vim.eval('getcwd()')
def filename(self):
return self.buffer.name
def is_modified(self):
return vim.eval('&modified')
def goto_line(self, lineno):
self.cursor = (lineno, 0)
def insert_line(self, line, lineno):
self.buffer[lineno - 1:lineno - 1] = [line]
def insert(self, text):
lineno, colno = self.cursor
line = self.buffer[lineno - 1]
self.buffer[lineno - 1] = line[:colno] + text + line[colno:]
self.cursor = (lineno, colno + len(text))
def delete(self, start, end):
lineno1, colno1 = self._offset_to_position(start - 1)
lineno2, colno2 = self._offset_to_position(end - 1)
lineno, colno = self.cursor
if lineno1 == lineno2:
line = self.buffer[lineno1 - 1]
self.buffer[lineno1 - 1] = line[:colno1] + line[colno2:]
if lineno == lineno1 and colno >= colno1:
diff = colno2 - colno1
self.cursor = (lineno, max(0, colno - diff))
def _offset_to_position(self, offset):
text = self.get_text()
lineno = text.count('\n', 0, offset) + 1
try:
colno = offset - text.rindex('\n', 0, offset) - 1
except ValueError:
colno = offset
return lineno, colno
def filenames(self):
result = []
for buffer in vim.buffers:
if buffer.name:
result.append(buffer.name)
return result
def save_files(self, filenames):
vim.command('wall')
def reload_files(self, filenames, moves={}):
initial = self.filename()
for filename in filenames:
self.find_file(moves.get(filename, filename), force=True)
if initial:
self.find_file(initial)
def find_file(self, filename, readonly=False, other=False, force=False):
if filename != self.filename() or force:
if other:
vim.command(other)
filename = '\\ '.join(s.rstrip() for s in filename.split())
vim.command('e %s' % filename)
if readonly:
vim.command('set nomodifiable')
def create_progress(self, name):
return VimProgress(name)
def current_word(self):
return vim.eval('expand("<cword>")')
def push_mark(self):
vim.command('mark `')
def prefix_value(self, prefix):
return prefix
def show_occurrences(self, locations):
self._quickfixdefs(locations)
vim.command('cwindow')
def _quickfixdefs(self, locations):
filename = os.path.join(tempfile.gettempdir(), tempfile.mktemp())
try:
self._writedefs(locations, filename)
vim.command('let old_errorfile = &errorfile')
vim.command('let old_errorformat = &errorformat')
vim.command('set errorformat=%f:%l:\ %m')
vim.command('cfile ' + filename)
vim.command('let &errorformat = old_errorformat')
vim.command('let &errorfile = old_errorfile')
finally:
os.remove(filename)
def _writedefs(self, locations, filename):
tofile = open(filename, 'w')
try:
for location in locations:
err = '%s:%d: - %s\n' % (location.filename,
location.lineno, location.note)
echo(err)
tofile.write(err)
finally:
tofile.close()
def show_doc(self, docs, altview=False):
if docs:
vim.command(
'call pymode#ShowStr("{0}")'.format(docs.replace('"', '\\"'))
)
def preview_changes(self, diffs):
echo(diffs)
return self.y_or_n('Do the changes? ')
def local_command(self, name, callback, key=None, prefix=False):
self._add_command(name, callback, key, prefix,
prekey=self.get('local_prefix'))
def global_command(self, name, callback, key=None, prefix=False):
self._add_command(name, callback, key, prefix,
prekey=self.get('global_prefix'))
def add_hook(self, name, callback, hook):
mapping = {'before_save': 'FileWritePre,BufWritePre',
'after_save': 'FileWritePost,BufWritePost',
'exit': 'VimLeave'}
self._add_function(name, callback)
vim.command(
'autocmd {0} *.py call {1}()'.format(
mapping[hook], _vim_name(name)
)
)
def _add_command(self, name, callback, key, prefix, prekey):
self._add_function(name, callback, prefix)
vim.command(
'command! -range {0} call {1}()'.format(
_vim_name(name), _vim_name(name)
)
)
if key is not None:
key = prekey + key.replace(' ', '')
vim.command(
'noremap {0} :call {1}()<cr>'.format(key, _vim_name(name))
)
def _add_function(self, name, callback, prefix=False):
globals()[name] = callback
arg = 'None' if prefix else ''
vim.command(
'function! {0}()\n'
'python ropevim.{1}({2})\n'
'endfunction\n'.format(_vim_name(name), name, arg)
)
def _completion_data(self, proposal):
return proposal
_docstring_re = re.compile('^[\s\t\n]*([^\n]*)')
def _extended_completion(self, proposal):
# we are using extended complete and return dicts instead of strings.
# `ci` means "completion item". see `:help complete-items`
word, _, menu = map(lambda x: x.strip(), proposal.name.partition(':'))
ci = dict(
word=word,
info='',
kind=''.join(
s if s not in 'aeyuo' else '' for s in proposal.type)[:3],
menu=menu or '')
if proposal.scope == 'parameter_keyword':
default = proposal.get_default()
ci["menu"] += '*' if default is None else '= {0}'.format(default)
if self.preview and not ci['menu']:
doc = proposal.get_doc()
ci['info'] = self._docstring_re.match(doc).group(1) if doc else ''
return self._conv(ci)
def _conv(self, obj):
if isinstance(obj, dict):
return u'{' + u','.join([
u"{0}:{1}".format(self._conv(key), self._conv(value))
for key, value in obj.iteritems()]) + u'}'
return u'"{0}"'.format(str(obj).replace(u'"', u'\\"'))
def _vim_name(name):
tokens = name.split('_')
newtokens = ['Rope'] + [token.title() for token in tokens]
return ''.join(newtokens)
class VimProgress(object):
def __init__(self, name):
self.name = name
self.last = 0
status('{0} ... '.format(self.name))
def update(self, percent):
try:
vim.eval('getchar(0)')
except vim.error:
raise KeyboardInterrupt(
'Task {0} was interrupted!'.format(self.name)
)
if percent > self.last + 4:
status('{0} ... {1}%'.format(self.name, percent))
self.last = percent
def done(self):
status('{0} ... done'.format(self.name))
def echo(message):
if _rope_quiet:
return
if isinstance(message, unicode):
message = message.encode(vim.eval('&encoding'))
print message
def status(message):
if _rope_quiet:
return
if isinstance(message, unicode):
message = message.encode(vim.eval('&encoding'))
vim.command('redraw | echon "{0}"'.format(message))
def call(command):
return vim.eval(command)
class _ValueCompleter(object):
def __init__(self):
self.values = []
vim.command('python import vim')
vim.command('function! RopeValueCompleter(A, L, P)\n'
'python args = [vim.eval("a:" + p) for p in "ALP"]\n'
'python ropevim._completer(*args)\n'
'return s:completions\n'
'endfunction\n')
def __call__(self, arg_lead, cmd_line, cursor_pos):
# don't know if self.values can be empty but better safe then sorry
if self.values:
if not isinstance(self.values[0], basestring):
result = [proposal.name for proposal in self.values
if proposal.name.startswith(arg_lead)]
else:
result = [proposal for proposal in self.values
if proposal.startswith(arg_lead)]
vim.command('let s:completions = {0}'.format(result))
class RopeMode(interface.RopeMode):
@decorators.global_command('o')
def open_project(self, root=None, quiet=False):
global _rope_quiet
_rope_quiet = quiet
super(RopeMode, self).open_project(root=root)
rope_project_dir = os.path.join(self.project.address, '.ropeproject')
vimfiles = glob.glob(os.path.join(rope_project_dir, '*.vim'))
if not vimfiles:
return
txt = 'Sourcing vim files under \'.ropeproject/\''
progress = self.env.create_progress(txt)
for idx, vimfile in enumerate(sorted(vimfiles)):
progress.name = txt + ' ({0})'.format(os.path.basename(vimfile))
vim.command(':silent source {0}'.format(vimfile))
progress.update(idx * 100 / len(vimfiles))
progress.name = txt
progress.done()
echo('Project opened!')
decorators.logger.message = echo
decorators.logger.only_short = True
_completer = _ValueCompleter()
_env = VimUtils()
_interface = RopeMode(env=_env)
|
interlegis/sigi | refs/heads/master | sigi/apps/servidores/migrations/0005_auto_20210423_0904.py | 1 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('servidores', '0004_auto_20210422_1907'),
]
operations = [
migrations.AlterModelOptions(
name='servico',
options={'ordering': ('-subordinado__sigla', 'nome'), 'verbose_name': 'servi\xe7o', 'verbose_name_plural': 'servi\xe7os'},
),
]
|
40223247/2015_w11 | refs/heads/master | static/Brython3.1.0-20150301-090019/Lib/browser/timer.py | 610 | from browser import window
def wrap(func):
# Transforms a function f into another function that prints a
# traceback in case of exception
def f(*args, **kw):
try:
return func(*args, **kw)
except Exception as exc:
sys.stderr.write(exc)
return f
clear_interval = window.clearInterval
clear_timeout = window.clearTimeout
def set_interval(func,interval):
return window.setInterval(wrap(func),interval)
def set_timeout(func,interval):
return int(window.setTimeout(wrap(func),interval))
def request_animation_frame(func):
return int(window.requestAnimationFrame(func))
def cancel_animation_frame(int_id):
window.cancelAnimationFrame(int_id)
|
dockerera/func | refs/heads/master | func/yaml/dump.py | 2 | """
pyyaml legacy
Copyright (c) 2001 Steve Howell and Friends; All Rights Reserved
(see open source license information in docs/ directory)
"""
import types
import string
from types import StringType, UnicodeType, IntType, FloatType
from types import DictType, ListType, TupleType, InstanceType
from klass import hasMethod, isDictionary
import re
"""
The methods from this module that are exported to the top
level yaml package should remain stable. If you call
directly into other methods of this module, be aware that
they may change or go away in future implementations.
Contact the authors if there are methods in this file
that you wish to remain stable.
"""
def dump(*data):
return Dumper().dump(*data)
def d(data): return dump(data)
def dumpToFile(file, *data):
return Dumper().dumpToFile(file, *data)
class Dumper:
def __init__(self):
self.currIndent = "\n"
self.indent = " "
self.keysrt = None
self.alphaSort = 1 # legacy -- on by default
def setIndent(self, indent):
self.indent = indent
return self
def setSort(self, sort_hint):
self.keysrt = sortMethod(sort_hint)
return self
def dump(self, *data):
self.result = []
self.output = self.outputToString
self.dumpDocuments(data)
return string.join(self.result,"")
def outputToString(self, data):
self.result.append(data)
def dumpToFile(self, file, *data):
self.file = file
self.output = self.outputToFile
self.dumpDocuments(data)
def outputToFile(self, data):
self.file.write(data)
def dumpDocuments(self, data):
for obj in data:
self.anchors = YamlAnchors(obj)
self.output("---")
self.dumpData(obj)
self.output("\n")
def indentDump(self, data):
oldIndent = self.currIndent
self.currIndent += self.indent
self.dumpData(data)
self.currIndent = oldIndent
def dumpData(self, data):
anchor = self.anchors.shouldAnchor(data)
# Disabling anchors because they are lame for strings that the user might want to view/edit -- mdehaan
#
#if anchor:
# self.output(" &%d" % anchor )
#else:
# anchor = self.anchors.isAlias(data)
# if anchor:
# self.output(" *%d" % anchor )
# return
if (data is None):
self.output(' ~')
elif hasMethod(data, 'to_yaml'):
self.dumpTransformedObject(data)
elif hasMethod(data, 'to_yaml_implicit'):
self.output(" " + data.to_yaml_implicit())
elif type(data) is InstanceType:
self.dumpRawObject(data)
elif isDictionary(data):
self.dumpDict(data)
elif type(data) in [ListType, TupleType]:
self.dumpList(data)
else:
self.dumpScalar(data)
def dumpTransformedObject(self, data):
obj_yaml = data.to_yaml()
if type(obj_yaml) is not TupleType:
self.raiseToYamlSyntaxError()
(data, typestring) = obj_yaml
if typestring:
self.output(" " + typestring)
self.dumpData(data)
def dumpRawObject(self, data):
self.output(' !!%s.%s' % (data.__module__, data.__class__.__name__))
self.dumpData(data.__dict__)
def dumpDict(self, data):
keys = data.keys()
if len(keys) == 0:
self.output(" {}")
return
if self.keysrt:
keys = sort_keys(keys,self.keysrt)
else:
if self.alphaSort:
keys.sort()
for key in keys:
self.output(self.currIndent)
self.dumpKey(key)
self.output(":")
self.indentDump(data[key])
def dumpKey(self, key):
if type(key) is TupleType:
self.output("?")
self.indentDump(key)
self.output("\n")
else:
self.output(quote(key))
def dumpList(self, data):
if len(data) == 0:
self.output(" []")
return
for item in data:
self.output(self.currIndent)
self.output("-")
self.indentDump(item)
def dumpScalar(self, data):
if isUnicode(data):
self.output(' "%s"' % repr(data)[2:-1])
elif isMulti(data):
self.dumpMultiLineScalar(data.splitlines())
else:
self.output(" ")
self.output(quote(data))
def dumpMultiLineScalar(self, lines):
self.output(" |")
if lines[-1] == "":
self.output("+")
for line in lines:
self.output(self.currIndent)
self.output(line)
def raiseToYamlSyntaxError(self):
raise """
to_yaml should return tuple w/object to dump
and optional YAML type. Example:
({'foo': 'bar'}, '!!foobar')
"""
#### ANCHOR-RELATED METHODS
def accumulate(obj,occur):
typ = type(obj)
if obj is None or \
typ is IntType or \
typ is FloatType or \
((typ is StringType or typ is UnicodeType) \
and len(obj) < 32): return
obid = id(obj)
if 0 == occur.get(obid,0):
occur[obid] = 1
if typ is ListType:
for x in obj:
accumulate(x,occur)
if typ is DictType:
for (x,y) in obj.items():
accumulate(x,occur)
accumulate(y,occur)
else:
occur[obid] = occur[obid] + 1
class YamlAnchors:
def __init__(self,data):
occur = {}
accumulate(data,occur)
anchorVisits = {}
for (obid, occur) in occur.items():
if occur > 1:
anchorVisits[obid] = 0
self._anchorVisits = anchorVisits
self._currentAliasIndex = 0
def shouldAnchor(self,obj):
ret = self._anchorVisits.get(id(obj),None)
if 0 == ret:
self._currentAliasIndex = self._currentAliasIndex + 1
ret = self._currentAliasIndex
self._anchorVisits[id(obj)] = ret
return ret
return 0
def isAlias(self,obj):
return self._anchorVisits.get(id(obj),0)
### SORTING METHODS
def sort_keys(keys,fn):
tmp = []
for key in keys:
val = fn(key)
if val is None: val = '~'
tmp.append((val,key))
tmp.sort()
return [ y for (x,y) in tmp ]
def sortMethod(sort_hint):
typ = type(sort_hint)
if DictType == typ:
return sort_hint.get
elif ListType == typ or TupleType == typ:
indexes = {}; idx = 0
for item in sort_hint:
indexes[item] = idx
idx += 1
return indexes.get
else:
return sort_hint
### STRING QUOTING AND SCALAR HANDLING
def isStr(data):
# XXX 2.1 madness
if type(data) == type(''):
return 1
if type(data) == type(u''):
return 1
return 0
def doubleUpQuotes(data):
return data.replace("'", "''")
def quote(data):
if not isStr(data):
return str(data)
single = "'"
double = '"'
quote = ''
if len(data) == 0:
return "''"
if hasSpecialChar(data) or data[0] == single:
data = `data`[1:-1]
data = string.replace(data, r"\x08", r"\b")
quote = double
elif needsSingleQuote(data):
quote = single
data = doubleUpQuotes(data)
return "%s%s%s" % (quote, data, quote)
def needsSingleQuote(data):
if re.match(r"^-?\d", data):
return 1
if re.match(r"\*\S", data):
return 1
if data[0] in ['&', ' ']:
return 1
if data[0] == '"':
return 1
if data[-1] == ' ':
return 1
return (re.search(r'[:]', data) or re.search(r'(\d\.){2}', data))
def hasSpecialChar(data):
# need test to drive out '#' from this
return re.search(r'[\t\b\r\f#]', data)
def isMulti(data):
if not isStr(data):
return 0
if hasSpecialChar(data):
return 0
return re.search("\n", data)
def isUnicode(data):
return type(data) == unicode
def sloppyIsUnicode(data):
# XXX - hack to make tests pass for 2.1
return repr(data)[:2] == "u'" and repr(data) != data
import sys
if sys.hexversion < 0x20200000:
isUnicode = sloppyIsUnicode
|
AfricaChess/lichesshub | refs/heads/master | player/views.py | 138 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
|
MattsFleaMarket/python-for-android | refs/heads/master | python-build/python-libs/xmpppy/xmpp/auth.py | 196 | ## auth.py
##
## Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
# $Id: auth.py,v 1.41 2008/09/13 21:45:21 normanr Exp $
"""
Provides library with all Non-SASL and SASL authentication mechanisms.
Can be used both for client and transport authentication.
"""
from protocol import *
from client import PlugIn
import sha,base64,random,dispatcher,re
import md5
def HH(some): return md5.new(some).hexdigest()
def H(some): return md5.new(some).digest()
def C(some): return ':'.join(some)
class NonSASL(PlugIn):
""" Implements old Non-SASL (JEP-0078) authentication used in jabberd1.4 and transport authentication."""
def __init__(self,user,password,resource):
""" Caches username, password and resource for auth. """
PlugIn.__init__(self)
self.DBG_LINE='gen_auth'
self.user=user
self.password=password
self.resource=resource
def plugin(self,owner):
""" Determine the best auth method (digest/0k/plain) and use it for auth.
Returns used method name on success. Used internally. """
if not self.resource: return self.authComponent(owner)
self.DEBUG('Querying server about possible auth methods','start')
resp=owner.Dispatcher.SendAndWaitForResponse(Iq('get',NS_AUTH,payload=[Node('username',payload=[self.user])]))
if not isResultNode(resp):
self.DEBUG('No result node arrived! Aborting...','error')
return
iq=Iq(typ='set',node=resp)
query=iq.getTag('query')
query.setTagData('username',self.user)
query.setTagData('resource',self.resource)
if query.getTag('digest'):
self.DEBUG("Performing digest authentication",'ok')
query.setTagData('digest',sha.new(owner.Dispatcher.Stream._document_attrs['id']+self.password).hexdigest())
if query.getTag('password'): query.delChild('password')
method='digest'
elif query.getTag('token'):
token=query.getTagData('token')
seq=query.getTagData('sequence')
self.DEBUG("Performing zero-k authentication",'ok')
hash = sha.new(sha.new(self.password).hexdigest()+token).hexdigest()
for foo in xrange(int(seq)): hash = sha.new(hash).hexdigest()
query.setTagData('hash',hash)
method='0k'
else:
self.DEBUG("Sequre methods unsupported, performing plain text authentication",'warn')
query.setTagData('password',self.password)
method='plain'
resp=owner.Dispatcher.SendAndWaitForResponse(iq)
if isResultNode(resp):
self.DEBUG('Sucessfully authenticated with remove host.','ok')
owner.User=self.user
owner.Resource=self.resource
owner._registered_name=owner.User+'@'+owner.Server+'/'+owner.Resource
return method
self.DEBUG('Authentication failed!','error')
def authComponent(self,owner):
""" Authenticate component. Send handshake stanza and wait for result. Returns "ok" on success. """
self.handshake=0
owner.send(Node(NS_COMPONENT_ACCEPT+' handshake',payload=[sha.new(owner.Dispatcher.Stream._document_attrs['id']+self.password).hexdigest()]))
owner.RegisterHandler('handshake',self.handshakeHandler,xmlns=NS_COMPONENT_ACCEPT)
while not self.handshake:
self.DEBUG("waiting on handshake",'notify')
owner.Process(1)
owner._registered_name=self.user
if self.handshake+1: return 'ok'
def handshakeHandler(self,disp,stanza):
""" Handler for registering in dispatcher for accepting transport authentication. """
if stanza.getName()=='handshake': self.handshake=1
else: self.handshake=-1
class SASL(PlugIn):
""" Implements SASL authentication. """
def __init__(self,username,password):
PlugIn.__init__(self)
self.username=username
self.password=password
def plugin(self,owner):
if not self._owner.Dispatcher.Stream._document_attrs.has_key('version'): self.startsasl='not-supported'
elif self._owner.Dispatcher.Stream.features:
try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)
except NodeProcessed: pass
else: self.startsasl=None
def auth(self):
""" Start authentication. Result can be obtained via "SASL.startsasl" attribute and will be
either "success" or "failure". Note that successfull auth will take at least
two Dispatcher.Process() calls. """
if self.startsasl: pass
elif self._owner.Dispatcher.Stream.features:
try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)
except NodeProcessed: pass
else: self._owner.RegisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
def plugout(self):
""" Remove SASL handlers from owner's dispatcher. Used internally. """
if self._owner.__dict__.has_key('features'): self._owner.UnregisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
if self._owner.__dict__.has_key('challenge'): self._owner.UnregisterHandler('challenge',self.SASLHandler,xmlns=NS_SASL)
if self._owner.__dict__.has_key('failure'): self._owner.UnregisterHandler('failure',self.SASLHandler,xmlns=NS_SASL)
if self._owner.__dict__.has_key('success'): self._owner.UnregisterHandler('success',self.SASLHandler,xmlns=NS_SASL)
def FeaturesHandler(self,conn,feats):
""" Used to determine if server supports SASL auth. Used internally. """
if not feats.getTag('mechanisms',namespace=NS_SASL):
self.startsasl='not-supported'
self.DEBUG('SASL not supported by server','error')
return
mecs=[]
for mec in feats.getTag('mechanisms',namespace=NS_SASL).getTags('mechanism'):
mecs.append(mec.getData())
self._owner.RegisterHandler('challenge',self.SASLHandler,xmlns=NS_SASL)
self._owner.RegisterHandler('failure',self.SASLHandler,xmlns=NS_SASL)
self._owner.RegisterHandler('success',self.SASLHandler,xmlns=NS_SASL)
if "ANONYMOUS" in mecs and self.username == None:
node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'ANONYMOUS'})
elif "DIGEST-MD5" in mecs:
node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'DIGEST-MD5'})
elif "PLAIN" in mecs:
sasl_data='%s\x00%s\x00%s'%(self.username+'@'+self._owner.Server,self.username,self.password)
node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'},payload=[base64.encodestring(sasl_data).replace('\r','').replace('\n','')])
else:
self.startsasl='failure'
self.DEBUG('I can only use DIGEST-MD5 and PLAIN mecanisms.','error')
return
self.startsasl='in-process'
self._owner.send(node.__str__())
raise NodeProcessed
def SASLHandler(self,conn,challenge):
""" Perform next SASL auth step. Used internally. """
if challenge.getNamespace()<>NS_SASL: return
if challenge.getName()=='failure':
self.startsasl='failure'
try: reason=challenge.getChildren()[0]
except: reason=challenge
self.DEBUG('Failed SASL authentification: %s'%reason,'error')
raise NodeProcessed
elif challenge.getName()=='success':
self.startsasl='success'
self.DEBUG('Successfully authenticated with remote server.','ok')
handlers=self._owner.Dispatcher.dumpHandlers()
self._owner.Dispatcher.PlugOut()
dispatcher.Dispatcher().PlugIn(self._owner)
self._owner.Dispatcher.restoreHandlers(handlers)
self._owner.User=self.username
raise NodeProcessed
########################################3333
incoming_data=challenge.getData()
chal={}
data=base64.decodestring(incoming_data)
self.DEBUG('Got challenge:'+data,'ok')
for pair in re.findall('(\w+\s*=\s*(?:(?:"[^"]+")|(?:[^,]+)))',data):
key,value=[x.strip() for x in pair.split('=', 1)]
if value[:1]=='"' and value[-1:]=='"': value=value[1:-1]
chal[key]=value
if chal.has_key('qop') and 'auth' in [x.strip() for x in chal['qop'].split(',')]:
resp={}
resp['username']=self.username
resp['realm']=self._owner.Server
resp['nonce']=chal['nonce']
cnonce=''
for i in range(7):
cnonce+=hex(int(random.random()*65536*4096))[2:]
resp['cnonce']=cnonce
resp['nc']=('00000001')
resp['qop']='auth'
resp['digest-uri']='xmpp/'+self._owner.Server
A1=C([H(C([resp['username'],resp['realm'],self.password])),resp['nonce'],resp['cnonce']])
A2=C(['AUTHENTICATE',resp['digest-uri']])
response= HH(C([HH(A1),resp['nonce'],resp['nc'],resp['cnonce'],resp['qop'],HH(A2)]))
resp['response']=response
resp['charset']='utf-8'
sasl_data=''
for key in ['charset','username','realm','nonce','nc','cnonce','digest-uri','response','qop']:
if key in ['nc','qop','response','charset']: sasl_data+="%s=%s,"%(key,resp[key])
else: sasl_data+='%s="%s",'%(key,resp[key])
########################################3333
node=Node('response',attrs={'xmlns':NS_SASL},payload=[base64.encodestring(sasl_data[:-1]).replace('\r','').replace('\n','')])
self._owner.send(node.__str__())
elif chal.has_key('rspauth'): self._owner.send(Node('response',attrs={'xmlns':NS_SASL}).__str__())
else:
self.startsasl='failure'
self.DEBUG('Failed SASL authentification: unknown challenge','error')
raise NodeProcessed
class Bind(PlugIn):
""" Bind some JID to the current connection to allow router know of our location."""
def __init__(self):
PlugIn.__init__(self)
self.DBG_LINE='bind'
self.bound=None
def plugin(self,owner):
""" Start resource binding, if allowed at this time. Used internally. """
if self._owner.Dispatcher.Stream.features:
try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)
except NodeProcessed: pass
else: self._owner.RegisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
def plugout(self):
""" Remove Bind handler from owner's dispatcher. Used internally. """
self._owner.UnregisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
def FeaturesHandler(self,conn,feats):
""" Determine if server supports resource binding and set some internal attributes accordingly. """
if not feats.getTag('bind',namespace=NS_BIND):
self.bound='failure'
self.DEBUG('Server does not requested binding.','error')
return
if feats.getTag('session',namespace=NS_SESSION): self.session=1
else: self.session=-1
self.bound=[]
def Bind(self,resource=None):
""" Perform binding. Use provided resource name or random (if not provided). """
while self.bound is None and self._owner.Process(1): pass
if resource: resource=[Node('resource',payload=[resource])]
else: resource=[]
resp=self._owner.SendAndWaitForResponse(Protocol('iq',typ='set',payload=[Node('bind',attrs={'xmlns':NS_BIND},payload=resource)]))
if isResultNode(resp):
self.bound.append(resp.getTag('bind').getTagData('jid'))
self.DEBUG('Successfully bound %s.'%self.bound[-1],'ok')
jid=JID(resp.getTag('bind').getTagData('jid'))
self._owner.User=jid.getNode()
self._owner.Resource=jid.getResource()
resp=self._owner.SendAndWaitForResponse(Protocol('iq',typ='set',payload=[Node('session',attrs={'xmlns':NS_SESSION})]))
if isResultNode(resp):
self.DEBUG('Successfully opened session.','ok')
self.session=1
return 'ok'
else:
self.DEBUG('Session open failed.','error')
self.session=0
elif resp: self.DEBUG('Binding failed: %s.'%resp.getTag('error'),'error')
else:
self.DEBUG('Binding failed: timeout expired.','error')
return ''
class ComponentBind(PlugIn):
""" ComponentBind some JID to the current connection to allow router know of our location."""
def __init__(self, sasl):
PlugIn.__init__(self)
self.DBG_LINE='bind'
self.bound=None
self.needsUnregister=None
self.sasl = sasl
def plugin(self,owner):
""" Start resource binding, if allowed at this time. Used internally. """
if not self.sasl:
self.bound=[]
return
if self._owner.Dispatcher.Stream.features:
try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)
except NodeProcessed: pass
else:
self._owner.RegisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
self.needsUnregister=1
def plugout(self):
""" Remove ComponentBind handler from owner's dispatcher. Used internally. """
if self.needsUnregister:
self._owner.UnregisterHandler('features',self.FeaturesHandler,xmlns=NS_STREAMS)
def FeaturesHandler(self,conn,feats):
""" Determine if server supports resource binding and set some internal attributes accordingly. """
if not feats.getTag('bind',namespace=NS_BIND):
self.bound='failure'
self.DEBUG('Server does not requested binding.','error')
return
if feats.getTag('session',namespace=NS_SESSION): self.session=1
else: self.session=-1
self.bound=[]
def Bind(self,domain=None):
""" Perform binding. Use provided domain name (if not provided). """
while self.bound is None and self._owner.Process(1): pass
if self.sasl:
xmlns = NS_COMPONENT_1
else:
xmlns = None
self.bindresponse = None
ttl = dispatcher.DefaultTimeout
self._owner.RegisterHandler('bind',self.BindHandler,xmlns=xmlns)
self._owner.send(Protocol('bind',attrs={'name':domain},xmlns=NS_COMPONENT_1))
while self.bindresponse is None and self._owner.Process(1) and ttl > 0: ttl-=1
self._owner.UnregisterHandler('bind',self.BindHandler,xmlns=xmlns)
resp=self.bindresponse
if resp and resp.getAttr('error'):
self.DEBUG('Binding failed: %s.'%resp.getAttr('error'),'error')
elif resp:
self.DEBUG('Successfully bound.','ok')
return 'ok'
else:
self.DEBUG('Binding failed: timeout expired.','error')
return ''
def BindHandler(self,conn,bind):
self.bindresponse = bind
pass
|
louietsai/python-for-android | refs/heads/master | python3-alpha/python3-src/Doc/includes/sqlite3/executemany_2.py | 45 | import sqlite3
def char_generator():
import string
for c in string.letters[:26]:
yield (c,)
con = sqlite3.connect(":memory:")
cur = con.cursor()
cur.execute("create table characters(c)")
cur.executemany("insert into characters(c) values (?)", char_generator())
cur.execute("select c from characters")
print(cur.fetchall())
|
gdimitris/FleetManagerBackend | refs/heads/master | virtual_env/lib/python2.7/site-packages/wtforms/ext/appengine/ndb.py | 174 | """
Form generation utilities for App Engine's new ``ndb.Model`` class.
The goal of ``model_form()`` is to provide a clean, explicit and predictable
way to create forms based on ``ndb.Model`` classes. No malabarism or black
magic should be necessary to generate a form for models, and to add custom
non-model related fields: ``model_form()`` simply generates a form class
that can be used as it is, or that can be extended directly or even be used
to create other forms using ``model_form()``.
Example usage:
.. code-block:: python
from google.appengine.ext import ndb
from wtforms.ext.appengine.ndb import model_form
# Define an example model and add a record.
class Contact(ndb.Model):
name = ndb.StringProperty(required=True)
city = ndb.StringProperty()
age = ndb.IntegerProperty(required=True)
is_admin = ndb.BooleanProperty(default=False)
new_entity = Contact(key_name='test', name='Test Name', age=17)
new_entity.put()
# Generate a form based on the model.
ContactForm = model_form(Contact)
# Get a form populated with entity data.
entity = Contact.get_by_key_name('test')
form = ContactForm(obj=entity)
Properties from the model can be excluded from the generated form, or it can
include just a set of properties. For example:
.. code-block:: python
# Generate a form based on the model, excluding 'city' and 'is_admin'.
ContactForm = model_form(Contact, exclude=('city', 'is_admin'))
# or...
# Generate a form based on the model, only including 'name' and 'age'.
ContactForm = model_form(Contact, only=('name', 'age'))
The form can be generated setting field arguments:
.. code-block:: python
ContactForm = model_form(Contact, only=('name', 'age'), field_args={
'name': {
'label': 'Full name',
'description': 'Your name',
},
'age': {
'label': 'Age',
'validators': [validators.NumberRange(min=14, max=99)],
}
})
The class returned by ``model_form()`` can be used as a base class for forms
mixing non-model fields and/or other model forms. For example:
.. code-block:: python
# Generate a form based on the model.
BaseContactForm = model_form(Contact)
# Generate a form based on other model.
ExtraContactForm = model_form(MyOtherModel)
class ContactForm(BaseContactForm):
# Add an extra, non-model related field.
subscribe_to_news = f.BooleanField()
# Add the other model form as a subform.
extra = f.FormField(ExtraContactForm)
The class returned by ``model_form()`` can also extend an existing form
class:
.. code-block:: python
class BaseContactForm(Form):
# Add an extra, non-model related field.
subscribe_to_news = f.BooleanField()
# Generate a form based on the model.
ContactForm = model_form(Contact, base_class=BaseContactForm)
"""
from wtforms import Form, validators, fields as f
from wtforms.compat import string_types
from wtforms.ext.appengine.fields import GeoPtPropertyField, KeyPropertyField, StringListPropertyField, IntegerListPropertyField
def get_TextField(kwargs):
"""
Returns a ``TextField``, applying the ``ndb.StringProperty`` length limit
of 500 bytes.
"""
kwargs['validators'].append(validators.length(max=500))
return f.TextField(**kwargs)
def get_IntegerField(kwargs):
"""
Returns an ``IntegerField``, applying the ``ndb.IntegerProperty`` range
limits.
"""
v = validators.NumberRange(min=-0x8000000000000000, max=0x7fffffffffffffff)
kwargs['validators'].append(v)
return f.IntegerField(**kwargs)
class ModelConverterBase(object):
def __init__(self, converters=None):
"""
Constructs the converter, setting the converter callables.
:param converters:
A dictionary of converter callables for each property type. The
callable must accept the arguments (model, prop, kwargs).
"""
self.converters = {}
for name in dir(self):
if not name.startswith('convert_'):
continue
self.converters[name[8:]] = getattr(self, name)
def convert(self, model, prop, field_args):
"""
Returns a form field for a single model property.
:param model:
The ``db.Model`` class that contains the property.
:param prop:
The model property: a ``db.Property`` instance.
:param field_args:
Optional keyword arguments to construct the field.
"""
prop_type_name = type(prop).__name__
# Check for generic property
if(prop_type_name == "GenericProperty"):
# Try to get type from field args
generic_type = field_args.get("type")
if generic_type:
prop_type_name = field_args.get("type")
# If no type is found, the generic property uses string set in convert_GenericProperty
kwargs = {
'label': prop._code_name.replace('_', ' ').title(),
'default': prop._default,
'validators': [],
}
if field_args:
kwargs.update(field_args)
if prop._required and prop_type_name not in self.NO_AUTO_REQUIRED:
kwargs['validators'].append(validators.required())
if kwargs.get('choices', None):
# Use choices in a select field.
kwargs['choices'] = [(v, v) for v in kwargs.get('choices')]
return f.SelectField(**kwargs)
if prop._choices:
# Use choices in a select field.
kwargs['choices'] = [(v, v) for v in prop._choices]
return f.SelectField(**kwargs)
else:
converter = self.converters.get(prop_type_name, None)
if converter is not None:
return converter(model, prop, kwargs)
else:
return self.fallback_converter(model, prop, kwargs)
class ModelConverter(ModelConverterBase):
"""
Converts properties from a ``ndb.Model`` class to form fields.
Default conversions between properties and fields:
+====================+===================+==============+==================+
| Property subclass | Field subclass | datatype | notes |
+====================+===================+==============+==================+
| StringProperty | TextField | unicode | TextArea | repeated support
| | | | if multiline |
+--------------------+-------------------+--------------+------------------+
| BooleanProperty | BooleanField | bool | |
+--------------------+-------------------+--------------+------------------+
| IntegerProperty | IntegerField | int or long | | repeated support
+--------------------+-------------------+--------------+------------------+
| FloatProperty | TextField | float | |
+--------------------+-------------------+--------------+------------------+
| DateTimeProperty | DateTimeField | datetime | skipped if |
| | | | auto_now[_add] |
+--------------------+-------------------+--------------+------------------+
| DateProperty | DateField | date | skipped if |
| | | | auto_now[_add] |
+--------------------+-------------------+--------------+------------------+
| TimeProperty | DateTimeField | time | skipped if |
| | | | auto_now[_add] |
+--------------------+-------------------+--------------+------------------+
| TextProperty | TextAreaField | unicode | |
+--------------------+-------------------+--------------+------------------+
| GeoPtProperty | TextField | db.GeoPt | |
+--------------------+-------------------+--------------+------------------+
| KeyProperty | KeyProperyField | ndb.Key | |
+--------------------+-------------------+--------------+------------------+
| BlobKeyProperty | None | ndb.BlobKey | always skipped |
+--------------------+-------------------+--------------+------------------+
| UserProperty | None | users.User | always skipped |
+--------------------+-------------------+--------------+------------------+
| StructuredProperty | None | ndb.Model | always skipped |
+--------------------+-------------------+--------------+------------------+
| LocalStructuredPro | None | ndb.Model | always skipped |
+--------------------+-------------------+--------------+------------------+
| JsonProperty | TextField | unicode | |
+--------------------+-------------------+--------------+------------------+
| PickleProperty | None | bytedata | always skipped |
+--------------------+-------------------+--------------+------------------+
| GenericProperty | None | generic | always skipped |
+--------------------+-------------------+--------------+------------------+
| ComputedProperty | none | | always skipped |
+====================+===================+==============+==================+
"""
# Don't automatically add a required validator for these properties
NO_AUTO_REQUIRED = frozenset(['ListProperty', 'StringListProperty', 'BooleanProperty'])
def convert_StringProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.StringProperty``."""
if prop._repeated:
return StringListPropertyField(**kwargs)
kwargs['validators'].append(validators.length(max=500))
return get_TextField(kwargs)
def convert_BooleanProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.BooleanProperty``."""
return f.BooleanField(**kwargs)
def convert_IntegerProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.IntegerProperty``."""
if prop._repeated:
return IntegerListPropertyField(**kwargs)
return get_IntegerField(kwargs)
def convert_FloatProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.FloatProperty``."""
return f.FloatField(**kwargs)
def convert_DateTimeProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.DateTimeProperty``."""
if prop._auto_now or prop._auto_now_add:
return None
return f.DateTimeField(format='%Y-%m-%d %H:%M:%S', **kwargs)
def convert_DateProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.DateProperty``."""
if prop._auto_now or prop._auto_now_add:
return None
return f.DateField(format='%Y-%m-%d', **kwargs)
def convert_TimeProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.TimeProperty``."""
if prop._auto_now or prop._auto_now_add:
return None
return f.DateTimeField(format='%H:%M:%S', **kwargs)
def convert_RepeatedProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
return None
def convert_UserProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.UserProperty``."""
return None
def convert_StructuredProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
return None
def convert_LocalStructuredProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
return None
def convert_JsonProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
return None
def convert_PickleProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
return None
def convert_GenericProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ListProperty``."""
kwargs['validators'].append(validators.length(max=500))
return get_TextField(kwargs)
def convert_BlobKeyProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.BlobKeyProperty``."""
return f.FileField(**kwargs)
def convert_TextProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.TextProperty``."""
return f.TextAreaField(**kwargs)
def convert_ComputedProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.ComputedProperty``."""
return None
def convert_GeoPtProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.GeoPtProperty``."""
return GeoPtPropertyField(**kwargs)
def convert_KeyProperty(self, model, prop, kwargs):
"""Returns a form field for a ``ndb.KeyProperty``."""
if 'reference_class' not in kwargs:
try:
reference_class = prop._kind
except AttributeError:
reference_class = prop._reference_class
if isinstance(reference_class, string_types):
# reference class is a string, try to retrieve the model object.
mod = __import__(model.__module__, None, None, [reference_class], 0)
reference_class = getattr(mod, reference_class)
kwargs['reference_class'] = reference_class
kwargs.setdefault('allow_blank', not prop._required)
return KeyPropertyField(**kwargs)
def model_fields(model, only=None, exclude=None, field_args=None,
converter=None):
"""
Extracts and returns a dictionary of form fields for a given
``db.Model`` class.
:param model:
The ``db.Model`` class to extract fields from.
:param only:
An optional iterable with the property names that should be included in
the form. Only these properties will have fields.
:param exclude:
An optional iterable with the property names that should be excluded
from the form. All other properties will have fields.
:param field_args:
An optional dictionary of field names mapping to a keyword arguments
used to construct each field object.
:param converter:
A converter to generate the fields based on the model properties. If
not set, ``ModelConverter`` is used.
"""
converter = converter or ModelConverter()
field_args = field_args or {}
# Get the field names we want to include or exclude, starting with the
# full list of model properties.
props = model._properties
field_names = list(x[0] for x in sorted(props.items(), key=lambda x: x[1]._creation_counter))
if only:
field_names = list(f for f in only if f in field_names)
elif exclude:
field_names = list(f for f in field_names if f not in exclude)
# Create all fields.
field_dict = {}
for name in field_names:
field = converter.convert(model, props[name], field_args.get(name))
if field is not None:
field_dict[name] = field
return field_dict
def model_form(model, base_class=Form, only=None, exclude=None, field_args=None,
converter=None):
"""
Creates and returns a dynamic ``wtforms.Form`` class for a given
``ndb.Model`` class. The form class can be used as it is or serve as a base
for extended form classes, which can then mix non-model related fields,
subforms with other model forms, among other possibilities.
:param model:
The ``ndb.Model`` class to generate a form for.
:param base_class:
Base form class to extend from. Must be a ``wtforms.Form`` subclass.
:param only:
An optional iterable with the property names that should be included in
the form. Only these properties will have fields.
:param exclude:
An optional iterable with the property names that should be excluded
from the form. All other properties will have fields.
:param field_args:
An optional dictionary of field names mapping to keyword arguments
used to construct each field object.
:param converter:
A converter to generate the fields based on the model properties. If
not set, ``ModelConverter`` is used.
"""
# Extract the fields from the model.
field_dict = model_fields(model, only, exclude, field_args, converter)
# Return a dynamically created form class, extending from base_class and
# including the created fields as properties.
return type(model._get_kind() + 'Form', (base_class,), field_dict)
|
mementum/backtrader | refs/heads/master | samples/talib/talibtest.py | 1 | #!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# Copyright (C) 2015-2020 Daniel Rodriguez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import argparse
import datetime
import backtrader as bt
class TALibStrategy(bt.Strategy):
params = (('ind', 'sma'), ('doji', True),)
INDS = ['sma', 'ema', 'stoc', 'rsi', 'macd', 'bollinger', 'aroon',
'ultimate', 'trix', 'kama', 'adxr', 'dema', 'ppo', 'tema',
'roc', 'williamsr']
def __init__(self):
if self.p.doji:
bt.talib.CDLDOJI(self.data.open, self.data.high,
self.data.low, self.data.close)
if self.p.ind == 'sma':
bt.talib.SMA(self.data.close, timeperiod=25, plotname='TA_SMA')
bt.indicators.SMA(self.data, period=25)
elif self.p.ind == 'ema':
bt.talib.EMA(timeperiod=25, plotname='TA_SMA')
bt.indicators.EMA(period=25)
elif self.p.ind == 'stoc':
bt.talib.STOCH(self.data.high, self.data.low, self.data.close,
fastk_period=14, slowk_period=3, slowd_period=3,
plotname='TA_STOCH')
bt.indicators.Stochastic(self.data)
elif self.p.ind == 'macd':
bt.talib.MACD(self.data, plotname='TA_MACD')
bt.indicators.MACD(self.data)
bt.indicators.MACDHisto(self.data)
elif self.p.ind == 'bollinger':
bt.talib.BBANDS(self.data, timeperiod=25,
plotname='TA_BBANDS')
bt.indicators.BollingerBands(self.data, period=25)
elif self.p.ind == 'rsi':
bt.talib.RSI(self.data, plotname='TA_RSI')
bt.indicators.RSI(self.data)
elif self.p.ind == 'aroon':
bt.talib.AROON(self.data.high, self.data.low, plotname='TA_AROON')
bt.indicators.AroonIndicator(self.data)
elif self.p.ind == 'ultimate':
bt.talib.ULTOSC(self.data.high, self.data.low, self.data.close,
plotname='TA_ULTOSC')
bt.indicators.UltimateOscillator(self.data)
elif self.p.ind == 'trix':
bt.talib.TRIX(self.data, timeperiod=25, plotname='TA_TRIX')
bt.indicators.Trix(self.data, period=25)
elif self.p.ind == 'adxr':
bt.talib.ADXR(self.data.high, self.data.low, self.data.close,
plotname='TA_ADXR')
bt.indicators.ADXR(self.data)
elif self.p.ind == 'kama':
bt.talib.KAMA(self.data, timeperiod=25, plotname='TA_KAMA')
bt.indicators.KAMA(self.data, period=25)
elif self.p.ind == 'dema':
bt.talib.DEMA(self.data, timeperiod=25, plotname='TA_DEMA')
bt.indicators.DEMA(self.data, period=25)
elif self.p.ind == 'ppo':
bt.talib.PPO(self.data, plotname='TA_PPO')
bt.indicators.PPO(self.data, _movav=bt.indicators.SMA)
elif self.p.ind == 'tema':
bt.talib.TEMA(self.data, timeperiod=25, plotname='TA_TEMA')
bt.indicators.TEMA(self.data, period=25)
elif self.p.ind == 'roc':
bt.talib.ROC(self.data, timeperiod=12, plotname='TA_ROC')
bt.talib.ROCP(self.data, timeperiod=12, plotname='TA_ROCP')
bt.talib.ROCR(self.data, timeperiod=12, plotname='TA_ROCR')
bt.talib.ROCR100(self.data, timeperiod=12, plotname='TA_ROCR100')
bt.indicators.ROC(self.data, period=12)
bt.indicators.Momentum(self.data, period=12)
bt.indicators.MomentumOscillator(self.data, period=12)
elif self.p.ind == 'williamsr':
bt.talib.WILLR(self.data.high, self.data.low, self.data.close,
plotname='TA_WILLR')
bt.indicators.WilliamsR(self.data)
def runstrat(args=None):
args = parse_args(args)
cerebro = bt.Cerebro()
dkwargs = dict()
if args.fromdate:
fromdate = datetime.datetime.strptime(args.fromdate, '%Y-%m-%d')
dkwargs['fromdate'] = fromdate
if args.todate:
todate = datetime.datetime.strptime(args.todate, '%Y-%m-%d')
dkwargs['todate'] = todate
data0 = bt.feeds.YahooFinanceCSVData(dataname=args.data0, **dkwargs)
cerebro.adddata(data0)
cerebro.addstrategy(TALibStrategy, ind=args.ind, doji=not args.no_doji)
cerebro.run(runcone=not args.use_next, stdstats=False)
if args.plot:
pkwargs = dict(style='candle')
if args.plot is not True: # evals to True but is not True
npkwargs = eval('dict(' + args.plot + ')') # args were passed
pkwargs.update(npkwargs)
cerebro.plot(**pkwargs)
def parse_args(pargs=None):
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description='Sample for sizer')
parser.add_argument('--data0', required=False,
default='../../datas/yhoo-1996-2015.txt',
help='Data to be read in')
parser.add_argument('--fromdate', required=False,
default='2005-01-01',
help='Starting date in YYYY-MM-DD format')
parser.add_argument('--todate', required=False,
default='2006-12-31',
help='Ending date in YYYY-MM-DD format')
parser.add_argument('--ind', required=False, action='store',
default=TALibStrategy.INDS[0],
choices=TALibStrategy.INDS,
help=('Which indicator pair to show together'))
parser.add_argument('--no-doji', required=False, action='store_true',
help=('Remove Doji CandleStick pattern checker'))
parser.add_argument('--use-next', required=False, action='store_true',
help=('Use next (step by step) '
'instead of once (batch)'))
# Plot options
parser.add_argument('--plot', '-p', nargs='?', required=False,
metavar='kwargs', const=True,
help=('Plot the read data applying any kwargs passed\n'
'\n'
'For example (escape the quotes if needed):\n'
'\n'
' --plot style="candle" (to plot candles)\n'))
if pargs is not None:
return parser.parse_args(pargs)
return parser.parse_args()
if __name__ == '__main__':
runstrat()
|
Mellthas/quodlibet | refs/heads/master | quodlibet/quodlibet/player/xinebe/__init__.py | 4 | # Copyright 2013 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
from .player import init
init = init
|
NotToday/musicbox | refs/heads/master | NEMbox/api.py | 1 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: omi
# @Date: 2014-08-24 21:51:57
# @Last Modified by: omi
# @Last Modified time: 2015-02-28 13:03:11
'''
网易云音乐 Api
'''
import re
import json
import requests
import hashlib
from bs4 import BeautifulSoup
import logger
# list去重
def uniq(arr):
arr2 = list(set(arr))
arr2.sort(key=arr.index)
return arr2
default_timeout = 10
log = logger.getLogger(__name__)
class NetEase:
def __init__(self):
self.header = {
'Accept': '*/*',
'Accept-Encoding': 'gzip,deflate,sdch',
'Accept-Language': 'zh-CN,zh;q=0.8,gl;q=0.6,zh-TW;q=0.4',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded',
'Host': 'music.163.com',
'Referer': 'http://music.163.com/search/',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36'
}
self.cookies = {
'appver': '1.5.2'
}
self.playlist_class_dict = {}
def httpRequest(self, method, action, query=None, urlencoded=None, callback=None, timeout=None):
connection = json.loads(self.rawHttpRequest(method, action, query, urlencoded, callback, timeout))
return connection
def rawHttpRequest(self, method, action, query=None, urlencoded=None, callback=None, timeout=None):
if (method == 'GET'):
url = action if (query == None) else (action + '?' + query)
connection = requests.get(url, headers=self.header, timeout=default_timeout)
elif (method == 'POST'):
connection = requests.post(
action,
data=query,
headers=self.header,
timeout=default_timeout
)
connection.encoding = "UTF-8"
return connection.text
# 登录
def login(self, username, password):
pattern = re.compile(r'^0\d{2,3}\d{7,8}$|^1[34578]\d{9}$')
if (pattern.match(username)):
return self.phone_login(username, password)
action = 'https://music.163.com/api/login/'
data = {
'username': username,
'password': hashlib.md5(password).hexdigest(),
'rememberLogin': 'true'
}
try:
return self.httpRequest('POST', action, data)
except:
return {'code': 501}
# 手机登录
def phone_login(self, username, password):
action = 'https://music.163.com/api/login/cellphone'
data = {
'phone': username,
'password': hashlib.md5(password).hexdigest(),
'rememberLogin': 'true'
}
try:
return self.httpRequest('POST', action, data)
except:
return {'code': 501}
# 用户歌单
def user_playlist(self, uid, offset=0, limit=100):
action = 'http://music.163.com/api/user/playlist/?offset=' + str(offset) + '&limit=' + str(limit) + '&uid=' + str(uid)
try:
data = self.httpRequest('GET', action)
return data['playlist']
except:
return []
# 搜索单曲(1),歌手(100),专辑(10),歌单(1000),用户(1002) *(type)*
def search(self, s, stype=1, offset=0, total='true', limit=60):
action = 'http://music.163.com/api/search/get/web'
data = {
's': s,
'type': stype,
'offset': offset,
'total': total,
'limit': 60
}
return self.httpRequest('POST', action, data)
# 新碟上架 http://music.163.com/#/discover/album/
def new_albums(self, offset=0, limit=50):
action = 'http://music.163.com/api/album/new?area=ALL&offset=' + str(offset) + '&total=true&limit=' + str(limit)
try:
data = self.httpRequest('GET', action)
return data['albums']
except:
return []
# 歌单(网友精选碟) hot||new http://music.163.com/#/discover/playlist/
def top_playlists(self, category='全部', order='hot', offset=0, limit=50):
action = 'http://music.163.com/api/playlist/list?cat=' + category + '&order=' + order + '&offset=' + str(offset) + '&total=' + ('true' if offset else 'false') + '&limit=' + str(limit)
try:
data = self.httpRequest('GET', action)
return data['playlists']
except:
return []
# 分类歌单
def playlist_classes(self):
action = 'http://music.163.com/discover/playlist/'
try:
data = self.rawHttpRequest('GET', action)
return data
except:
return []
# 分类歌单中某一个分类的详情
def playlist_class_detail(self):
pass
# 歌单详情
def playlist_detail(self, playlist_id):
action = 'http://music.163.com/api/playlist/detail?id=' + str(playlist_id)
try:
data = self.httpRequest('GET', action)
return data['result']['tracks']
except:
return []
# 热门歌手 http://music.163.com/#/discover/artist/
def top_artists(self, offset=0, limit=100):
action = 'http://music.163.com/api/artist/top?offset=' + str(offset) + '&total=false&limit=' + str(limit)
try:
data = self.httpRequest('GET', action)
return data['artists']
except:
return []
# 热门单曲 http://music.163.com/#/discover/toplist 50
def top_songlist(self, offset=0, limit=100):
action = 'http://music.163.com/discover/toplist'
try:
connection = requests.get(action, headers=self.header, timeout=default_timeout)
connection.encoding = 'UTF-8'
songids = re.findall(r'/song\?id=(\d+)', connection.text)
if songids == []:
return []
# 去重
songids = uniq(songids)
return self.songs_detail(songids)
except:
return []
# 歌手单曲
def artists(self, artist_id):
action = 'http://music.163.com/api/artist/' + str(artist_id)
try:
data = self.httpRequest('GET', action)
return data['hotSongs']
except:
return []
# album id --> song id set
def album(self, album_id):
action = 'http://music.163.com/api/album/' + str(album_id)
try:
data = self.httpRequest('GET', action)
return data['album']['songs']
except:
return []
# song ids --> song urls ( details )
def songs_detail(self, ids, offset=0):
tmpids = ids[offset:]
tmpids = tmpids[0:100]
tmpids = map(str, tmpids)
action = 'http://music.163.com/api/song/detail?ids=[' + (',').join(tmpids) + ']'
try:
data = self.httpRequest('GET', action)
return data['songs']
except:
return []
# song id --> song url ( details )
def song_detail(self, music_id):
action = "http://music.163.com/api/song/detail/?id=" + str(music_id) + "&ids=[" + str(music_id) + "]"
try:
data = self.httpRequest('GET', action)
return data['songs']
except:
return []
# 今日最热(0), 本周最热(10),历史最热(20),最新节目(30)
def djchannels(self, stype=0, offset=0, limit=50):
action = 'http://music.163.com/discover/djchannel?type=' + str(stype) + '&offset=' + str(offset) + '&limit=' + str(limit)
try:
connection = requests.get(action, headers=self.header, timeout=default_timeout)
connection.encoding = 'UTF-8'
channelids = re.findall(r'/dj\?id=(\d+)', connection.text)
channelids = uniq(channelids)
return self.channel_detail(channelids)
except:
return []
# DJchannel ( id, channel_name ) ids --> song urls ( details )
# 将 channels 整理为 songs 类型
def channel_detail(self, channelids, offset=0):
channels = []
for i in range(0, len(channelids)):
action = 'http://music.163.com/api/dj/program/detail?id=' + str(channelids[i])
try:
data = self.httpRequest('GET', action)
channel = self.dig_info(data['program']['mainSong'], 'channels')
channels.append(channel)
except:
continue
return channels
def dig_info(self, data, dig_type):
temp = []
if dig_type == 'songs':
for i in range(0, len(data)):
song_info = {
'song_id': data[i]['id'],
'artist': [],
'song_name': data[i]['name'],
'album_name': data[i]['album']['name'],
'mp3_url': data[i]['mp3Url']
}
if 'artist' in data[i]:
song_info['artist'] = data[i]['artist']
elif 'artists' in data[i]:
for j in range(0, len(data[i]['artists'])):
song_info['artist'].append(data[i]['artists'][j]['name'])
song_info['artist'] = ', '.join(song_info['artist'])
else:
song_info['artist'] = '未知艺术家'
temp.append(song_info)
elif dig_type == 'artists':
temp = []
for i in range(0, len(data)):
artists_info = {
'artist_id': data[i]['id'],
'artists_name': data[i]['name'],
'alias': ''.join(data[i]['alias'])
}
temp.append(artists_info)
return temp
elif dig_type == 'albums':
for i in range(0, len(data)):
albums_info = {
'album_id': data[i]['id'],
'albums_name': data[i]['name'],
'artists_name': data[i]['artist']['name']
}
temp.append(albums_info)
elif dig_type == 'top_playlists':
for i in range(0, len(data)):
playlists_info = {
'playlist_id': data[i]['id'],
'playlists_name': data[i]['name'],
'creator_name': data[i]['creator']['nickname']
}
temp.append(playlists_info)
elif dig_type == 'channels':
channel_info = {
'song_id': data['id'],
'song_name': data['name'],
'artist': data['artists'][0]['name'],
'album_name': 'DJ节目',
'mp3_url': data['mp3Url']
}
temp = channel_info
elif dig_type == 'playlist_classes':
soup = BeautifulSoup(data)
dls = soup.select('dl.f-cb')
for dl in dls:
title = dl.dt.text
sub = [item.text for item in dl.select('a')]
temp.append(title)
self.playlist_class_dict[title] = sub
elif dig_type == 'playlist_class_detail':
log.debug(data)
temp = self.playlist_class_dict[data]
return temp
|
infoxchange/ixdjango | refs/heads/master | ixdjango/management/commands/clear_app.py | 1 | """
Management command to clear specified app's models of data.
.. moduleauthor:: Infoxchange Development Team <[email protected]>
"""
from __future__ import print_function
from django.apps import apps
from django.core.management.base import BaseCommand
from django.core.management.color import no_style
from django.db import connection, transaction
# pylint:disable=protected-access
real_print = print # pylint:disable=invalid-name
def print(*args, **kwargs): # pylint:disable=redefined-builtin
"""
Only print if required
"""
if kwargs.pop('verbosity') >= 1:
real_print(*args, **kwargs)
class Command(BaseCommand):
"""
A command to clear app data.
"""
help = ('Cleans the specified applications\' tables to a pristine state.')
args = '<app_label> <app_label> ... '
def add_arguments(self, parser):
parser.add_argument('app_models', nargs='+', type=str)
def handle(self, *args, **options):
"""
Clear the data for the given apps.
"""
verbosity = int(options['verbosity'])
models = []
for target in options['app_models']:
target = target.split('.')
try:
app, = target
model = None
except ValueError:
app, model = target
if model:
models.append(apps.get_model(app, model))
else:
app_models = self.get_managed_models_for_app(app)
models += app_models
print("Found %d model(s) for %s" % (len(app_models), app),
verbosity=verbosity)
with transaction.atomic():
for model in models:
print("Clearing %s table %s" % (
model, model._meta.db_table),
verbosity=verbosity)
cursor = connection.cursor()
cursor.execute('TRUNCATE TABLE {} CASCADE'.format(
model._meta.db_table))
sql = connection.ops.sequence_reset_sql(no_style(), [model])
for cmd in sql:
connection.cursor().execute(cmd)
print("Cleared %d models" % len(models), verbosity=verbosity)
def get_models_module(self, app):
"""
Return the models module for the given app.
"""
return apps.get_models(apps.get_app_config(app).models_module, True)
def get_managed_models_for_app(self, app):
"""
Return a list of managed models for the given app.
"""
return [
model for model in self.get_models_module(app)
if model._meta.managed
]
|
Antiun/carrier-delivery | refs/heads/8.0 | delivery_carrier_label_postlogistics/tests/__init__.py | 4 | # -*- coding: utf-8 -*-
from . import test_postlogistics
|
stevenewey/django | refs/heads/master | django/contrib/sessions/backends/cached_db.py | 24 | """
Cached, database-backed sessions.
"""
import logging
from django.conf import settings
from django.contrib.sessions.backends.db import SessionStore as DBStore
from django.core.cache import caches
from django.core.exceptions import SuspiciousOperation
from django.utils import timezone
from django.utils.encoding import force_text
KEY_PREFIX = "django.contrib.sessions.cached_db"
class SessionStore(DBStore):
"""
Implements cached, database backed sessions.
"""
def __init__(self, session_key=None):
self._cache = caches[settings.SESSION_CACHE_ALIAS]
super(SessionStore, self).__init__(session_key)
@property
def cache_key(self):
return KEY_PREFIX + self._get_or_create_session_key()
def load(self):
try:
data = self._cache.get(self.cache_key)
except Exception:
# Some backends (e.g. memcache) raise an exception on invalid
# cache keys. If this happens, reset the session. See #17810.
data = None
if data is None:
# Duplicate DBStore.load, because we need to keep track
# of the expiry date to set it properly in the cache.
try:
s = Session.objects.get(
session_key=self.session_key,
expire_date__gt=timezone.now()
)
data = self.decode(s.session_data)
self._cache.set(self.cache_key, data,
self.get_expiry_age(expiry=s.expire_date))
except (Session.DoesNotExist, SuspiciousOperation) as e:
if isinstance(e, SuspiciousOperation):
logger = logging.getLogger('django.security.%s' %
e.__class__.__name__)
logger.warning(force_text(e))
self.create()
data = {}
return data
def exists(self, session_key):
if (KEY_PREFIX + session_key) in self._cache:
return True
return super(SessionStore, self).exists(session_key)
def save(self, must_create=False):
super(SessionStore, self).save(must_create)
self._cache.set(self.cache_key, self._session, self.get_expiry_age())
def delete(self, session_key=None):
super(SessionStore, self).delete(session_key)
if session_key is None:
if self.session_key is None:
return
session_key = self.session_key
self._cache.delete(KEY_PREFIX + session_key)
def flush(self):
"""
Removes the current session data from the database and regenerates the
key.
"""
self.clear()
self.delete(self.session_key)
self._session_key = None
# At bottom to avoid circular import
from django.contrib.sessions.models import Session # isort:skip
|
rbieb/Pymodoro | refs/heads/experimentalSplit | messages.py | 2 | #!/usr/bin/python3
import variables
# These messages are shown at the beginning of each new phase
def workMessage():
return("Start working! Your Pause begins in {} minutes".format(variables.workDuration))
def shortPauseMessage():
return("Well done! Have a break. It ends in {} minutes".format(variables.shortPauseDuration))
def longPauseMessage():
return("Now you deserve a longer break! Take {} minutes to get some rest".format(variables.longPauseDuration))
|
intip/django-cms | refs/heads/develop | cms/tests/views.py | 6 | from __future__ import with_statement
from copy import copy
import re
import sys
from django.core.cache import cache
from django.conf import settings
from django.contrib.auth.models import Permission
from django.core.urlresolvers import clear_url_caches
from django.http import Http404
from django.template import Variable
from django.test.utils import override_settings
from cms.api import create_page
from cms.apphook_pool import apphook_pool
from cms.models import PagePermission
from cms.test_utils.testcases import CMSTestCase
from cms.test_utils.util.fuzzy_int import FuzzyInt
from cms.utils.conf import get_cms_setting
from cms.views import _handle_no_page, details
from menus.menu_pool import menu_pool
APP_NAME = 'SampleApp'
APP_MODULE = "cms.test_utils.project.sampleapp.cms_app"
@override_settings(
CMS_PERMISSION=True,
ROOT_URLCONF='cms.test_utils.project.urls',
)
class ViewTests(CMSTestCase):
def setUp(self):
clear_url_caches()
def test_handle_no_page(self):
"""
Test handle nopage correctly works with DEBUG=True
"""
request = self.get_request('/')
slug = ''
self.assertRaises(Http404, _handle_no_page, request, slug)
with self.settings(DEBUG=True):
request = self.get_request('/en/')
slug = ''
response = _handle_no_page(request, slug)
self.assertEqual(response.status_code, 200)
def test_apphook_not_hooked(self):
"""
Test details view when apphook pool has apphooks, but they're not
actually hooked
"""
if APP_MODULE in sys.modules:
del sys.modules[APP_MODULE]
apphooks = (
'%s.%s' % (APP_MODULE, APP_NAME),
)
create_page("page2", "nav_playground.html", "en", published=True)
with self.settings(CMS_APPHOOKS=apphooks):
apphook_pool.clear()
response = self.client.get('/en/')
self.assertEqual(response.status_code, 200)
apphook_pool.clear()
def test_external_redirect(self):
# test external redirect
redirect_one = 'https://www.django-cms.org/'
one = create_page("one", "nav_playground.html", "en", published=True,
redirect=redirect_one)
url = one.get_absolute_url()
request = self.get_request(url)
response = details(request, one.get_path("en"))
self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], redirect_one)
def test_internal_neutral_redirect(self):
# test internal language neutral redirect
redirect_one = 'https://www.django-cms.org/'
redirect_two = '/'
one = create_page("one", "nav_playground.html", "en", published=True,
redirect=redirect_one)
two = create_page("two", "nav_playground.html", "en", parent=one,
published=True, redirect=redirect_two)
url = two.get_absolute_url()
request = self.get_request(url)
response = details(request, two.get_path())
self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], '/en/')
def test_internal_forced_redirect(self):
# test internal forced language redirect
redirect_one = 'https://www.django-cms.org/'
redirect_three = '/en/'
one = create_page("one", "nav_playground.html", "en", published=True,
redirect=redirect_one)
three = create_page("three", "nav_playground.html", "en", parent=one,
published=True, redirect=redirect_three)
url = three.get_slug()
request = self.get_request(url)
response = details(request, url.strip('/'))
self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], redirect_three)
def test_redirect_to_self(self):
one = create_page("one", "nav_playground.html", "en", published=True,
redirect='/')
url = one.get_absolute_url()
request = self.get_request(url)
response = details(request, one.get_path())
self.assertEqual(response.status_code, 200)
def test_redirect_to_self_with_host(self):
one = create_page("one", "nav_playground.html", "en", published=True,
redirect='http://testserver/en/')
url = one.get_absolute_url()
request = self.get_request(url)
response = details(request, one.get_path())
self.assertEqual(response.status_code, 200)
def test_redirect_with_toolbar(self):
create_page("one", "nav_playground.html", "en", published=True,
redirect='/en/page2')
superuser = self.get_superuser()
with self.login_user_context(superuser):
response = self.client.get('/en/?%s' % get_cms_setting('CMS_TOOLBAR_URL__EDIT_ON'))
self.assertEqual(response.status_code, 200)
def test_login_required(self):
create_page("page", "nav_playground.html", "en", published=True,
login_required=True)
plain_url = '/accounts/'
login_rx = re.compile("%s\?(signin=|next=/en/)&" % plain_url)
with self.settings(LOGIN_URL=plain_url + '?signin'):
request = self.get_request('/en/')
response = details(request, '')
self.assertEqual(response.status_code, 302)
self.assertTrue(login_rx.search(response['Location']))
login_rx = re.compile("%s\?(signin=|next=/)&" % plain_url)
with self.settings(USE_I18N=False, LOGIN_URL=plain_url + '?signin'):
request = self.get_request('/')
response = details(request, '')
self.assertEqual(response.status_code, 302)
self.assertTrue(login_rx.search(response['Location']))
def test_edit_permission(self):
page = create_page("page", "nav_playground.html", "en", published=True)
# Anon user
response = self.client.get("/en/?%s" % get_cms_setting('CMS_TOOLBAR_URL__EDIT_ON'))
self.assertNotContains(response, "cms_toolbar-item_switch_save-edit", 200)
# Superuser
user = self.get_superuser()
with self.login_user_context(user):
response = self.client.get("/en/?%s" % get_cms_setting('CMS_TOOLBAR_URL__EDIT_ON'))
self.assertContains(response, "cms_toolbar-item_switch_save-edit", 1, 200)
# Admin but with no permission
user = self.get_staff_user_with_no_permissions()
user.user_permissions.add(Permission.objects.get(codename='change_page'))
with self.login_user_context(user):
response = self.client.get("/en/?%s" % get_cms_setting('CMS_TOOLBAR_URL__EDIT_ON'))
self.assertNotContains(response, "cms_toolbar-item_switch_save-edit", 200)
PagePermission.objects.create(can_change=True, user=user, page=page)
with self.login_user_context(user):
response = self.client.get("/en/?%s" % get_cms_setting('CMS_TOOLBAR_URL__EDIT_ON'))
self.assertContains(response, "cms_toolbar-item_switch_save-edit", 1, 200)
@override_settings(ROOT_URLCONF='cms.test_utils.project.urls')
class ContextTests(CMSTestCase):
def test_context_current_page(self):
"""
Asserts the number of queries triggered by
`cms.context_processors.cms_settings` and `cms.middleware.page`
"""
from django.template import context
page_template = "nav_playground.html"
original_context = settings.TEMPLATE_CONTEXT_PROCESSORS
new_context = copy(original_context)
new_context.remove("cms.context_processors.cms_settings")
page = create_page("page", page_template, "en", published=True)
page_2 = create_page("page-2", page_template, "en", published=True,
parent=page)
# Tests for standard django applications
# 1 query is executed in get_app_patterns(), not related
# to cms.context_processors.cms_settings.
# Executing this oputside queries assertion context ensure
# repetability
self.client.get("/en/plain_view/")
cache.clear()
menu_pool.clear()
context._standard_context_processors = None
# Number of queries when context processors is not enabled
with self.settings(TEMPLATE_CONTEXT_PROCESSORS=new_context):
with self.assertNumQueries(FuzzyInt(0, 12)) as context:
response = self.client.get("/en/plain_view/")
num_queries = len(context.captured_queries)
self.assertFalse('CMS_TEMPLATE' in response.context)
cache.clear()
menu_pool.clear()
# Number of queries when context processor is enabled
with self.settings(TEMPLATE_CONTEXT_PROCESSORS=original_context):
# no extra query is run when accessing urls managed by standard
# django applications
with self.assertNumQueries(FuzzyInt(0, num_queries)):
response = self.client.get("/en/plain_view/")
# One query when determining current page
with self.assertNumQueries(FuzzyInt(0, 1)):
self.assertFalse(response.context['request'].current_page)
self.assertFalse(response.context['request']._current_page_cache)
# Zero more queries when determining the current template
with self.assertNumQueries(0):
# Template is the first in the CMS_TEMPLATES list
template = Variable('CMS_TEMPLATE').resolve(response.context)
self.assertEqual(template, get_cms_setting('TEMPLATES')[0][0])
cache.clear()
menu_pool.clear()
# Number of queries when context processors is not enabled
with self.settings(TEMPLATE_CONTEXT_PROCESSORS=new_context):
# Baseline number of queries
with self.assertNumQueries(FuzzyInt(13, 19)) as context:
response = self.client.get("/en/page-2/")
num_queries_page = len(context.captured_queries)
cache.clear()
menu_pool.clear()
# Number of queries when context processors is enabled
with self.settings(TEMPLATE_CONTEXT_PROCESSORS=original_context):
# Exactly the same number of queries are executed with and without
# the context_processor
with self.assertNumQueries(num_queries_page):
response = self.client.get("/en/page-2/")
template = Variable('CMS_TEMPLATE').resolve(response.context)
self.assertEqual(template, page_template)
cache.clear()
menu_pool.clear()
page_2.template = 'INHERIT'
page_2.save()
page_2.publish('en')
with self.settings(TEMPLATE_CONTEXT_PROCESSORS=original_context):
# One query more triggered as page inherits template from ancestor
with self.assertNumQueries(num_queries_page + 1):
response = self.client.get("/en/page-2/")
template = Variable('CMS_TEMPLATE').resolve(response.context)
self.assertEqual(template, page_template)
|
nikhilsingh291/zeroclickinfo-fathead | refs/heads/master | lib/fathead/sass/parse_reference.py | 7 | from bs4 import BeautifulSoup
SASS_DOC_BASE_URL = 'http://sass-lang.com/documentation/file.SASS_REFERENCE.html'
DOWNLOADED_HTML_PATH = 'download/file.SASS_REFERENCE.html'
class Data(object):
"""
Object responsible for loading raw HTML data from Sass Reference
"""
def __init__(self, file):
"""
Initialize Data object. Load data from HTML.
"""
self.HTML = ""
self.FILE = file
self.load_data()
def load_data(self):
"""
Open the HTML file and load it into the object.
"""
with open(self.FILE, 'r') as data_file:
self.HTML = data_file.read()
def get_raw_data(self):
"""
Returns: The raw HTML that was loaded.
"""
return self.HTML
def get_file(self):
"""
Returns: The file path of the file being used.
"""
return self.FILE
class DataParser(object):
"""
Object responsible for parsing the raw HTML that contains data
"""
def __init__(self, data_object, titles):
"""
Given raw data, get the relevant sections
Args:
raw_data: HTML data
"""
self.titles = titles
self.parsed_data = None
self.topic_sections = []
self.file_being_used = data_object.get_file()
self.soup_data = BeautifulSoup(data_object.get_raw_data(), 'html.parser')
table_of_contents = self.soup_data.find(class_="maruku_toc")
sections = table_of_contents.find_all('li')
for section in sections:
section_id = section.find('a')
section_id = section_id['href']
heading = self.soup_data.find(id=section_id[1:])
self.topic_sections.append(heading)
def parse_for_name(self, section):
"""
Returns the section name
Args:
section: A section of parsed HTML that represents a topic
Returns:
Name of topic
"""
name = section.text
if name in self.titles.keys():
info = self.titles[name]
if info[0].strip() != 'None':
return info[0].strip()
else:
return name
else:
return None
def parse_for_redirects(self, section):
"""
Returns any redirects for article
Args:
section: A section of parsed HTML that represents a topic
Returns:
list of redirects
"""
name = section.text
if name in self.titles.keys():
info = self.titles[name]
if info[1].strip() != 'None':
return info[1].strip().split(',')
else:
return []
else:
return []
def parse_for_id(self, section):
"""
Returns the section id for topic
Args:
section: A section of parsed HTML that represents a topic
Returns:
id of section
"""
return '#'+ section.get('id')
def parse_for_description(self, section):
"""
Returns the topic description
Fixes up some weird double spacing and newlines.
Args:
section: A section of parsed HTML that represents a topic
Returns:
topic description
"""
next_para = section.find_next('p')
description = "<p>" + str(next_para.text.encode('utf-8')) + "</p>"
next_tag = next_para.find_next_sibling()
if next_tag.name=="pre" or next_tag.name=="code":
text = str(next_tag.encode('utf-8'))
text = '\\n'.join(text.split('\n'))
description = description + text
return description
def create_url(self, id):
"""
Helper method to create URL back to document
Args:
anchor: #anchor
Returns:
Full URL to function on the sass doc
"""
return SASS_DOC_BASE_URL + id
def parse_for_data(self):
"""
Main gateway into parsing the data. Will retrieve all necessary data elements.
"""
data = []
names = []
for topic_section in self.topic_sections:
name = self.parse_for_name(topic_section)
if name:
description = self.parse_for_description(topic_section)
id = self.parse_for_id(topic_section)
url = self.create_url(id)
redirect = self.parse_for_redirects(topic_section)
if name in names:
index = names.index(name)
data_elements = data[index]
data_elements['description'] += description
data_elements['redirects'].extend(redirect)
else:
names.append(name)
data_elements = {
'name': name,
'description': description,
'url': url,
'redirects' : redirect
}
data.append(data_elements)
self.parsed_data = data
def get_data(self):
"""
Get the parsed data.
Returns:
self.parsed_data: Dict containing necessary data elements
"""
return self.parsed_data
class DataOutput(object):
"""
Object responsible for outputting data into the output.txt file
"""
def __init__(self, data):
self.data = data
def create_file(self):
"""
Iterate through the data and create the needed output.txt file, appending to file as necessary.
"""
with open('output.txt', 'a') as output_file:
for data_element in self.data:
if data_element.get('name'):
description = '<section class="prog__container">' + data_element.get('description') + '</section>'
url = data_element.get('url').encode('utf-8')
name = data_element.get('name').encode('utf-8')
redirect = data_element.get('redirects')
list_of_data = [
name, # unique name
'A', # type is article
'', # no redirect data
'', # ignore
'', # no categories
'', # ignore
'', # no related topics
'', # ignore
'', # external link
'', # no disambiguation
'', # images
description, # abstract
url # url to doc
]
line = '\t'.join(list_of_data)
output_file.write(line+'\n')
def create_redirects(self):
"""
Iterate through the data and create the needed output.txt file, appending to file as necessary.
"""
with open('output.txt', 'a') as output_file:
for data_element in self.data:
if data_element.get('name'):
name = data_element.get('name').encode('utf-8')
redirects = data_element.get('redirects')
for redirect in redirects:
list_of_data = [
redirect.strip(), # unique name
'R', # type is article
name, # redirect data
'', # ignore
'', # no categories
'', # ignore
'', # no related topics
'', # ignore
'', # external link
'', # no disambiguation
'', # images
'', # abstract
'', # url to doc
]
line = '\t'.join(list_of_data)
output_file.write(line+'\n')
def getTitleInfo():
"""
Read through titles.txt and return title names and redirect information.
"""
titles = {}
with open('titles.txt','r') as f:
for line in f:
line = line.split(' ')
if line[1].strip()!="N":
titles[line[0]] = [line[2], line[3].strip()]
return titles
if __name__ == "__main__":
file_path = 'download/file.SASS_REFERENCE.html'
title_info = getTitleInfo()
data = Data(file_path)
parser = DataParser(data, title_info)
parser.parse_for_data()
output = DataOutput(parser.get_data())
output.create_file()
output.create_redirects() |
erochest/threepress-rdfa | refs/heads/master | bookworm/django_authopenid/views.py | 7 | # -*- coding: utf-8 -*-
# Copyright (c) 2007, 2008, Benoît Chesneau
# Copyright (c) 2007 Simon Willison, original work on django-openid
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# * notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# * notice, this list of conditions and the following disclaimer in the
# * documentation and/or other materials provided with the
# * distribution. Neither the name of the <ORGANIZATION> nor the names
# * of its contributors may be used to endorse or promote products
# * derived from this software without specific prior written
# * permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import logging
from django.http import HttpResponseRedirect, get_host
from django.shortcuts import render_to_response as render
from django.template import RequestContext, loader, Context
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth import login, logout
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.utils.html import escape
from django.utils.translation import ugettext as _
from django.contrib.sites.models import Site
from django.utils.http import urlquote_plus
from django.core.mail import send_mail
from django.views.decorators.cache import cache_page, cache_control, never_cache
from bookworm.library.models import UserPref
from openid.consumer.consumer import Consumer, \
SUCCESS, CANCEL, FAILURE, SETUP_NEEDED
from openid.consumer.discover import DiscoveryFailure
from openid.extensions import sreg
# needed for some linux distributions like debian
try:
from openid.yadis import xri
except ImportError:
from yadis import xri
import re
import urllib
from util import OpenID, DjangoOpenIDStore, from_openid_response
from models import UserAssociation, UserPasswordQueue
from forms import OpenidSigninForm, OpenidAuthForm, OpenidRegisterForm, \
OpenidVerifyForm, RegistrationForm, ChangepwForm, ChangeemailForm, \
ChangeopenidForm, DeleteForm, EmailPasswordForm
def get_url_host(request):
if request.is_secure():
protocol = 'https'
else:
protocol = 'http'
host = escape(get_host(request))
return '%s://%s' % (protocol, host)
def get_full_url(request):
if request.is_secure():
protocol = 'https'
else:
protocol = 'http'
host = escape(request.META['HTTP_HOST'])
return get_url_host(request) + request.get_full_path()
next_url_re = re.compile('^/[-\w/]+$')
def is_valid_next_url(next):
# When we allow this:
# /openid/?next=/welcome/
# For security reasons we want to restrict the next= bit
# to being a local path, not a complete URL.
return bool(next_url_re.match(next))
def ask_openid(request, openid_url, redirect_to, on_failure=None,
sreg_request=None):
""" basic function to ask openid and return response """
on_failure = on_failure or signin_failure
trust_root = getattr(
settings, 'OPENID_TRUST_ROOT', get_url_host(request) + '/'
)
if xri.identifierScheme(openid_url) == 'XRI' and getattr(
settings, 'OPENID_DISALLOW_INAMES', False
):
msg = _("i-names are not supported")
return on_failure(request, msg)
consumer = Consumer(request.session, DjangoOpenIDStore())
try:
auth_request = consumer.begin(openid_url)
except DiscoveryFailure:
msg = _("The password or OpenID was invalid")
return on_failure(request, msg)
if sreg_request:
auth_request.addExtension(sreg_request)
redirect_url = auth_request.redirectURL(trust_root, redirect_to)
return HttpResponseRedirect(redirect_url)
def complete(request, on_success=None, on_failure=None, return_to=None):
""" complete openid signin """
on_success = on_success or default_on_success
on_failure = on_failure or default_on_failure
consumer = Consumer(request.session, DjangoOpenIDStore())
openid_response = consumer.complete(dict(request.GET.items()),
return_to)
try:
rel = UserAssociation.objects.get(openid_url__exact = openid_response.identity_url)
try:
rel.user
except User.DoesNotExist:
rel.delete()
return register(request)
except UserAssociation.DoesNotExist:
pass
if openid_response.status == SUCCESS:
return on_success(request, openid_response.identity_url,
openid_response)
elif openid_response.status == CANCEL:
return on_failure(request, 'The request was cancelled')
elif openid_response.status == FAILURE:
return on_failure(request, openid_response.message)
elif openid_response.status == SETUP_NEEDED:
return on_failure(request, 'Setup needed')
else:
assert False, "Bad openid status: %s" % openid_response.status
def default_on_success(request, identity_url, openid_response):
""" default action on openid signin success """
request.session['openid'] = from_openid_response(openid_response)
next = request.GET.get('next', '').strip()
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
return HttpResponseRedirect(next)
def default_on_failure(request, message):
""" default failure action on signin """
return render('openid_failure.html', {
'message': message
})
def not_authenticated(func):
""" decorator that redirect user to next page if
he is already logged."""
def decorated(request, **kwargs):
if request.user.is_authenticated():
next = request.GET.get("next", reverse('library'))
return HttpResponseRedirect(next)
return func(request, **kwargs)
return decorated
@not_authenticated
@never_cache
def signin(request):
"""
signin page. It manage the legacy authentification (user/password)
and authentification with openid.
url: /signin/
template : authopenid/signin.htm
"""
on_failure = signin_failure
next = ''
if request.GET.get('next') and is_valid_next_url(request.GET['next']):
next = request.GET.get('next', '').strip()
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
form_signin = OpenidSigninForm(initial={'next':next})
form_auth = OpenidAuthForm(initial={'next':next})
if request.POST:
if 'bsignin' in request.POST.keys():
form_signin = OpenidSigninForm(request.POST)
if form_signin.is_valid():
next = form_signin.cleaned_data['next']
if not next:
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
sreg_req = sreg.SRegRequest(optional=['nickname', 'email', 'language', 'country', 'timezone', 'fullname'])
redirect_to = "%s%s?%s" % (
get_url_host(request),
reverse('user_complete_signin'),
urllib.urlencode({'next':next})
)
return ask_openid(request,
form_signin.cleaned_data['openid_url'],
redirect_to,
on_failure=signin_failure,
sreg_request=sreg_req)
elif 'blogin' in request.POST.keys():
# perform normal django authentification
form_auth = OpenidAuthForm(request.POST)
if form_auth.is_valid():
user_ = form_auth.get_user()
login(request, user_)
next = form_auth.cleaned_data['next']
if not next:
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
return HttpResponseRedirect(next)
return render('authopenid/signin.html', {
'form1': form_auth,
'form2': form_signin,
'action': request.path,
'msg': request.GET.get('msg',''),
'signin_page': True,
'sendpw_url': reverse('user_sendpw'),
}, context_instance=RequestContext(request))
def complete_signin(request):
""" in case of complete signin with openid """
return complete(request, signin_success, signin_failure,
get_url_host(request) + reverse('user_complete_signin'))
def signin_success(request, identity_url, openid_response):
"""
openid signin success.
If the openid is already registered, the user is redirected to
url set par next or in settings with OPENID_REDIRECT_NEXT variable.
If none of these urls are set user is redirectd to /.
if openid isn't registered user is redirected to register page.
"""
openid_ = from_openid_response(openid_response)
request.session['openid'] = openid_
try:
rel = UserAssociation.objects.get(openid_url__exact = str(openid_))
except:
# try to register this new user
return register(request)
user_ = rel.user
if user_.is_active:
user_.backend = "django.contrib.auth.backends.ModelBackend"
login(request, user_)
next = request.GET.get('next', '').strip()
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
return HttpResponseRedirect(next)
def is_association_exist(openid_url):
""" test if an openid is already in database """
is_exist = True
try:
uassoc = UserAssociation.objects.get(openid_url__exact = openid_url)
except:
is_exist = False
return is_exist
@not_authenticated
@never_cache
def register(request):
"""
register an openid.
If user is already a member he can associate its openid with
its account.
A new account could also be created and automaticaly associated
to the openid.
url : /complete/
template : authopenid/complete.html
"""
is_redirect = False
next = request.GET.get('next', '').strip()
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
openid_ = request.session.get('openid', None)
if not openid_:
return HttpResponseRedirect(reverse('user_signin') + next)
nickname = openid_.sreg.get('nickname', '')
email = openid_.sreg.get('email', '')
form1 = OpenidRegisterForm(initial={
'next': next,
'username': nickname,
'email': email,
})
form2 = OpenidVerifyForm(initial={
'next': next,
'username': nickname,
})
if request.POST:
just_completed = False
if 'bnewaccount' in request.POST.keys():
form1 = OpenidRegisterForm(request.POST)
if form1.is_valid():
next = form1.cleaned_data['next']
if not next:
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
is_redirect = True
tmp_pwd = User.objects.make_random_password()
user_ = User.objects.create_user(form1.cleaned_data['username'],
form1.cleaned_data['email'], tmp_pwd)
# Save a profile for them
profile = UserPref(user=user_)
profile.save()
# make association with openid
uassoc = UserAssociation(openid_url=str(openid_),
user_id=user_.id)
uassoc.save()
# login
user_.backend = "django.contrib.auth.backends.ModelBackend"
login(request, user_)
elif 'bverify' in request.POST.keys():
form2 = OpenidVerifyForm(request.POST)
if form2.is_valid():
is_redirect = True
next = form2.cleaned_data['next']
if not next:
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
user_ = form2.get_user()
uassoc = UserAssociation(openid_url=str(openid_),
user_id=user_.id)
uassoc.save()
login(request, user_)
# redirect, can redirect only if forms are valid.
if is_redirect:
return HttpResponseRedirect(next)
return render('authopenid/complete.html', {
'form1': form1,
'form2': form2,
'action': reverse('user_register'),
'nickname': nickname,
'email': email
}, context_instance=RequestContext(request))
def signin_failure(request, message):
"""
falure with openid signin. Go back to signin page.
template : "authopenid/signin.html"
"""
next = request.REQUEST.get('next', '')
form_signin = OpenidSigninForm(initial={'next': next})
form_auth = OpenidAuthForm(initial={'next': next})
return render('authopenid/signin.html', {
'msg': message,
'form1': form_auth,
'form2': form_signin,
}, context_instance=RequestContext(request))
@not_authenticated
@never_cache
def signup(request):
"""
signup page. Create a legacy account
url : /signup/"
templates: authopenid/signup.html, authopenid/confirm_email.txt
"""
action_signin = reverse('user_signin')
next = request.GET.get('next', '')
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
form = RegistrationForm(initial={'next':next})
form_signin = OpenidSigninForm(initial={'next':next})
if request.POST:
form = RegistrationForm(request.POST)
if form.is_valid():
next = form.cleaned_data.get('next', '')
if not next or not is_valid_next_url(next):
next = getattr(settings, 'OPENID_REDIRECT_NEXT', reverse('library'))
user_ = User.objects.create_user( form.cleaned_data['username'],
form.cleaned_data['email'], form.cleaned_data['password1'])
user_.backend = "django.contrib.auth.backends.ModelBackend"
login(request, user_)
# send email
current_domain = Site.objects.get_current().domain
subject = _("Welcome")
message_template = loader.get_template(
'authopenid/confirm_email.txt'
)
message_context = Context({
'site_url': 'http://%s/' % current_domain,
'username': form.cleaned_data['username'],
'password': form.cleaned_data['password1']
})
message = message_template.render(message_context)
if not settings.DEBUG:
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
[user_.email])
return HttpResponseRedirect(next)
return render('authopenid/signup.html', {
'form': form,
'form2': form_signin,
'action': request.path,
'action_signin': action_signin,
}, context_instance=RequestContext(request))
@login_required
def signout(request, msg=None):
"""
signout from the website. Remove openid from session and kill it.
url : /signout/"
"""
try:
del request.session['openid']
except KeyError:
pass
next = request.GET.get('next', reverse('index'))
if not is_valid_next_url(next):
next = '/'
if msg:
next = next + '?msg=' + urlquote_plus(msg)
logout(request)
return HttpResponseRedirect(next)
@login_required
@never_cache
def account_settings(request):
"""
index pages to changes some basic account settings :
- change password
- change email
- associate a new openid
- delete account
url : /
template : authopenid/settings.html
"""
msg = request.GET.get('msg', '')
is_openid = True
try:
uassoc = UserAssociation.objects.get(
user__username__exact=request.user.username
)
except:
is_openid = False
return render('authopenid/settings.html', {
'msg': msg,
'settings_path': request.path,
'is_openid': is_openid
}, context_instance=RequestContext(request))
@login_required
@never_cache
def changepw(request):
"""
change password view.
url : /changepw/
template: authopenid/changepw.html
"""
user_ = request.user
if request.POST:
form = ChangepwForm(request.POST, user=user_)
if form.is_valid():
user_.set_password(form.cleaned_data['password1'])
user_.save()
msg = _("Password changed.")
redirect = "%s?msg=%s" % (
reverse('bookworm.library.views.profile'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
else:
form = ChangepwForm(user=user_)
return render('authopenid/changepw.html', {'form': form },
context_instance=RequestContext(request))
@login_required
@never_cache
def changeemail(request):
"""
changeemail view. It require password or openid to allow change.
url: /changeemail/
template : authopenid/changeemail.html
"""
msg = request.GET.get('msg', '')
extension_args = {}
user_ = request.user
redirect_to = get_url_host(request) + reverse('user_changeemail')
if request.POST:
form = ChangeemailForm(request.POST, user=user_)
if form.is_valid():
if user_.check_password(form.cleaned_data['password']):
user_.email = form.cleaned_data['email']
user_.save()
msg = _("Email changed.")
redirect = "%s?msg=%s" % (reverse('bookworm.library.views.profile'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
else:
return ask_openid(request, form.cleaned_data['password'],
redirect_to, on_failure=emailopenid_failure)
elif not request.POST and 'openid.mode' in request.GET:
return complete(request, emailopenid_success,
emailopenid_failure, redirect_to)
else:
form = ChangeemailForm(initial={'email': user_.email},
user=user_)
return render('authopenid/changeemail.html', {
'form': form,
'msg': msg
}, context_instance=RequestContext(request))
def emailopenid_success(request, identity_url, openid_response):
openid_ = from_openid_response(openid_response)
user_ = request.user
try:
uassoc = UserAssociation.objects.get(
openid_url__exact=identity_url
)
except:
return emailopenid_failure(request,
_("No OpenID was found in our database"))
if uassoc.user.username != request.user.username:
return emailopenid_failure(request,
_("This OpenID isn't associated with the current logged-in user" %
identity_url))
new_email = request.session.get('new_email', '')
if new_email:
user_.email = new_email
user_.save()
del request.session['new_email']
msg = _("Email changed.")
redirect = "%s?msg=%s" % (reverse('user_account_settings'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
def emailopenid_failure(request, message):
redirect_to = "%s?msg=%s" % (
reverse('user_changeemail'), urlquote_plus(message))
return HttpResponseRedirect(redirect_to)
@login_required
@never_cache
def changeopenid(request):
"""
change openid view. Allow user to change openid
associated to its username.
url : /changeopenid/
template: authopenid/changeopenid.html
"""
extension_args = {}
openid_url = ''
has_openid = True
msg = request.GET.get('msg', '')
user_ = request.user
try:
uopenid = UserAssociation.objects.get(user=user_)
openid_url = uopenid.openid_url
except:
has_openid = False
redirect_to = get_url_host(request) + reverse('user_changeopenid')
if request.POST and has_openid:
form = ChangeopenidForm(request.POST, user=user_)
if form.is_valid():
return ask_openid(request, form.cleaned_data['openid_url'],
redirect_to, on_failure=changeopenid_failure)
elif not request.POST and has_openid:
if 'openid.mode' in request.GET:
return complete(request, changeopenid_success,
changeopenid_failure, redirect_to)
form = ChangeopenidForm(initial={'openid_url': openid_url }, user=user_)
return render('authopenid/changeopenid.html', {
'form': form,
'has_openid': has_openid,
'msg': msg
}, context_instance=RequestContext(request))
def changeopenid_success(request, identity_url, openid_response):
openid_ = from_openid_response(openid_response)
is_exist = True
try:
uassoc = UserAssociation.objects.get(openid_url__exact=identity_url)
except:
is_exist = False
if not is_exist:
try:
uassoc = UserAssociation.objects.get(
user__username__exact=request.user.username
)
uassoc.openid_url = identity_url
uassoc.save()
except:
uassoc = UserAssociation(user=request.user,
openid_url=identity_url)
uassoc.save()
elif uassoc.user.username != request.user.username:
return changeopenid_failure(request,
_('This OpenID is already associated with another account.'))
request.session['openids'] = []
request.session['openids'].append(openid_)
msg = _("This OpenID is now associated with your account.")
redirect = "%s?msg=%s" % (
reverse('bookworm.library.views.profile'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
def changeopenid_failure(request, message):
redirect_to = "%s?msg=%s" % (
reverse('user_changeopenid'),
urlquote_plus(message))
return HttpResponseRedirect(redirect_to)
@login_required
@never_cache
def delete(request):
"""
delete view. Allow user to delete its account. Password/openid are required to
confirm it. He should also check the confirm checkbox.
url : /delete
template : authopenid/delete.html
"""
extension_args = {}
user_ = request.user
form = None
redirect_to = get_url_host(request) + reverse('user_delete')
if request.POST:
form = DeleteForm(request.POST, user=user_)
if form.is_valid():
if 'password' in form.cleaned_data and form.cleaned_data['password']:
if user_.check_password(form.cleaned_data['password']):
user_.delete()
return signout(request, msg='Your account has been deleted.')
return ask_openid(request, form.cleaned_data['password'],
redirect_to, on_failure=deleteopenid_failure)
else:
return ask_openid(request, form.cleaned_data['openid_url'],
redirect_to, on_failure=deleteopenid_failure)
elif not request.POST and 'openid.mode' in request.GET:
logging.info('calling complete with request %s' % request)
return complete(request, deleteopenid_success, deleteopenid_failure,
redirect_to)
if not form:
form = DeleteForm(user=user_)
msg = request.GET.get('msg','')
return render('authopenid/delete.html', {
'form': form,
'msg': msg,
}, context_instance=RequestContext(request))
def deleteopenid_success(request, identity_url, openid_response):
logging.info('openid response: %s' % openid_response)
openid_ = from_openid_response(openid_response)
user_ = request.user
try:
uassoc = UserAssociation.objects.get(
openid_url__exact=identity_url
)
except:
return deleteopenid_failure(request,
_("This OpenID isn't associated in the system."))
if uassoc.user.username == user_.username:
user_.delete()
return signout(request, msg='Your account has been deleted.')
else:
return deleteopenid_failure(request,
_("This OpenID isn't associated with the current logged-in user"))
msg = _("Account deleted.")
redirect = "/?msg=%s" % (urlquote_plus(msg))
return HttpResponseRedirect(redirect)
def deleteopenid_failure(request, message):
redirect_to = "%s?msg=%s" % (reverse('user_delete'), urlquote_plus(message))
return HttpResponseRedirect(redirect_to)
@never_cache
def sendpw(request):
"""
send a new password to the user. It return a mail with
a new pasword and a confirm link in. To activate the
new password, the user should click on confirm link.
url : /sendpw/
templates : authopenid/sendpw_email.txt, authopenid/sendpw.html
"""
msg = request.GET.get('msg','')
if request.POST:
form = EmailPasswordForm(request.POST)
if form.is_valid():
new_pw = User.objects.make_random_password()
confirm_key = UserPasswordQueue.objects.get_new_confirm_key()
try:
uqueue = UserPasswordQueue.objects.get(
user=form.user_cache
)
except:
uqueue = UserPasswordQueue(
user=form.user_cache
)
uqueue.new_password = new_pw
uqueue.confirm_key = confirm_key
uqueue.save()
# send email
current_domain = Site.objects.get_current().domain
subject = _("Request for a new password")
message_template = loader.get_template(
'authopenid/sendpw_email.txt')
message_context = Context({
'site_url': 'http://%s' % current_domain,
'confirm_key': confirm_key,
'username': form.user_cache.username,
'password': new_pw,
'url_confirm': reverse('user_confirmchangepw'),
})
message = message_template.render(message_context)
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
[form.user_cache.email])
msg = _("A new password has been sent to your email")
else:
form = EmailPasswordForm()
return render('authopenid/sendpw.html', {
'form': form,
'msg': msg
}, context_instance=RequestContext(request))
def confirmchangepw(request):
"""
view to set new password when the user click on confirm link
in its mail. Basically it check if the confirm key exist, then
replace old password with new password and remove confirm
key from the queue. Then it redirect the user to signin
page.
url : /sendpw/confirm/?key
"""
confirm_key = request.GET.get('key', '')
if not confirm_key:
return HttpResponseRedirect('/')
try:
uqueue = UserPasswordQueue.objects.get(
confirm_key__exact=confirm_key
)
except:
msg = _("Can not change password. Confirmation key '%s'\
isn't registered." % confirm_key)
redirect = "%s?msg=%s" % (
reverse('user_sendpw'), urlquote_plus(msg))
return HttpResponseRedirect(redirect)
try:
user_ = User.objects.get(id=uqueue.user.id)
except:
msg = _("Cannot change password, as this user doesn't exist in the database.")
redirect = "%s?msg=%s" % (reverse('user_sendpw'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
user_.set_password(uqueue.new_password)
user_.save()
uqueue.delete()
msg = _("Password changed for %s. You could now sign in" %
user_.username)
redirect = "%s?msg=%s" % (reverse('user_signin'),
urlquote_plus(msg))
return HttpResponseRedirect(redirect)
|
luthfii/xsched | refs/heads/master | tools/python/xen/xm/getpolicy.py | 49 | #============================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#============================================================================
# Copyright (C) 2007 International Business Machines Corp.
# Author: Stefan Berger <[email protected]>
#============================================================================
"""Get the managed policy of the system.
"""
import sys
from xen.util import xsconstants
from xml.dom import minidom
from xen.xm.opts import OptionError
from xen.util.acmpolicy import ACMPolicy
from xen.xm import main as xm_main
from xen.xm.main import server
def help():
return """
Usage: xm getpolicy [options]
The following options are defined
--dumpxml Display the XML of the policy
Get the policy managed by xend."""
def display_policy_info(acmpol, policytype, uuid, version, flags,
dumpxml, xml):
print "Policy name : %s" % acmpol.get_name()
print "Policy type : %s" % policytype
if uuid:
print "Reference : %s" % uuid
print "Version of XML policy : %s" % version
state = []
if flags & xsconstants.XS_INST_LOAD:
state.append("loaded")
if flags & xsconstants.XS_INST_BOOT:
state.append("activated for boot")
print "Policy configuration : %s" % ", ".join(state)
if dumpxml:
if xml:
dom = minidom.parseString(xml.encode("utf-8"))
print "%s" % dom.toprettyxml(indent=" ",newl="\n")
def display_security_subsystems(xstype):
types = []
if xstype & xsconstants.XS_POLICY_ACM:
types.append("ACM")
xstype ^= xsconstants.XS_POLICY_ACM
if xstype != 0:
types.append("unsupported (%08x)" % xstype)
if len(types) == 0:
types.append("None")
print "Supported security subsystems : %s \n" % ", ".join(types)
def getpolicy(dumpxml):
if xm_main.serverType == xm_main.SERVER_XEN_API:
xstype = int(server.xenapi.XSPolicy.get_xstype())
display_security_subsystems(xstype)
policystate = server.xenapi.XSPolicy.get_xspolicy()
if int(policystate['type']) == 0:
print "No policy is installed."
return
if int(policystate['type']) != xsconstants.XS_POLICY_ACM:
print "Unknown policy type '%s'." % policystate['type']
else:
xml = policystate['repr']
acmpol = None
if xml:
acmpol = ACMPolicy(xml=xml)
display_policy_info(acmpol,
xsconstants.ACM_POLICY_ID,
policystate['xs_ref'],
policystate['version'],
int(policystate['flags']),
dumpxml,
xml)
else:
xstype = server.xend.security.get_xstype()
display_security_subsystems(xstype)
xml, flags = server.xend.security.get_policy()
acmpol = None
if xml != "":
dom = None
try:
dom = minidom.parseString(xml)
if dom:
acmpol = ACMPolicy(dom=dom)
except Exception, e:
print "Error parsing the library: " + str(e)
if acmpol:
display_policy_info(acmpol,
xsconstants.ACM_POLICY_ID,
None,
acmpol.get_version(),
flags,
dumpxml,
xml)
else:
print "No policy is installed."
def main(argv):
dumpxml = False
if '--dumpxml' in argv:
dumpxml = True
getpolicy(dumpxml)
if __name__ == '__main__':
try:
main(sys.argv)
except Exception, e:
sys.stderr.write('Error: %s\n' % str(e))
sys.exit(-1)
|
tadebayo/myedge | refs/heads/master | myvenv/Lib/site-packages/sqlparse/lexer.py | 9 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Andi Albrecht, [email protected]
#
# This module is part of python-sqlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause
"""SQL Lexer"""
# This code is based on the SqlLexer in pygments.
# http://pygments.org/
# It's separated from the rest of pygments to increase performance
# and to allow some customizations.
from sqlparse import tokens
from sqlparse.keywords import SQL_REGEX
from sqlparse.compat import bytes_type, text_type, file_types
from sqlparse.utils import consume
class Lexer(object):
"""Lexer
Empty class. Leaving for backwards-compatibility
"""
@staticmethod
def get_tokens(text, encoding=None):
"""
Return an iterable of (tokentype, value) pairs generated from
`text`. If `unfiltered` is set to `True`, the filtering mechanism
is bypassed even if filters are defined.
Also preprocess the text, i.e. expand tabs and strip it if
wanted and applies registered filters.
Split ``text`` into (tokentype, text) pairs.
``stack`` is the inital stack (default: ``['root']``)
"""
if isinstance(text, file_types):
text = text.read()
if isinstance(text, text_type):
pass
elif isinstance(text, bytes_type):
try:
text = text.decode()
except UnicodeDecodeError:
if not encoding:
encoding = 'unicode-escape'
text = text.decode(encoding)
else:
raise TypeError(u"Expected text or file-like object, got {!r}".
format(type(text)))
iterable = enumerate(text)
for pos, char in iterable:
for rexmatch, action in SQL_REGEX:
m = rexmatch(text, pos)
if not m:
continue
elif isinstance(action, tokens._TokenType):
yield action, m.group()
elif callable(action):
yield action(m.group())
consume(iterable, m.end() - pos - 1)
break
else:
yield tokens.Error, char
def tokenize(sql, encoding=None):
"""Tokenize sql.
Tokenize *sql* using the :class:`Lexer` and return a 2-tuple stream
of ``(token type, value)`` items.
"""
return Lexer().get_tokens(sql, encoding)
|
google-code-export/epubia | refs/heads/master | scraper/naver_scraper.py | 3 | # -*- encoding: utf-8 -*-
# Book Info using Naver OpenAPI
import urllib
from xml.dom.minidom import parseString
import re
MARKUP_PTN = re.compile(r'</?[a-z]+>')
class book_scraper:
key = '' # my key
srch_url = 'http://openapi.naver.com/search?key={0:s}&query={1:s}&display=1&target=book'
isbn_url = 'http://openapi.naver.com/search?key={0:s}&query={1:s}&display=1&target=book_adv&d_isbn={1:s}'
img_url = 'http://book.daum-img.net/image/KOR{0:s}'
default_value = {'title':'','author':'','isbn':'',
'cover_url':'',
'publisher':'','publishdate':'',
'description':'','subject':''}
def __init__(self):
pass
def search(self,qstr,maxresult=None):
return self._parse( urllib.urlopen(self.srch_url.format(self.key, urllib.quote_plus(qstr.encode('utf-8')))).read() )
def fetch(self,isbn):
result = self._parse( urllib.urlopen(self.isbn_url.format(self.key, isbn)).read() )
return result[0] if result else None
def _parse(self,xml):
info = []
dom = parseString(xml)
if dom.childNodes[0].nodeName == 'error':
print xml
return None
assert dom.childNodes[0].childNodes[0].nodeName == 'channel'
for node in dom.childNodes[0].childNodes[0].childNodes:
if node.nodeName == 'item':
pkt = self.default_value
for e in node.childNodes:
if e.nodeName == 'title':
pkt['title'] = self._cleanup(e.childNodes[0].nodeValue)
elif e.nodeName == 'author':
if e.childNodes:
pkt['author'] = self._cleanup(e.childNodes[0].nodeValue)
elif e.nodeName == 'image' and e.childNodes:
pkt['cover_url'] = e.childNodes[0].nodeValue.replace('=m1','=m256')
elif e.nodeName == 'publisher':
pkt['publisher'] = e.childNodes[0].nodeValue
elif e.nodeName == 'pubdate':
ss = e.childNodes[0].nodeValue
pkt['publishdate'] = "%s-%s-%s" % (ss[0:4],ss[4:6],ss[6:8])
elif e.nodeName == 'description':
if e.childNodes:
pkt['description'] = self._cleanup(e.childNodes[0].nodeValue)
elif e.nodeName == 'isbn':
if e.childNodes:
pkt['isbn'] = self._cleanup(e.childNodes[0].nodeValue.split(' ')[-1])
if pkt['cover_url'] == '' and len(pkt['isbn']) == 13:
pkt['cover_url'] = self.img_url.format(pkt['isbn'], pkt['isbn'][-3:-1])
info.append( pkt )
return info
def _cleanup(self,str):
return MARKUP_PTN.sub('',str).replace('&','&').replace('<','<').replace('>','>')
if __name__ == "__main__":
info = book_scraper().search( "은하영웅전설 1" )[0]
print info['title']
print info['author']
print info['cover_url']
info = book_scraper().search( "[이광수]무정" )[0]
print info['title']
print info['author']
print info['cover_url']
# vim:ts=4:sw=4:et
|
ryfeus/lambda-packs | refs/heads/master | Tensorflow/source/setuptools/command/install_scripts.py | 454 | from distutils import log
import distutils.command.install_scripts as orig
import os
import sys
from pkg_resources import Distribution, PathMetadata, ensure_directory
class install_scripts(orig.install_scripts):
"""Do normal script install, plus any egg_info wrapper scripts"""
def initialize_options(self):
orig.install_scripts.initialize_options(self)
self.no_ep = False
def run(self):
import setuptools.command.easy_install as ei
self.run_command("egg_info")
if self.distribution.scripts:
orig.install_scripts.run(self) # run first to set up self.outfiles
else:
self.outfiles = []
if self.no_ep:
# don't install entry point scripts into .egg file!
return
ei_cmd = self.get_finalized_command("egg_info")
dist = Distribution(
ei_cmd.egg_base, PathMetadata(ei_cmd.egg_base, ei_cmd.egg_info),
ei_cmd.egg_name, ei_cmd.egg_version,
)
bs_cmd = self.get_finalized_command('build_scripts')
exec_param = getattr(bs_cmd, 'executable', None)
bw_cmd = self.get_finalized_command("bdist_wininst")
is_wininst = getattr(bw_cmd, '_is_running', False)
writer = ei.ScriptWriter
if is_wininst:
exec_param = "python.exe"
writer = ei.WindowsScriptWriter
if exec_param == sys.executable:
# In case the path to the Python executable contains a space, wrap
# it so it's not split up.
exec_param = [exec_param]
# resolve the writer to the environment
writer = writer.best()
cmd = writer.command_spec_class.best().from_param(exec_param)
for args in writer.get_args(dist, cmd.as_header()):
self.write_script(*args)
def write_script(self, script_name, contents, mode="t", *ignored):
"""Write an executable file to the scripts directory"""
from setuptools.command.easy_install import chmod, current_umask
log.info("Installing %s script to %s", script_name, self.install_dir)
target = os.path.join(self.install_dir, script_name)
self.outfiles.append(target)
mask = current_umask()
if not self.dry_run:
ensure_directory(target)
f = open(target, "w" + mode)
f.write(contents)
f.close()
chmod(target, 0o777 - mask)
|
chriskiehl/Gooey | refs/heads/master | gooey/gui/components/widgets/radio_group.py | 1 | import wx
from gooey.gui.components.widgets.bases import BaseWidget
from gooey.gui.lang.i18n import _
from gooey.gui.util import wx_util
from gooey.gui.components.widgets import CheckBox
from gooey.util.functional import getin, findfirst, merge
class RadioGroup(BaseWidget):
def __init__(self, parent, widgetInfo, *args, **kwargs):
super(RadioGroup, self).__init__(parent, *args, **kwargs)
self._parent = parent
self.info = widgetInfo
self._id = widgetInfo['id']
self._options = widgetInfo['options']
self.widgetInfo = widgetInfo
self.error = wx.StaticText(self, label='')
self.radioButtons = self.createRadioButtons()
self.selected = None
self.widgets = self.createWidgets()
self.arrange()
for button in self.radioButtons:
button.Bind(wx.EVT_LEFT_DOWN, self.handleButtonClick)
initialSelection = getin(self.info, ['options', 'initial_selection'], None)
if initialSelection is not None:
self.selected = self.radioButtons[initialSelection]
self.selected.SetValue(True)
self.handleImplicitCheck()
self.applyStyleRules()
def getValue(self):
for button, widget in zip(self.radioButtons, self.widgets):
if button.GetValue(): # is Checked
return merge(widget.getValue(), {'id': self._id})
else:
# just return the first widget's value even though it's
# not active so that the expected interface is satisfied
return self.widgets[0].getValue()
def setErrorString(self, message):
for button, widget in zip(self.radioButtons, self.widgets):
if button.GetValue(): # is Checked
widget.setErrorString(message)
self.Layout()
def showErrorString(self, b):
for button, widget in zip(self.radioButtons, self.widgets):
if button.GetValue(): # is Checked
widget.showErrorString(b)
def arrange(self, *args, **kwargs):
title = getin(self.widgetInfo, ['options', 'title'], _('choose_one'))
if getin(self.widgetInfo, ['options', 'show_border'], False):
boxDetails = wx.StaticBox(self, -1, title)
boxSizer = wx.StaticBoxSizer(boxDetails, wx.VERTICAL)
else:
title = wx_util.h1(self, title)
title.SetForegroundColour(self._options['label_color'])
boxSizer = wx.BoxSizer(wx.VERTICAL)
boxSizer.AddSpacer(10)
boxSizer.Add(title, 0)
for btn, widget in zip(self.radioButtons, self.widgets):
sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(btn,0, wx.RIGHT, 4)
sizer.Add(widget, 1, wx.EXPAND)
boxSizer.Add(sizer, 0, wx.ALL | wx.EXPAND, 5)
self.SetSizer(boxSizer)
def handleButtonClick(self, event):
currentSelection = self.selected
nextSelection = event.EventObject
if not self.isSameRadioButton(currentSelection, nextSelection):
self.selected = nextSelection
self.selected.SetValue(True)
else:
# user clicked on an already enabled radio button.
# if it is not in the required section, allow it to be deselected
if not self.widgetInfo['required']:
self.selected.SetValue(False)
self.selected = None
self.applyStyleRules()
self.handleImplicitCheck()
def isSameRadioButton(self, radioButton1, radioButton2):
return (getattr(radioButton1, 'Id', 'r1-not-found') ==
getattr(radioButton2, 'Id', 'r2-not-found'))
def applyStyleRules(self):
"""
Conditionally disabled/enables form fields based on the current
section in the radio group
"""
# for reasons I have been completely unable to figure out
# or understand, IFF you've interacted with one of the radio Buttons's
# child components, then the act of disabling that component will
# reset the state of the radioButtons thus causing it to forget
# what should be selected. So, that is why we're collected the initial
# state of all the buttons and resetting each button's state as we go.
# it's wonky as hell
states = [x.GetValue() for x in self.radioButtons]
for button, selected, widget in zip(self.radioButtons, states, self.widgets):
if isinstance(widget, CheckBox):
widget.hideInput()
if not selected: # not checked
widget.Disable()
else:
widget.Enable()
button.SetValue(selected)
def handleImplicitCheck(self):
"""
Checkboxes are hidden when inside of a RadioGroup as a selection of
the Radio button is an implicit selection of the Checkbox. As such, we have
to manually "check" any checkbox as needed.
"""
for button, widget in zip(self.radioButtons, self.widgets):
if isinstance(widget, CheckBox):
if button.GetValue(): # checked
widget.setValue(True)
else:
widget.setValue(False)
def createRadioButtons(self):
# button groups in wx are statefully determined via a style flag
# on the first button (what???). All button instances are part of the
# same group until a new button is created with the style flag RG_GROUP
# https://wxpython.org/Phoenix/docs/html/wx.RadioButton.html
# (What???)
firstButton = wx.RadioButton(self, style=wx.RB_GROUP)
firstButton.SetValue(False)
buttons = [firstButton]
for _ in getin(self.widgetInfo, ['data','widgets'], [])[1:]:
buttons.append(wx.RadioButton(self))
return buttons
def createWidgets(self):
"""
Instantiate the Gooey Widgets that are used within the RadioGroup
"""
from gooey.gui.components import widgets
widgets = [getattr(widgets, item['type'])(self, item)
for item in getin(self.widgetInfo, ['data', 'widgets'], [])]
# widgets should be disabled unless
# explicitly selected
for widget in widgets:
widget.Disable()
return widgets
|
xxshutong/openerp-7.0 | refs/heads/master | openerp/addons/sale_mrp/__openerp__.py | 60 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Sales and MRP Management',
'version': '1.0',
'category': 'Hidden',
'description': """
This module provides facility to the user to install mrp and sales modulesat a time.
====================================================================================
It is basically used when we want to keep track of production orders generated
from sales order. It adds sales name and sales Reference on production order.
""",
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'images': ['images/SO_to_MO.jpeg'],
'depends': ['mrp', 'sale_stock'],
'data': [
'security/ir.model.access.csv',
'sale_mrp_view.xml',
],
'demo': [],
'test':['test/sale_mrp.yml'],
'installable': True,
'auto_install': True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
ua-snap/geonode | refs/heads/master | geonode/services/views.py | 6 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#########################################################################
import urllib
import uuid
import logging
import re
from urlparse import urlsplit, urlunsplit
import urlparse
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
from django.conf import settings
from django.template import RequestContext, loader
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext as _
try:
# Django >= 1.7
import json
except ImportError:
# Django <= 1.6 backwards compatibility
from django.utils import simplejson as json
from django.shortcuts import get_object_or_404
from owslib.wms import WebMapService
from owslib.wfs import WebFeatureService
from owslib.tms import TileMapService
from owslib.csw import CatalogueServiceWeb
from arcrest import Folder as ArcFolder, MapService as ArcMapService
from geoserver.catalog import Catalog
from geonode.services.models import Service, Layer, ServiceLayer, WebServiceHarvestLayersJob
from geonode.security.views import _perms_info_json
from geonode.utils import bbox_to_wkt
from geonode.services.forms import CreateServiceForm, ServiceForm
from geonode.utils import mercator_to_llbbox
from geonode.layers.utils import create_thumbnail
from geonode.geoserver.helpers import set_attributes
from geonode.base.models import Link
logger = logging.getLogger("geonode.core.layers.views")
_user = settings.OGC_SERVER['default']['USER']
_password = settings.OGC_SERVER['default']['PASSWORD']
OGP_ABSTRACT = _("""
The Open Geoportal is a consortium comprised of contributions of several universities and organizations to help
facilitate the discovery and acquisition of geospatial data across many organizations and platforms. Current partners
include: Harvard, MIT, MassGIS, Princeton, Columbia, Stanford, UC Berkeley, UCLA, Yale, and UConn. Built on open source
technology, The Open Geoportal provides organizations the opportunity to share thousands of geospatial data layers,
maps, metadata, and development resources through a single common interface.
""")
@login_required
def services(request):
"""
This view shows the list of all registered services
"""
services = Service.objects.all()
return render_to_response("services/service_list.html", RequestContext(request, {
'services': services,
}))
@login_required
def register_service(request):
"""
This view is used for manually registering a new service, with only URL as a
parameter.
"""
if request.method == "GET":
service_form = CreateServiceForm()
return render_to_response('services/service_register.html',
RequestContext(request, {
'create_service_form': service_form
}))
elif request.method == 'POST':
# Register a new Service
service_form = CreateServiceForm(request.POST)
if service_form.is_valid():
url = _clean_url(service_form.cleaned_data['url'])
# method = request.POST.get('method')
# type = request.POST.get('type')
# name = slugify(request.POST.get('name'))
name = service_form.cleaned_data['name']
type = service_form.cleaned_data["type"]
server = None
if type == "AUTO":
type, server = _verify_service_type(url)
if type is None:
return HttpResponse('Could not determine server type', status=400)
if "user" in request.POST and "password" in request.POST:
user = request.POST.get('user')
password = request.POST.get('password')
else:
user = None
password = None
if type in ["WMS", "OWS"]:
return _process_wms_service(url, name, type, user, password, wms=server, owner=request.user)
elif type == "REST":
return _register_arcgis_url(url, name, user, password, owner=request.user)
elif type == "CSW":
return _register_harvested_service(url, name, user, password, owner=request.user)
elif type == "OGP":
return _register_ogp_service(url, owner=request.user)
else:
return HttpResponse('Not Implemented (Yet)', status=501)
elif request.method == 'PUT':
# Update a previously registered Service
return HttpResponse('Not Implemented (Yet)', status=501)
elif request.method == 'DELETE':
# Delete a previously registered Service
return HttpResponse('Not Implemented (Yet)', status=501)
else:
return HttpResponse('Invalid Request', status=400)
def register_service_by_type(request):
"""
Register a service based on a specified type
"""
url = request.POST.get("url")
type = request.POST.get("type")
url = _clean_url(url)
services = Service.objects.filter(base_url=url)
if services.count() > 0:
return
type, server = _verify_service_type(url, type)
if type == "WMS" or type == "OWS":
return _process_wms_service(url, type, None, None, wms=server)
elif type == "REST":
return _register_arcgis_url(url, None, None, None)
def _is_unique(url):
"""
Determine if a service is already registered based on matching url
"""
return Service.objects.filter(base_url=url).count() == 0
def _clean_url(base_url):
"""
Remove all parameters from a URL
"""
urlprop = urlsplit(base_url)
url = urlunsplit(
(urlprop.scheme, urlprop.netloc, urlprop.path, None, None))
# hack, we make sure to append the map parameter for MapServer endpoints
# that are exposing it
if 'map' in urlparse.parse_qs(urlprop.query):
map_param = urllib.urlencode({'map': urlparse.parse_qs(urlprop.query)['map'][0]})
url = '%s?%s' % (url, map_param)
return url
def _get_valid_name(proposed_name):
"""
Return a unique slug name for a service
"""
slug_name = slugify(proposed_name)
name = slug_name
if len(slug_name) > 40:
name = slug_name[:40]
existing_service = Service.objects.filter(name=name)
iter = 1
while existing_service.count() > 0:
name = slug_name + str(iter)
existing_service = Service.objects.filter(name=name)
iter += 1
return name
def _verify_service_type(base_url, service_type=None):
"""
Try to determine service type by process of elimination
"""
logger.info("Checking the url: " + base_url)
if service_type in ['WMS', 'OWS', None]:
try:
service = WebMapService(base_url)
except:
pass
else:
return ['WMS', service]
if service_type in ['WFS', 'OWS', None]:
try:
servicewfs = WebFeatureService(base_url)
except:
pass
else:
return ['WFS', servicewfs]
if service_type in ['TMS', None]:
try:
service = TileMapService(base_url)
except:
pass
else:
return ['TMS', service]
if service_type in ['REST', None]:
try:
service = ArcFolder(base_url)
except:
pass
else:
try:
service.services
return ['REST', service]
except ValueError:
service = CatalogueServiceWeb(base_url)
if service_type in ['CSW', None]:
try:
service = CatalogueServiceWeb(base_url)
except Exception, e:
logger.exception(e)
raise
else:
return ['CSW', service]
if service_type in ['OGP', None]:
# Just use a specific OGP URL for now
if base_url == settings.OGP_URL:
return ["OGP", None]
return [None, None]
def _process_wms_service(url, name, type, username, password, wms=None, owner=None, parent=None):
"""
Create a new WMS/OWS service, cascade it if necessary (i.e. if Web Mercator not available)
"""
if wms is None:
wms = WebMapService(url)
try:
base_url = _clean_url(
wms.getOperationByName('GetMap').methods['Get']['url'])
if base_url and base_url != url:
url = base_url
wms = WebMapService(base_url)
except:
logger.info(
"Could not retrieve GetMap url, using originally supplied URL %s" % url)
pass
try:
service = Service.objects.get(base_url=url)
return_dict = [{'status': 'ok',
'msg': _("This is an existing service"),
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title
}]
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
except:
pass
title = wms.identification.title
if not name:
if title:
name = _get_valid_name(title)
else:
name = _get_valid_name(urlsplit(url).netloc)
try:
supported_crs = ','.join(wms.contents.itervalues().next().crsOptions)
except:
supported_crs = None
if supported_crs and re.search('EPSG:900913|EPSG:3857|EPSG:102100|EPSG:102113', supported_crs):
return _register_indexed_service(type, url, name, username, password, wms=wms, owner=owner, parent=parent)
else:
return _register_cascaded_service(url, type, name, username, password, wms=wms, owner=owner, parent=parent)
def _register_cascaded_service(url, type, name, username, password, wms=None, owner=None, parent=None):
"""
Register a service as cascading WMS
"""
try:
service = Service.objects.get(base_url=url)
return_dict = {}
return_dict['service_id'] = service.pk
return_dict['msg'] = "This is an existing Service"
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
except:
# TODO: Handle this error properly
pass
if wms is None:
wms = WebMapService(url)
# TODO: Make sure we are parsing all service level metadata
# TODO: Handle for setting ServiceProfiletRole
service = Service.objects.create(base_url=url,
type=type,
method='C',
name=name,
version=wms.identification.version,
title=wms.identification.title,
abstract=wms.identification.abstract,
online_resource=wms.provider.url,
owner=owner,
parent=parent)
service.keywords = ','.join(wms.identification.keywords)
service.save()
service.set_default_permissions()
if type in ['WMS', 'OWS']:
# Register the Service with GeoServer to be cascaded
cat = Catalog(settings.OGC_SERVER['default']['LOCATION'] + "rest",
_user, _password)
cascade_ws = cat.get_workspace(name)
if cascade_ws is None:
cascade_ws = cat.create_workspace(
name, "http://geonode.org/" + name)
# TODO: Make sure there isn't an existing store with that name, and
# deal with it if there is
try:
cascade_store = cat.get_store(name, cascade_ws)
except:
cascade_store = cat.create_wmsstore(
name, cascade_ws, username, password)
cascade_store.capabilitiesURL = url
cascade_store.type = "WMS"
cat.save(cascade_store)
available_resources = cascade_store.get_resources(available=True)
elif type == 'WFS':
# Register the Service with GeoServer to be cascaded
cat = Catalog(settings.OGC_SERVER['default']['LOCATION'] + "rest",
_user, _password)
# Can we always assume that it is geonode?
cascade_ws = cat.get_workspace(settings.CASCADE_WORKSPACE)
if cascade_ws is None:
cascade_ws = cat.create_workspace(
settings.CASCADE_WORKSPACE, "http://geonode.org/cascade")
try:
wfs_ds = cat.get_store(name, cascade_ws)
except:
wfs_ds = cat.create_datastore(name, cascade_ws)
connection_params = {
"WFSDataStoreFactory:MAXFEATURES": "0",
"WFSDataStoreFactory:TRY_GZIP": "true",
"WFSDataStoreFactory:PROTOCOL": "false",
"WFSDataStoreFactory:LENIENT": "true",
"WFSDataStoreFactory:TIMEOUT": "3000",
"WFSDataStoreFactory:BUFFER_SIZE": "10",
"WFSDataStoreFactory:ENCODING": "UTF-8",
"WFSDataStoreFactory:WFS_STRATEGY": "nonstrict",
"WFSDataStoreFactory:GET_CAPABILITIES_URL": url,
}
if username and password:
connection_params["WFSDataStoreFactory:USERNAME"] = username
connection_params["WFSDataStoreFactory:PASSWORD"] = password
wfs_ds.connection_parameters = connection_params
cat.save(wfs_ds)
available_resources = wfs_ds.get_resources(available=True)
# Save the Service record
service, created = Service.objects.get_or_create(type=type,
method='C',
base_url=url,
name=name,
owner=owner)
service.save()
service.set_default_permissions()
elif type == 'WCS':
return HttpResponse('Not Implemented (Yet)', status=501)
else:
return HttpResponse(
'Invalid Method / Type combo: ' +
'Only Cascaded WMS, WFS and WCS supported',
content_type="text/plain",
status=400)
message = "Service %s registered" % service.name
return_dict = [{'status': 'ok',
'msg': message,
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'available_layers': available_resources
}]
if settings.USE_QUEUE:
# Create a layer import job
WebServiceHarvestLayersJob.objects.get_or_create(service=service)
else:
_register_cascaded_layers(service)
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
def _register_cascaded_layers(service, owner=None):
"""
Register layers for a cascading WMS
"""
if service.type == 'WMS' or service.type == "OWS":
cat = Catalog(settings.OGC_SERVER['default']['LOCATION'] + "rest",
_user, _password)
# Can we always assume that it is geonode?
# Should cascading layers have a separate workspace?
cascade_ws = cat.get_workspace(service.name)
if cascade_ws is None:
cascade_ws = cat.create_workspace(service.name, 'cascade')
try:
store = cat.get_store(service.name, cascade_ws)
except Exception:
store = cat.create_wmsstore(service.name, cascade_ws)
cat.save(store)
wms = WebMapService(service.base_url)
layers = list(wms.contents)
count = 0
for layer in layers:
lyr = cat.get_resource(layer, store, cascade_ws)
if lyr is None:
if service.type in ["WMS", "OWS"]:
resource = cat.create_wmslayer(cascade_ws, store, layer)
elif service.type == "WFS":
resource = cat.create_wfslayer(cascade_ws, store, layer)
if resource:
bbox = resource.latlon_bbox
cascaded_layer, created = Layer.objects.get_or_create(
typename="%s:%s" % (cascade_ws.name, resource.name),
service=service,
defaults={
"name": resource.name,
"workspace": cascade_ws.name,
"store": store.name,
"storeType": store.resource_type,
"title": resource.title or 'No title provided',
"abstract": resource.abstract or 'No abstract provided',
"owner": None,
"uuid": str(uuid.uuid4()),
"bbox_x0": bbox[0],
"bbox_x1": bbox[1],
"bbox_y0": bbox[2],
"bbox_y1": bbox[3],
})
if created:
cascaded_layer.save()
if cascaded_layer is not None and cascaded_layer.bbox is None:
cascaded_layer._populate_from_gs(
gs_resource=resource)
cascaded_layer.set_default_permissions()
service_layer, created = ServiceLayer.objects.get_or_create(
service=service,
typename=cascaded_layer.name
)
service_layer.layer = cascaded_layer
service_layer.title = cascaded_layer.title,
service_layer.description = cascaded_layer.abstract,
service_layer.styles = cascaded_layer.styles
service_layer.save()
count += 1
else:
logger.error(
"Resource %s from store %s could not be saved as layer" % (layer, store.name))
message = "%d Layers Registered" % count
return_dict = {'status': 'ok', 'msg': message}
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
elif service.type == 'WCS':
return HttpResponse('Not Implemented (Yet)', status=501)
else:
return HttpResponse('Invalid Service Type', status=400)
def _register_indexed_service(type, url, name, username, password, verbosity=False, wms=None, owner=None, parent=None):
"""
Register a service - WMS or OWS currently supported
"""
if type in ['WMS', "OWS", "HGL"]:
# TODO: Handle for errors from owslib
if wms is None:
wms = WebMapService(url)
# TODO: Make sure we are parsing all service level metadata
# TODO: Handle for setting ServiceProfileRole
try:
service = Service.objects.get(base_url=url)
return_dict = {}
return_dict['service_id'] = service.pk
return_dict['msg'] = "This is an existing Service"
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
except:
pass
service = Service.objects.create(base_url=url,
type=type,
method='I',
name=name,
version=wms.identification.version,
title=wms.identification.title or name,
abstract=wms.identification.abstract or _(
"Not provided"),
online_resource=wms.provider.url,
owner=owner,
parent=parent)
service.keywords = ','.join(wms.identification.keywords)
service.save()
service.set_default_permissions()
available_resources = []
for layer in list(wms.contents):
available_resources.append([wms[layer].name, wms[layer].title])
if settings.USE_QUEUE:
# Create a layer import job
WebServiceHarvestLayersJob.objects.get_or_create(service=service)
else:
_register_indexed_layers(service, wms=wms)
message = "Service %s registered" % service.name
return_dict = [{'status': 'ok',
'msg': message,
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'available_layers': available_resources
}]
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
elif type == 'WFS':
return HttpResponse('Not Implemented (Yet)', status=501)
elif type == 'WCS':
return HttpResponse('Not Implemented (Yet)', status=501)
else:
return HttpResponse(
'Invalid Method / Type combo: ' +
'Only Indexed WMS, WFS and WCS supported',
content_type="text/plain",
status=400)
def _register_indexed_layers(service, wms=None, verbosity=False):
"""
Register layers for an indexed service (only WMS/OWS currently supported)
"""
logger.info("Registering layers for %s" % service.base_url)
if re.match("WMS|OWS", service.type):
wms = wms or WebMapService(service.base_url)
count = 0
for layer in list(wms.contents):
wms_layer = wms[layer]
if wms_layer is None or wms_layer.name is None:
continue
logger.info("Registering layer %s" % wms_layer.name)
if verbosity:
print "Importing layer %s" % layer
layer_uuid = str(uuid.uuid1())
try:
keywords = map(lambda x: x[:100], wms_layer.keywords)
except:
keywords = []
if not wms_layer.abstract:
abstract = ""
else:
abstract = wms_layer.abstract
srid = None
# Some ArcGIS WMSServers indicate they support 900913 but really
# don't
if 'EPSG:900913' in wms_layer.crsOptions and "MapServer/WmsServer" not in service.base_url:
srid = 'EPSG:900913'
elif len(wms_layer.crsOptions) > 0:
matches = re.findall(
'EPSG\:(3857|102100|102113)', ' '.join(wms_layer.crsOptions))
if matches:
srid = 'EPSG:%s' % matches[0]
if srid is None:
message = "%d Incompatible projection - try setting the service as cascaded" % count
return_dict = {'status': 'ok', 'msg': message}
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
bbox = list(
wms_layer.boundingBoxWGS84 or (-179.0, -89.0, 179.0, 89.0))
# Need to check if layer already exists??
saved_layer, created = Layer.objects.get_or_create(
typename=wms_layer.name,
service=service,
defaults=dict(
name=wms_layer.name,
store=service.name, # ??
storeType="remoteStore",
workspace="remoteWorkspace",
title=wms_layer.title or wms_layer.name,
abstract=abstract or _("Not provided"),
uuid=layer_uuid,
owner=None,
srid=srid,
bbox_x0=bbox[0],
bbox_x1=bbox[2],
bbox_y0=bbox[1],
bbox_y1=bbox[3]
)
)
if created:
saved_layer.save()
saved_layer.set_default_permissions()
saved_layer.keywords.add(*keywords)
set_attributes(saved_layer)
service_layer, created = ServiceLayer.objects.get_or_create(
typename=wms_layer.name,
service=service
)
service_layer.layer = saved_layer
service_layer.title = wms_layer.title
service_layer.description = wms_layer.abstract
service_layer.styles = wms_layer.styles
service_layer.save()
count += 1
message = "%d Layers Registered" % count
return_dict = {'status': 'ok', 'msg': message}
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
elif service.type == 'WFS':
return HttpResponse('Not Implemented (Yet)', status=501)
elif service.type == 'WCS':
return HttpResponse('Not Implemented (Yet)', status=501)
else:
return HttpResponse('Invalid Service Type', status=400)
def _register_harvested_service(url, name, username, password, csw=None, owner=None):
"""
Register a CSW service, then step through results (or queue for asynchronous harvesting)
"""
try:
service = Service.objects.get(base_url=url)
return_dict = [{
'status': 'ok',
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'msg': 'This is an existing Service'
}]
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
except:
pass
if csw is None:
csw = CatalogueServiceWeb(url)
service = Service.objects.create(base_url=url,
type='CSW',
method='H',
name=_get_valid_name(
csw.identification.title or url) if not name else name,
title=csw.identification.title,
version=csw.identification.version,
abstract=csw.identification.abstract or _("Not provided"),
owner=owner)
service.keywords = ','.join(csw.identification.keywords)
service.save
service.set_default_permissions()
message = "Service %s registered" % service.name
return_dict = [{'status': 'ok',
'msg': message,
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title
}]
if settings.USE_QUEUE:
# Create a layer import job
WebServiceHarvestLayersJob.objects.get_or_create(service=service)
else:
_harvest_csw(service)
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
def _harvest_csw(csw, maxrecords=10, totalrecords=float('inf')):
"""
Step through CSW results, and if one seems to be a WMS or Arc REST service then register it
"""
stop = 0
flag = 0
src = CatalogueServiceWeb(csw.base_url)
while stop == 0:
if flag == 0: # first run, start from 0
startposition = 0
else: # subsequent run, startposition is now paged
startposition = src.results['nextrecord']
src.getrecords(
esn='summary', startposition=startposition, maxrecords=maxrecords)
max = min(src.results['matches'], totalrecords)
if src.results['nextrecord'] == 0 \
or src.results['returned'] == 0 \
or src.results['nextrecord'] > max: # end the loop, exhausted all records or max records to process
stop = 1
break
# harvest each record to destination CSW
for record in list(src.records):
record = src.records[record]
known_types = {}
for ref in record.references:
if ref["scheme"] == "OGC:WMS" or \
"service=wms&request=getcapabilities" in urllib.unquote(ref["url"]).lower():
print "WMS:%s" % ref["url"]
known_types["WMS"] = ref["url"]
if ref["scheme"] == "OGC:WFS" or \
"service=wfs&request=getcapabilities" in urllib.unquote(ref["url"]).lower():
print "WFS:%s" % ref["url"]
known_types["WFS"] = ref["url"]
if ref["scheme"] == "ESRI":
print "ESRI:%s" % ref["url"]
known_types["REST"] = ref["url"]
if "WMS" in known_types:
type = "OWS" if "WFS" in known_types else "WMS"
try:
_process_wms_service(
known_types["WMS"], type, None, None, parent=csw)
except Exception, e:
logger.error("Error registering %s:%s" %
(known_types["WMS"], str(e)))
elif "REST" in known_types:
try:
_register_arcgis_url(ref["url"], None, None, None, parent=csw)
except Exception, e:
logger.error("Error registering %s:%s" %
(known_types["REST"], str(e)))
flag = 1
stop = 0
def _register_arcgis_url(url, name, username, password, owner=None, parent=None):
"""
Register an ArcGIS REST service URL
"""
# http://maps1.arcgisonline.com/ArcGIS/rest/services
baseurl = _clean_url(url)
logger.info("Fetching the ESRI url " + url)
if re.search("\/MapServer\/*(f=json)*", baseurl):
# This is a MapService
try:
arcserver = ArcMapService(baseurl)
except Exception, e:
logger.exception(e)
if isinstance(arcserver, ArcMapService) and arcserver.spatialReference.wkid in [
102100, 102113, 3785, 3857, 900913]:
return_json = [_process_arcgis_service(arcserver, name, owner=owner, parent=parent)]
else:
return_json = [{'msg': _("Could not find any layers in a compatible projection.")}]
else:
# This is a Folder
arcserver = ArcFolder(baseurl)
return_json = _process_arcgis_folder(
arcserver, name, services=[], owner=owner, parent=parent)
return HttpResponse(json.dumps(return_json),
content_type='application/json',
status=200)
def _register_arcgis_layers(service, arc=None):
"""
Register layers from an ArcGIS REST service
"""
arc = arc or ArcMapService(service.base_url)
logger.info("Registering layers for %s" % service.base_url)
for layer in arc.layers:
valid_name = slugify(layer.name)
count = 0
layer_uuid = str(uuid.uuid1())
bbox = [layer.extent.xmin, layer.extent.ymin,
layer.extent.xmax, layer.extent.ymax]
typename = layer.id
existing_layer = None
logger.info("Registering layer %s" % layer.name)
try:
existing_layer = Layer.objects.get(
typename=typename, service=service)
except Layer.DoesNotExist:
pass
llbbox = mercator_to_llbbox(bbox)
if existing_layer is None:
# Need to check if layer already exists??
logger.info("Importing layer %s" % layer.name)
saved_layer, created = Layer.objects.get_or_create(
typename=typename,
service=service,
defaults=dict(
name=valid_name,
store=service.name, # ??
storeType="remoteStore",
workspace="remoteWorkspace",
title=layer.name,
abstract=layer._json_struct[
'description'] or _("Not provided"),
uuid=layer_uuid,
owner=None,
srid="EPSG:%s" % layer.extent.spatialReference.wkid,
bbox_x0=llbbox[0],
bbox_x1=llbbox[2],
bbox_y0=llbbox[1],
bbox_y1=llbbox[3],
)
)
saved_layer.set_default_permissions()
saved_layer.save()
service_layer, created = ServiceLayer.objects.get_or_create(
service=service,
typename=layer.id
)
service_layer.layer = saved_layer
service_layer.title = layer.name,
service_layer.description = saved_layer.abstract,
service_layer.styles = None
service_layer.save()
create_arcgis_links(saved_layer)
count += 1
message = "%d Layers Registered" % count
return_dict = {'status': 'ok', 'msg': message}
return return_dict
def _process_arcgis_service(arcserver, name, owner=None, parent=None):
"""
Create a Service model instance for an ArcGIS REST service
"""
arc_url = _clean_url(arcserver.url)
services = Service.objects.filter(base_url=arc_url)
if services.count() > 0:
service = services[0]
return_dict = [{
'status': 'ok',
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'msg': 'This is an existing Service'
}]
return return_dict
name = _get_valid_name(arcserver.mapName or arc_url) if not name else name
service = Service.objects.create(base_url=arc_url, name=name,
type='REST',
method='I',
title=arcserver.mapName,
abstract=arcserver.serviceDescription,
online_resource=arc_url,
owner=owner,
parent=parent)
service.set_default_permissions()
available_resources = []
for layer in list(arcserver.layers):
available_resources.append([layer.id, layer.name])
if settings.USE_QUEUE:
# Create a layer import job
WebServiceHarvestLayersJob.objects.get_or_create(service=service)
else:
_register_arcgis_layers(service, arc=arcserver)
message = "Service %s registered" % service.name
return_dict = {'status': 'ok',
'msg': message,
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'available_layers': available_resources
}
return return_dict
def _process_arcgis_folder(folder, name, services=[], owner=None, parent=None):
"""
Iterate through folders and services in an ArcGIS REST service folder
"""
for service in folder.services:
return_dict = {}
if not isinstance(service, ArcMapService):
return_dict[
'msg'] = 'Service could not be identified as an ArcMapService, URL: %s' % service.url
logger.debug(return_dict['msg'])
else:
try:
if service.spatialReference.wkid in [102100, 102113, 3785, 3857, 900913]:
return_dict = _process_arcgis_service(
service, name, owner, parent=parent)
else:
return_dict['msg'] = _("Could not find any layers in a compatible projection: \
The spatial id was: %(srs)s and the url %(url)s" % {'srs': service.spatialReference.wkid,
'url': service.url})
logger.debug(return_dict['msg'])
except Exception as e:
logger.exception('Error uploading from the service: ' + service.url + ' ' + str(e))
services.append(return_dict)
for subfolder in folder.folders:
_process_arcgis_folder(subfolder, name, services, owner)
return services
def _register_ogp_service(url, owner=None):
"""
Register OpenGeoPortal as a service
"""
services = Service.objects.filter(base_url=url)
if services.count() > 0:
service = services[0]
return_dict = [{
'status': 'ok',
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title,
'msg': 'This is an existing Service'
}]
return return_dict
service = Service.objects.create(base_url=url,
type="OGP",
method='H',
name="OpenGeoPortal",
title="OpenGeoPortal",
abstract=OGP_ABSTRACT,
owner=owner)
service.set_default_permissions()
if settings.USE_QUEUE:
# Create a layer import job
WebServiceHarvestLayersJob.objects.get_or_create(service=service)
else:
_harvest_ogp_layers(service, owner=owner)
message = "Service %s registered" % service.name
return_dict = [{'status': 'ok',
'msg': message,
'service_id': service.pk,
'service_name': service.name,
'service_title': service.title
}]
return HttpResponse(json.dumps(return_dict),
content_type='application/json',
status=200)
def _harvest_ogp_layers(service, maxrecords=10, start=0, totalrecords=float('inf'), owner=None, institution=None):
"""
Query OpenGeoPortal's solr instance for layers.
"""
query = "?q=_val_:%22sum(sum(product(9.0,map(sum(map(MinX,-180.0,180,1,0)," + \
"map(MaxX,-180.0,180.0,1,0),map(MinY,-90.0,90.0,1,0),map(MaxY,-90.0,90.0,1,0)),4,4,1,0))),0,0)%22" + \
"&debugQuery=false&&fq={!frange+l%3D1+u%3D10}product(2.0,map(sum(map(sub(abs(sub(0,CenterX))," + \
"sum(171.03515625,HalfWidth)),0,400000,1,0),map(sub(abs(sub(0,CenterY)),sum(75.84516854027,HalfHeight))" + \
",0,400000,1,0)),0,0,1,0))&wt=json&fl=Name,CollectionId,Institution,Access,DataType,Availability," + \
"LayerDisplayName,Publisher,GeoReferenced,Originator,Location,MinX,MaxX,MinY,MaxY,ContentDate,LayerId," + \
"score,WorkspaceName,SrsProjectionCode&sort=score+desc&fq=DataType%3APoint+OR+DataType%3ALine+OR+" + \
"DataType%3APolygon+OR+DataType%3ARaster+OR+DataType%3APaper+Map&fq=Access:Public"
if institution:
query += "&fq=%s" % urllib.urlencode(institution)
fullurl = service.base_url + query + \
("&rows=%d&start=%d" % (maxrecords, start))
response = urllib.urlopen(fullurl).read()
json_response = json.loads(response)
process_ogp_results(service, json_response)
max = min(json_response["response"]["numFound"], totalrecords)
while start < max:
start = start + maxrecords
_harvest_ogp_layers(
service, maxrecords, start, totalrecords=totalrecords, owner=owner, institution=institution)
def process_ogp_results(ogp, result_json, owner=None):
"""
Create WMS services and layers from OGP results
"""
for doc in result_json["response"]["docs"]:
try:
locations = json.loads(doc["Location"])
except:
continue
if "tilecache" in locations:
service_url = locations["tilecache"][0]
service_type = "WMS"
elif "wms" in locations:
service_url = locations["wms"][0]
if "wfs" in locations:
service_type = "OWS"
else:
service_type = "WMS"
else:
pass
"""
Harvard Geospatial Library is a special case, requires an activation request
to prepare the layer before WMS requests can be successful.
"""
if doc["Institution"] == "Harvard":
service_type = "HGL"
service = None
try:
service = Service.objects.get(base_url=service_url)
except Service.DoesNotExist:
if service_type in ["WMS", "OWS", "HGL"]:
try:
response = _process_wms_service(
service_url, service_type, None, None, parent=ogp)
r_json = json.loads(response.content)
service = Service.objects.get(id=r_json[0]["service_id"])
except Exception, e:
print str(e)
if service:
typename = doc["Name"]
if service_type == "HGL":
typename = typename.replace("SDE.", "")
elif doc["WorkspaceName"]:
typename = doc["WorkspaceName"] + ":" + typename
bbox = (
float(doc['MinX']),
float(doc['MinY']),
float(doc['MaxX']),
float(doc['MaxY']),
)
layer_uuid = str(uuid.uuid1())
saved_layer, created = Layer.objects.get_or_create(typename=typename,
service=service,
defaults=dict(
name=doc["Name"],
uuid=layer_uuid,
store=service.name,
storeType="remoteStore",
workspace=doc["WorkspaceName"],
title=doc["LayerDisplayName"],
owner=None,
# Assumption
srid="EPSG:900913",
bbox=list(bbox),
geographic_bounding_box=bbox_to_wkt(
str(bbox[0]), str(bbox[1]),
str(bbox[2]), str(bbox[3]), srid="EPSG:4326")
)
)
saved_layer.set_default_permissions()
saved_layer.save()
service_layer, created = ServiceLayer.objects.get_or_create(service=service, typename=typename,
defaults=dict(
title=doc[
"LayerDisplayName"]
)
)
if service_layer.layer is None:
service_layer.layer = saved_layer
service_layer.save()
def service_detail(request, service_id):
'''
This view shows the details of a service
'''
service = get_object_or_404(Service, pk=service_id)
layer_list = service.layer_set.all()
service_list = service.service_set.all()
# Show 25 services per page
service_paginator = Paginator(service_list, 25)
layer_paginator = Paginator(layer_list, 25) # Show 25 services per page
page = request.GET.get('page')
try:
layers = layer_paginator.page(page)
except PageNotAnInteger:
# If page is not an integer, deliver first page.
layers = layer_paginator.page(1)
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of results.
layers = layer_paginator.page(layer_paginator.num_pages)
try:
services = service_paginator.page(page)
except PageNotAnInteger:
# If page is not an integer, deliver first page.
services = service_paginator.page(1)
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of results.
services = service_paginator.page(service_paginator.num_pages)
return render_to_response("services/service_detail.html", RequestContext(request, {
'service': service,
'layers': layers,
'services': services,
'permissions_json': _perms_info_json(service)
}))
@login_required
def edit_service(request, service_id):
"""
Edit an existing Service
"""
service_obj = get_object_or_404(Service, pk=service_id)
if request.method == "POST":
service_form = ServiceForm(
request.POST, instance=service_obj, prefix="service")
if service_form.is_valid():
service_obj = service_form.save(commit=False)
service_obj.keywords.clear()
service_obj.keywords.add(*service_form.cleaned_data['keywords'])
service_obj.save()
return HttpResponseRedirect(service_obj.get_absolute_url())
else:
service_form = ServiceForm(instance=service_obj, prefix="service")
return render_to_response("services/service_edit.html", RequestContext(request, {
"service": service_obj,
"service_form": service_form
}))
def update_layers(service):
"""
Import/update layers for an existing service
"""
if service.method == "C":
_register_cascaded_layers(service)
elif service.type in ["WMS", "OWS"]:
_register_indexed_layers(service)
elif service.type == "REST":
_register_arcgis_layers(service)
elif service.type == "CSW":
_harvest_csw(service)
elif service.type == "OGP":
_harvest_ogp_layers(service, 25)
@login_required
def remove_service(request, service_id):
"""
Delete a service, and its constituent layers.
"""
service_obj = get_object_or_404(Service, pk=service_id)
if not request.user.has_perm('maps.delete_service', obj=service_obj):
return HttpResponse(loader.render_to_string('401.html',
RequestContext(request, {
'error_message':
_("You are not permitted to remove this service.")
})), status=401)
if request.method == 'GET':
return render_to_response("services/service_remove.html", RequestContext(request, {
"service": service_obj
}))
elif request.method == 'POST':
# Retrieve this service's workspace from the GeoServer catalog.
cat = Catalog(settings.OGC_SERVER['default']['LOCATION'] + "rest",
_user, _password)
workspace = cat.get_workspace(service_obj.name)
# Delete nested workspace structure from GeoServer for this service.
if workspace:
for store in cat.get_stores(workspace):
for resource in cat.get_resources(store):
for layer in cat.get_layers(resource):
cat.delete(layer)
cat.delete(resource)
cat.delete(store)
cat.delete(workspace)
# Delete service from GeoNode.
service_obj.delete()
return HttpResponseRedirect(reverse("services"))
@login_required
def ajax_service_permissions(request, service_id):
service = get_object_or_404(Service, pk=service_id)
if not request.user.has_perm("maps.change_service_permissions", obj=service):
return HttpResponse(
'You are not allowed to change permissions for this service',
status=401,
content_type='text/plain'
)
if not request.method == 'POST':
return HttpResponse(
'You must use POST for editing service permissions',
status=405,
content_type='text/plain'
)
spec = json.loads(request.body)
service.set_permissions(spec)
return HttpResponse(
"Permissions updated",
status=200,
content_type='text/plain')
def create_arcgis_links(instance):
kmz_link = instance.ows_url + '?f=kmz'
Link.objects.get_or_create(resource=instance.get_self_resource(),
url=kmz_link,
defaults=dict(
extension='kml',
name="View in Google Earth",
mime='text/xml',
link_type='data',
)
)
# Create legend.
legend_url = instance.ows_url + 'legend?f=json'
Link.objects.get_or_create(resource=instance.get_self_resource(),
url=legend_url,
defaults=dict(
extension='json',
name=_('Legend'),
url=legend_url,
mime='application/json',
link_type='json',
)
)
# Create thumbnails.
bbox = urllib.pathname2url('%s,%s,%s,%s' % (instance.bbox_x0, instance.bbox_y0, instance.bbox_x1, instance.bbox_y1))
thumbnail_remote_url = instance.ows_url + 'export?LAYERS=show%3A' + str(instance.typename) + \
'&TRANSPARENT=true&FORMAT=png&BBOX=' + bbox + '&SIZE=200%2C150&F=image&BBOXSR=4326&IMAGESR=3857'
create_thumbnail(instance, thumbnail_remote_url)
|
h3biomed/ansible-modules-extras | refs/heads/devel | cloud/ovirt/__init__.py | 12133432 | |
ETegro/ETConf | refs/heads/master | sessioner/__init__.py | 12133432 | |
Argon-Zhou/django | refs/heads/master | tests/choices/__init__.py | 12133432 | |
flumotion-mirror/flumotion | refs/heads/master | flumotion/component/producers/checks.py | 3 | # -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
# Flumotion - a streaming media server
# Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L.
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# All rights reserved.
#
# This file may be distributed and/or modified under the terms of
# the GNU Lesser General Public License version 2.1 as published by
# the Free Software Foundation.
# This file is distributed without any warranty; without even the implied
# warranty of merchantability or fitness for a particular purpose.
# See "LICENSE.LGPL" in the source distribution for more information.
#
# Headers in this file shall remain intact.
from twisted.internet import defer
from flumotion.common import messages
from flumotion.common.i18n import N_, gettexter
__version__ = "$Rev$"
T_ = gettexter()
def get_gst_version(gst):
if hasattr(gst, 'get_gst_version'):
return gst.get_gst_version()
elif hasattr(gst, 'version'):
return gst.version()
else:
return gst.gst_version + (0, )
def get_pygst_version(gst):
if hasattr(gst, 'get_pygst_version'):
return gst.get_pygst_version()
else:
return gst.pygst_version + (0, )
def checkTicket347():
"""
Check for a recent enough PyGTK to not leak python integers in message
processing (mostly affects soundcard, firewire)
"""
result = messages.Result()
import pygtk
pygtk.require('2.0')
import gobject
# Really, we want to check for pygobject_version, but that doesn't exist in
# all versions of pygtk, and this check is sufficient.
(major, minor, nano) = gobject.pygtk_version
if (major, minor, nano) < (2, 8, 6):
m = messages.Warning(T_(
N_("Version %d.%d.%d of the PyGTK library contains "
"a memory leak.\n"),
major, minor, nano),
mid='ticket-347')
m.add(T_(N_("The Soundcard and Firewire sources may leak a lot of "
"memory as a result, and would need to be restarted "
"frequently.\n")))
m.add(T_(N_("Please upgrade '%s' to version %s or later."),
'pygtk', '2.8.6'))
result.add(m)
result.succeed(None)
return defer.succeed(result)
def checkTicket348():
result = messages.Result()
import pygst
pygst.require('0.10')
import gst
(major, minor, nano) = gst.pygst_version
if (major, minor, nano) < (0, 10, 3):
m = messages.Warning(T_(
N_("Version %d.%d.%d of the gst-python library contains "
"a large memory leak.\n"),
major, minor, nano),
mid='ticket-348')
m.add(T_(N_("The Soundcard and Firewire sources may leak a lot of "
"memory as a result, and need to be restarted frequently.\n")))
m.add(T_(N_("Please upgrade '%s' to version %s or later."),
'gst-python', '0.10.3'))
result.add(m)
result.succeed(None)
return defer.succeed(result)
def checkTicket349():
result = messages.Result()
import pygst
pygst.require('0.10')
import gst
if get_gst_version(gst) < (0, 10, 4, 1):
major, minor, micro, nano = get_gst_version(gst)
m = messages.Error(T_(
N_("Version %d.%d.%d of the GStreamer library is too old.\n"),
major, minor, micro),
mid='ticket-349')
m.add(T_(N_("The '%s' component needs a newer version of '%s'.\n"),
'looper', 'gstreamer'))
m.add(T_(N_("Please upgrade '%s' to version %s or later."),
'gstreamer', '0.10.5'))
result.add(m)
if get_pygst_version(gst) < (0, 10, 3, 1):
major, minor, micro, nano = get_pygst_version(gst)
m = messages.Error(T_(
N_("Version %d.%d.%d of the gst-python library is too old.\n"),
major, minor, micro),
mid='ticket-349')
m.add(T_(N_("The '%s' component needs a newer version of '%s'.\n"),
'looper', 'gst-python'))
m.add(T_(N_("Please upgrade '%s' to version %s or later."),
'gst-python', '0.10.4'))
result.add(m)
result.succeed(None)
return defer.succeed(result)
|
SohKai/ChronoLogger | refs/heads/master | web/flask/lib/python2.7/site-packages/sqlalchemy/dialects/sybase/__init__.py | 34 | # sybase/__init__.py
# Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from sqlalchemy.dialects.sybase import base, pysybase, pyodbc
from base import CHAR, VARCHAR, TIME, NCHAR, NVARCHAR,\
TEXT,DATE,DATETIME, FLOAT, NUMERIC,\
BIGINT,INT, INTEGER, SMALLINT, BINARY,\
VARBINARY,UNITEXT,UNICHAR,UNIVARCHAR,\
IMAGE,BIT,MONEY,SMALLMONEY,TINYINT
# default dialect
base.dialect = pyodbc.dialect
__all__ = (
'CHAR', 'VARCHAR', 'TIME', 'NCHAR', 'NVARCHAR',
'TEXT','DATE','DATETIME', 'FLOAT', 'NUMERIC',
'BIGINT','INT', 'INTEGER', 'SMALLINT', 'BINARY',
'VARBINARY','UNITEXT','UNICHAR','UNIVARCHAR',
'IMAGE','BIT','MONEY','SMALLMONEY','TINYINT',
'dialect'
)
|
williamluke4/Examenable | refs/heads/master | node_modules/sitemap/env/src/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py | 2736 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Visual Studio project reader/writer."""
import gyp.common
import gyp.easy_xml as easy_xml
#------------------------------------------------------------------------------
class Tool(object):
"""Visual Studio tool."""
def __init__(self, name, attrs=None):
"""Initializes the tool.
Args:
name: Tool name.
attrs: Dict of tool attributes; may be None.
"""
self._attrs = attrs or {}
self._attrs['Name'] = name
def _GetSpecification(self):
"""Creates an element for the tool.
Returns:
A new xml.dom.Element for the tool.
"""
return ['Tool', self._attrs]
class Filter(object):
"""Visual Studio filter - that is, a virtual folder."""
def __init__(self, name, contents=None):
"""Initializes the folder.
Args:
name: Filter (folder) name.
contents: List of filenames and/or Filter objects contained.
"""
self.name = name
self.contents = list(contents or [])
#------------------------------------------------------------------------------
class Writer(object):
"""Visual Studio XML project writer."""
def __init__(self, project_path, version, name, guid=None, platforms=None):
"""Initializes the project.
Args:
project_path: Path to the project file.
version: Format version to emit.
name: Name of the project.
guid: GUID to use for project, if not None.
platforms: Array of string, the supported platforms. If null, ['Win32']
"""
self.project_path = project_path
self.version = version
self.name = name
self.guid = guid
# Default to Win32 for platforms.
if not platforms:
platforms = ['Win32']
# Initialize the specifications of the various sections.
self.platform_section = ['Platforms']
for platform in platforms:
self.platform_section.append(['Platform', {'Name': platform}])
self.tool_files_section = ['ToolFiles']
self.configurations_section = ['Configurations']
self.files_section = ['Files']
# Keep a dict keyed on filename to speed up access.
self.files_dict = dict()
def AddToolFile(self, path):
"""Adds a tool file to the project.
Args:
path: Relative path from project to tool file.
"""
self.tool_files_section.append(['ToolFile', {'RelativePath': path}])
def _GetSpecForConfiguration(self, config_type, config_name, attrs, tools):
"""Returns the specification for a configuration.
Args:
config_type: Type of configuration node.
config_name: Configuration name.
attrs: Dict of configuration attributes; may be None.
tools: List of tools (strings or Tool objects); may be None.
Returns:
"""
# Handle defaults
if not attrs:
attrs = {}
if not tools:
tools = []
# Add configuration node and its attributes
node_attrs = attrs.copy()
node_attrs['Name'] = config_name
specification = [config_type, node_attrs]
# Add tool nodes and their attributes
if tools:
for t in tools:
if isinstance(t, Tool):
specification.append(t._GetSpecification())
else:
specification.append(Tool(t)._GetSpecification())
return specification
def AddConfig(self, name, attrs=None, tools=None):
"""Adds a configuration to the project.
Args:
name: Configuration name.
attrs: Dict of configuration attributes; may be None.
tools: List of tools (strings or Tool objects); may be None.
"""
spec = self._GetSpecForConfiguration('Configuration', name, attrs, tools)
self.configurations_section.append(spec)
def _AddFilesToNode(self, parent, files):
"""Adds files and/or filters to the parent node.
Args:
parent: Destination node
files: A list of Filter objects and/or relative paths to files.
Will call itself recursively, if the files list contains Filter objects.
"""
for f in files:
if isinstance(f, Filter):
node = ['Filter', {'Name': f.name}]
self._AddFilesToNode(node, f.contents)
else:
node = ['File', {'RelativePath': f}]
self.files_dict[f] = node
parent.append(node)
def AddFiles(self, files):
"""Adds files to the project.
Args:
files: A list of Filter objects and/or relative paths to files.
This makes a copy of the file/filter tree at the time of this call. If you
later add files to a Filter object which was passed into a previous call
to AddFiles(), it will not be reflected in this project.
"""
self._AddFilesToNode(self.files_section, files)
# TODO(rspangler) This also doesn't handle adding files to an existing
# filter. That is, it doesn't merge the trees.
def AddFileConfig(self, path, config, attrs=None, tools=None):
"""Adds a configuration to a file.
Args:
path: Relative path to the file.
config: Name of configuration to add.
attrs: Dict of configuration attributes; may be None.
tools: List of tools (strings or Tool objects); may be None.
Raises:
ValueError: Relative path does not match any file added via AddFiles().
"""
# Find the file node with the right relative path
parent = self.files_dict.get(path)
if not parent:
raise ValueError('AddFileConfig: file "%s" not in project.' % path)
# Add the config to the file node
spec = self._GetSpecForConfiguration('FileConfiguration', config, attrs,
tools)
parent.append(spec)
def WriteIfChanged(self):
"""Writes the project file."""
# First create XML content definition
content = [
'VisualStudioProject',
{'ProjectType': 'Visual C++',
'Version': self.version.ProjectVersion(),
'Name': self.name,
'ProjectGUID': self.guid,
'RootNamespace': self.name,
'Keyword': 'Win32Proj'
},
self.platform_section,
self.tool_files_section,
self.configurations_section,
['References'], # empty section
self.files_section,
['Globals'] # empty section
]
easy_xml.WriteXmlIfChanged(content, self.project_path,
encoding="Windows-1252")
|
benpatterson/edx-platform | refs/heads/master | common/djangoapps/enrollment/tests/fake_data_api.py | 104 | """
A Fake Data API for testing purposes.
"""
import copy
import datetime
_DEFAULT_FAKE_MODE = {
"slug": "honor",
"name": "Honor Code Certificate",
"min_price": 0,
"suggested_prices": "",
"currency": "usd",
"expiration_datetime": None,
"description": None
}
_ENROLLMENTS = []
_COURSES = []
_ENROLLMENT_ATTRIBUTES = []
# pylint: disable=unused-argument
def get_course_enrollments(student_id):
"""Stubbed out Enrollment data request."""
return _ENROLLMENTS
def get_course_enrollment(student_id, course_id):
"""Stubbed out Enrollment data request."""
return _get_fake_enrollment(student_id, course_id)
def create_course_enrollment(student_id, course_id, mode='honor', is_active=True):
"""Stubbed out Enrollment creation request. """
return add_enrollment(student_id, course_id, mode=mode, is_active=is_active)
def update_course_enrollment(student_id, course_id, mode=None, is_active=None):
"""Stubbed out Enrollment data request."""
enrollment = _get_fake_enrollment(student_id, course_id)
if enrollment and mode is not None:
enrollment['mode'] = mode
if enrollment and is_active is not None:
enrollment['is_active'] = is_active
return enrollment
def get_course_enrollment_info(course_id, include_expired=False):
"""Stubbed out Enrollment data request."""
return _get_fake_course_info(course_id)
def _get_fake_enrollment(student_id, course_id):
"""Get an enrollment from the enrollments array."""
for enrollment in _ENROLLMENTS:
if student_id == enrollment['student'] and course_id == enrollment['course']['course_id']:
return enrollment
def _get_fake_course_info(course_id):
"""Get a course from the courses array."""
for course in _COURSES:
if course_id == course['course_id']:
return course
def add_enrollment(student_id, course_id, is_active=True, mode='honor'):
"""Append an enrollment to the enrollments array."""
enrollment = {
"created": datetime.datetime.now(),
"mode": mode,
"is_active": is_active,
"course": _get_fake_course_info(course_id),
"student": student_id
}
_ENROLLMENTS.append(enrollment)
return enrollment
# pylint: disable=unused-argument
def add_or_update_enrollment_attr(user_id, course_id, attributes):
"""Add or update enrollment attribute array"""
for attribute in attributes:
_ENROLLMENT_ATTRIBUTES.append({
'namespace': attribute['namespace'],
'name': attribute['name'],
'value': attribute['value']
})
# pylint: disable=unused-argument
def get_enrollment_attributes(user_id, course_id):
"""Retrieve enrollment attribute array"""
return _ENROLLMENT_ATTRIBUTES
def add_course(course_id, enrollment_start=None, enrollment_end=None, invite_only=False, course_modes=None):
"""Append course to the courses array."""
course_info = {
"course_id": course_id,
"enrollment_end": enrollment_end,
"course_modes": [],
"enrollment_start": enrollment_start,
"invite_only": invite_only,
}
if not course_modes:
course_info['course_modes'].append(_DEFAULT_FAKE_MODE)
else:
for mode in course_modes:
new_mode = copy.deepcopy(_DEFAULT_FAKE_MODE)
new_mode['slug'] = mode
course_info['course_modes'].append(new_mode)
_COURSES.append(course_info)
def reset():
"""Set the enrollments and courses arrays to be empty."""
global _COURSES # pylint: disable=global-statement
_COURSES = []
global _ENROLLMENTS # pylint: disable=global-statement
_ENROLLMENTS = []
|
aajanki/youtube-dl | refs/heads/master | youtube_dl/extractor/udn.py | 10 | # coding: utf-8
from __future__ import unicode_literals
import json
from .common import InfoExtractor
from ..utils import (
js_to_json,
ExtractorError,
)
from ..compat import compat_urlparse
class UDNEmbedIE(InfoExtractor):
_VALID_URL = r'https?://video\.udn\.com/(?:embed|play)/news/(?P<id>\d+)'
_TESTS = [{
'url': 'http://video.udn.com/embed/news/300040',
'md5': 'de06b4c90b042c128395a88f0384817e',
'info_dict': {
'id': '300040',
'ext': 'mp4',
'title': '生物老師男變女 全校挺"做自己"',
'thumbnail': 're:^https?://.*\.jpg$',
}
}, {
'url': 'https://video.udn.com/embed/news/300040',
'only_matching': True,
}, {
# From https://video.udn.com/news/303776
'url': 'https://video.udn.com/play/news/303776',
'only_matching': True,
}]
def _real_extract(self, url):
video_id = self._match_id(url)
page = self._download_webpage(url, video_id)
options = json.loads(js_to_json(self._html_search_regex(
r'var options\s*=\s*([^;]+);', page, 'video urls dictionary')))
video_urls = options['video']
if video_urls.get('youtube'):
return self.url_result(video_urls.get('youtube'), 'Youtube')
try:
del video_urls['youtube']
except KeyError:
pass
formats = [{
'url': self._download_webpage(
compat_urlparse.urljoin(url, api_url), video_id,
'retrieve url for %s video' % video_type),
'format_id': video_type,
'preference': 0 if video_type == 'mp4' else -1,
} for video_type, api_url in video_urls.items() if api_url]
if not formats:
raise ExtractorError('No videos found', expected=True)
self._sort_formats(formats)
thumbnail = None
if options.get('gallery') and len(options['gallery']):
thumbnail = options['gallery'][0].get('original')
return {
'id': video_id,
'formats': formats,
'title': options['title'],
'thumbnail': thumbnail
}
|
akosyakov/intellij-community | refs/heads/master | python/lib/Lib/site-packages/django/utils/regex_helper.py | 361 | """
Functions for reversing a regular expression (used in reverse URL resolving).
Used internally by Django and not intended for external use.
This is not, and is not intended to be, a complete reg-exp decompiler. It
should be good enough for a large class of URLS, however.
"""
# Mapping of an escape character to a representative of that class. So, e.g.,
# "\w" is replaced by "x" in a reverse URL. A value of None means to ignore
# this sequence. Any missing key is mapped to itself.
ESCAPE_MAPPINGS = {
"A": None,
"b": None,
"B": None,
"d": u"0",
"D": u"x",
"s": u" ",
"S": u"x",
"w": u"x",
"W": u"!",
"Z": None,
}
class Choice(list):
"""
Used to represent multiple possibilities at this point in a pattern string.
We use a distinguished type, rather than a list, so that the usage in the
code is clear.
"""
class Group(list):
"""
Used to represent a capturing group in the pattern string.
"""
class NonCapture(list):
"""
Used to represent a non-capturing group in the pattern string.
"""
def normalize(pattern):
"""
Given a reg-exp pattern, normalizes it to a list of forms that suffice for
reverse matching. This does the following:
(1) For any repeating sections, keeps the minimum number of occurrences
permitted (this means zero for optional groups).
(2) If an optional group includes parameters, include one occurrence of
that group (along with the zero occurrence case from step (1)).
(3) Select the first (essentially an arbitrary) element from any character
class. Select an arbitrary character for any unordered class (e.g. '.'
or '\w') in the pattern.
(5) Ignore comments and any of the reg-exp flags that won't change
what we construct ("iLmsu"). "(?x)" is an error, however.
(6) Raise an error on all other non-capturing (?...) forms (e.g.
look-ahead and look-behind matches) and any disjunctive ('|')
constructs.
Django's URLs for forward resolving are either all positional arguments or
all keyword arguments. That is assumed here, as well. Although reverse
resolving can be done using positional args when keyword args are
specified, the two cannot be mixed in the same reverse() call.
"""
# Do a linear scan to work out the special features of this pattern. The
# idea is that we scan once here and collect all the information we need to
# make future decisions.
result = []
non_capturing_groups = []
consume_next = True
pattern_iter = next_char(iter(pattern))
num_args = 0
# A "while" loop is used here because later on we need to be able to peek
# at the next character and possibly go around without consuming another
# one at the top of the loop.
try:
ch, escaped = pattern_iter.next()
except StopIteration:
return zip([u''], [[]])
try:
while True:
if escaped:
result.append(ch)
elif ch == '.':
# Replace "any character" with an arbitrary representative.
result.append(u".")
elif ch == '|':
# FIXME: One day we'll should do this, but not in 1.0.
raise NotImplementedError
elif ch == "^":
pass
elif ch == '$':
break
elif ch == ')':
# This can only be the end of a non-capturing group, since all
# other unescaped parentheses are handled by the grouping
# section later (and the full group is handled there).
#
# We regroup everything inside the capturing group so that it
# can be quantified, if necessary.
start = non_capturing_groups.pop()
inner = NonCapture(result[start:])
result = result[:start] + [inner]
elif ch == '[':
# Replace ranges with the first character in the range.
ch, escaped = pattern_iter.next()
result.append(ch)
ch, escaped = pattern_iter.next()
while escaped or ch != ']':
ch, escaped = pattern_iter.next()
elif ch == '(':
# Some kind of group.
ch, escaped = pattern_iter.next()
if ch != '?' or escaped:
# A positional group
name = "_%d" % num_args
num_args += 1
result.append(Group(((u"%%(%s)s" % name), name)))
walk_to_end(ch, pattern_iter)
else:
ch, escaped = pattern_iter.next()
if ch in "iLmsu#":
# All of these are ignorable. Walk to the end of the
# group.
walk_to_end(ch, pattern_iter)
elif ch == ':':
# Non-capturing group
non_capturing_groups.append(len(result))
elif ch != 'P':
# Anything else, other than a named group, is something
# we cannot reverse.
raise ValueError("Non-reversible reg-exp portion: '(?%s'" % ch)
else:
ch, escaped = pattern_iter.next()
if ch != '<':
raise ValueError("Non-reversible reg-exp portion: '(?P%s'" % ch)
# We are in a named capturing group. Extra the name and
# then skip to the end.
name = []
ch, escaped = pattern_iter.next()
while ch != '>':
name.append(ch)
ch, escaped = pattern_iter.next()
param = ''.join(name)
result.append(Group(((u"%%(%s)s" % param), param)))
walk_to_end(ch, pattern_iter)
elif ch in "*?+{":
# Quanitifers affect the previous item in the result list.
count, ch = get_quantifier(ch, pattern_iter)
if ch:
# We had to look ahead, but it wasn't need to compute the
# quanitifer, so use this character next time around the
# main loop.
consume_next = False
if count == 0:
if contains(result[-1], Group):
# If we are quantifying a capturing group (or
# something containing such a group) and the minimum is
# zero, we must also handle the case of one occurrence
# being present. All the quantifiers (except {0,0},
# which we conveniently ignore) that have a 0 minimum
# also allow a single occurrence.
result[-1] = Choice([None, result[-1]])
else:
result.pop()
elif count > 1:
result.extend([result[-1]] * (count - 1))
else:
# Anything else is a literal.
result.append(ch)
if consume_next:
ch, escaped = pattern_iter.next()
else:
consume_next = True
except StopIteration:
pass
except NotImplementedError:
# A case of using the disjunctive form. No results for you!
return zip([u''], [[]])
return zip(*flatten_result(result))
def next_char(input_iter):
"""
An iterator that yields the next character from "pattern_iter", respecting
escape sequences. An escaped character is replaced by a representative of
its class (e.g. \w -> "x"). If the escaped character is one that is
skipped, it is not returned (the next character is returned instead).
Yields the next character, along with a boolean indicating whether it is a
raw (unescaped) character or not.
"""
for ch in input_iter:
if ch != '\\':
yield ch, False
continue
ch = input_iter.next()
representative = ESCAPE_MAPPINGS.get(ch, ch)
if representative is None:
continue
yield representative, True
def walk_to_end(ch, input_iter):
"""
The iterator is currently inside a capturing group. We want to walk to the
close of this group, skipping over any nested groups and handling escaped
parentheses correctly.
"""
if ch == '(':
nesting = 1
else:
nesting = 0
for ch, escaped in input_iter:
if escaped:
continue
elif ch == '(':
nesting += 1
elif ch == ')':
if not nesting:
return
nesting -= 1
def get_quantifier(ch, input_iter):
"""
Parse a quantifier from the input, where "ch" is the first character in the
quantifier.
Returns the minimum number of occurences permitted by the quantifier and
either None or the next character from the input_iter if the next character
is not part of the quantifier.
"""
if ch in '*?+':
try:
ch2, escaped = input_iter.next()
except StopIteration:
ch2 = None
if ch2 == '?':
ch2 = None
if ch == '+':
return 1, ch2
return 0, ch2
quant = []
while ch != '}':
ch, escaped = input_iter.next()
quant.append(ch)
quant = quant[:-1]
values = ''.join(quant).split(',')
# Consume the trailing '?', if necessary.
try:
ch, escaped = input_iter.next()
except StopIteration:
ch = None
if ch == '?':
ch = None
return int(values[0]), ch
def contains(source, inst):
"""
Returns True if the "source" contains an instance of "inst". False,
otherwise.
"""
if isinstance(source, inst):
return True
if isinstance(source, NonCapture):
for elt in source:
if contains(elt, inst):
return True
return False
def flatten_result(source):
"""
Turns the given source sequence into a list of reg-exp possibilities and
their arguments. Returns a list of strings and a list of argument lists.
Each of the two lists will be of the same length.
"""
if source is None:
return [u''], [[]]
if isinstance(source, Group):
if source[1] is None:
params = []
else:
params = [source[1]]
return [source[0]], [params]
result = [u'']
result_args = [[]]
pos = last = 0
for pos, elt in enumerate(source):
if isinstance(elt, basestring):
continue
piece = u''.join(source[last:pos])
if isinstance(elt, Group):
piece += elt[0]
param = elt[1]
else:
param = None
last = pos + 1
for i in range(len(result)):
result[i] += piece
if param:
result_args[i].append(param)
if isinstance(elt, (Choice, NonCapture)):
if isinstance(elt, NonCapture):
elt = [elt]
inner_result, inner_args = [], []
for item in elt:
res, args = flatten_result(item)
inner_result.extend(res)
inner_args.extend(args)
new_result = []
new_args = []
for item, args in zip(result, result_args):
for i_item, i_args in zip(inner_result, inner_args):
new_result.append(item + i_item)
new_args.append(args[:] + i_args)
result = new_result
result_args = new_args
if pos >= last:
piece = u''.join(source[last:])
for i in range(len(result)):
result[i] += piece
return result, result_args
|
hzlf/openbroadcast | refs/heads/master | website/filer/admin/imageadmin.py | 35 | #-*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
from filer import settings as filer_settings, settings
from filer.admin.fileadmin import FileAdmin
from filer.models import Image
class ImageAdminForm(forms.ModelForm):
subject_location = forms.CharField(
max_length=64, required=False,
label=_('Subject location'),
help_text=_('Location of the main subject of the scene.'))
def sidebar_image_ratio(self):
if self.instance:
# this is very important. It forces the value to be returned as a
# string and always with a "." as seperator. If the conversion
# from float to string is done in the template, the locale will
# be used and in some cases there would be a "," instead of ".".
# javascript would parse that to an integer.
return "%.6F" % self.instance.sidebar_image_ratio()
else:
return ''
class Meta:
model = Image
class Media:
css = {
#'all': (settings.MEDIA_URL + 'filer/css/focal_point.css',)
}
js = (
filer_settings.FILER_STATICMEDIA_PREFIX + 'js/raphael.js',
filer_settings.FILER_STATICMEDIA_PREFIX + 'js/focal_point.js',
)
class ImageAdmin(FileAdmin):
form = ImageAdminForm
ImageAdmin.fieldsets = ImageAdmin.build_fieldsets(
extra_main_fields=('default_alt_text', 'default_caption',),
extra_fieldsets=(
('Subject Location', {
'fields': ('subject_location',),
'classes': ('collapse',),
}),
)
)
|
Thoshh/wapad | refs/heads/master | lib/python2.7/site-packages/django/db/models/sql/query.py | 24 | """
Create SQL statements for QuerySets.
The code in here encapsulates all of the SQL construction so that QuerySets
themselves do not have to (and could be backed by things other than SQL
databases). The abstraction barrier only works one way: this module has to know
all about the internals of models in order to get the information it needs.
"""
import copy
import warnings
from collections import Counter, Iterator, Mapping, OrderedDict
from itertools import chain, count, product
from string import ascii_uppercase
from django.core.exceptions import FieldDoesNotExist, FieldError
from django.db import DEFAULT_DB_ALIAS, connections
from django.db.models.aggregates import Count
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import Col, Ref
from django.db.models.fields.related_lookups import MultiColSource
from django.db.models.query_utils import (
PathInfo, Q, check_rel_lookup_compatibility, refs_expression,
)
from django.db.models.sql.constants import (
INNER, LOUTER, ORDER_DIR, ORDER_PATTERN, QUERY_TERMS, SINGLE,
)
from django.db.models.sql.datastructures import (
BaseTable, Empty, EmptyResultSet, Join, MultiJoin,
)
from django.db.models.sql.where import (
AND, OR, ExtraWhere, NothingNode, WhereNode,
)
from django.utils import six
from django.utils.deprecation import RemovedInDjango110Warning
from django.utils.encoding import force_text
from django.utils.tree import Node
__all__ = ['Query', 'RawQuery']
def get_field_names_from_opts(opts):
return set(chain.from_iterable(
(f.name, f.attname) if f.concrete else (f.name,)
for f in opts.get_fields()
))
class RawQuery(object):
"""
A single raw SQL query
"""
def __init__(self, sql, using, params=None, context=None):
self.params = params or ()
self.sql = sql
self.using = using
self.cursor = None
# Mirror some properties of a normal query so that
# the compiler can be used to process results.
self.low_mark, self.high_mark = 0, None # Used for offset/limit
self.extra_select = {}
self.annotation_select = {}
self.context = context or {}
def clone(self, using):
return RawQuery(self.sql, using, params=self.params, context=self.context.copy())
def get_columns(self):
if self.cursor is None:
self._execute_query()
converter = connections[self.using].introspection.column_name_converter
return [converter(column_meta[0])
for column_meta in self.cursor.description]
def __iter__(self):
# Always execute a new query for a new iterator.
# This could be optimized with a cache at the expense of RAM.
self._execute_query()
if not connections[self.using].features.can_use_chunked_reads:
# If the database can't use chunked reads we need to make sure we
# evaluate the entire query up front.
result = list(self.cursor)
else:
result = self.cursor
return iter(result)
def __repr__(self):
return "<RawQuery: %s>" % self
@property
def params_type(self):
return dict if isinstance(self.params, Mapping) else tuple
def __str__(self):
return self.sql % self.params_type(self.params)
def _execute_query(self):
connection = connections[self.using]
# Adapt parameters to the database, as much as possible considering
# that the target type isn't known. See #17755.
params_type = self.params_type
adapter = connection.ops.adapt_unknown_value
if params_type is tuple:
params = tuple(adapter(val) for val in self.params)
elif params_type is dict:
params = dict((key, adapter(val)) for key, val in six.iteritems(self.params))
else:
raise RuntimeError("Unexpected params type: %s" % params_type)
self.cursor = connection.cursor()
self.cursor.execute(self.sql, params)
class Query(object):
"""
A single SQL query.
"""
alias_prefix = 'T'
subq_aliases = frozenset([alias_prefix])
query_terms = QUERY_TERMS
compiler = 'SQLCompiler'
def __init__(self, model, where=WhereNode):
self.model = model
self.alias_refcount = {}
# alias_map is the most important data structure regarding joins.
# It's used for recording which joins exist in the query and what
# types they are. The key is the alias of the joined table (possibly
# the table name) and the value is a Join-like object (see
# sql.datastructures.Join for more information).
self.alias_map = {}
# Sometimes the query contains references to aliases in outer queries (as
# a result of split_exclude). Correct alias quoting needs to know these
# aliases too.
self.external_aliases = set()
self.table_map = {} # Maps table names to list of aliases.
self.default_cols = True
self.default_ordering = True
self.standard_ordering = True
self.used_aliases = set()
self.filter_is_sticky = False
# SQL-related attributes
# Select and related select clauses are expressions to use in the
# SELECT clause of the query.
# The select is used for cases where we want to set up the select
# clause to contain other than default fields (values(), subqueries...)
# Note that annotations go to annotations dictionary.
self.select = []
self.tables = [] # Aliases in the order they are created.
self.where = where()
self.where_class = where
# The group_by attribute can have one of the following forms:
# - None: no group by at all in the query
# - A list of expressions: group by (at least) those expressions.
# String refs are also allowed for now.
# - True: group by all select fields of the model
# See compiler.get_group_by() for details.
self.group_by = None
self.order_by = []
self.low_mark, self.high_mark = 0, None # Used for offset/limit
self.distinct = False
self.distinct_fields = []
self.select_for_update = False
self.select_for_update_nowait = False
self.select_related = False
# Arbitrary limit for select_related to prevents infinite recursion.
self.max_depth = 5
# Holds the selects defined by a call to values() or values_list()
# excluding annotation_select and extra_select.
self.values_select = []
# SQL annotation-related attributes
# The _annotations will be an OrderedDict when used. Due to the cost
# of creating OrderedDict this attribute is created lazily (in
# self.annotations property).
self._annotations = None # Maps alias -> Annotation Expression
self.annotation_select_mask = None
self._annotation_select_cache = None
# These are for extensions. The contents are more or less appended
# verbatim to the appropriate clause.
# The _extra attribute is an OrderedDict, lazily created similarly to
# .annotations
self._extra = None # Maps col_alias -> (col_sql, params).
self.extra_select_mask = None
self._extra_select_cache = None
self.extra_tables = ()
self.extra_order_by = ()
# A tuple that is a set of model field names and either True, if these
# are the fields to defer, or False if these are the only fields to
# load.
self.deferred_loading = (set(), True)
self.context = {}
@property
def extra(self):
if self._extra is None:
self._extra = OrderedDict()
return self._extra
@property
def annotations(self):
if self._annotations is None:
self._annotations = OrderedDict()
return self._annotations
@property
def aggregates(self):
warnings.warn(
"The aggregates property is deprecated. Use annotations instead.",
RemovedInDjango110Warning, stacklevel=2)
return self.annotations
def __str__(self):
"""
Returns the query as a string of SQL with the parameter values
substituted in (use sql_with_params() to see the unsubstituted string).
Parameter values won't necessarily be quoted correctly, since that is
done by the database interface at execution time.
"""
sql, params = self.sql_with_params()
return sql % params
def sql_with_params(self):
"""
Returns the query as an SQL string and the parameters that will be
substituted into the query.
"""
return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
def __deepcopy__(self, memo):
result = self.clone(memo=memo)
memo[id(self)] = result
return result
def _prepare(self, field):
return self
def get_compiler(self, using=None, connection=None):
if using is None and connection is None:
raise ValueError("Need either using or connection")
if using:
connection = connections[using]
return connection.ops.compiler(self.compiler)(self, connection, using)
def get_meta(self):
"""
Returns the Options instance (the model._meta) from which to start
processing. Normally, this is self.model._meta, but it can be changed
by subclasses.
"""
return self.model._meta
def clone(self, klass=None, memo=None, **kwargs):
"""
Creates a copy of the current instance. The 'kwargs' parameter can be
used by clients to update attributes after copying has taken place.
"""
obj = Empty()
obj.__class__ = klass or self.__class__
obj.model = self.model
obj.alias_refcount = self.alias_refcount.copy()
obj.alias_map = self.alias_map.copy()
obj.external_aliases = self.external_aliases.copy()
obj.table_map = self.table_map.copy()
obj.default_cols = self.default_cols
obj.default_ordering = self.default_ordering
obj.standard_ordering = self.standard_ordering
obj.select = self.select[:]
obj.tables = self.tables[:]
obj.where = self.where.clone()
obj.where_class = self.where_class
if self.group_by is None:
obj.group_by = None
elif self.group_by is True:
obj.group_by = True
else:
obj.group_by = self.group_by[:]
obj.order_by = self.order_by[:]
obj.low_mark, obj.high_mark = self.low_mark, self.high_mark
obj.distinct = self.distinct
obj.distinct_fields = self.distinct_fields[:]
obj.select_for_update = self.select_for_update
obj.select_for_update_nowait = self.select_for_update_nowait
obj.select_related = self.select_related
obj.values_select = self.values_select[:]
obj._annotations = self._annotations.copy() if self._annotations is not None else None
if self.annotation_select_mask is None:
obj.annotation_select_mask = None
else:
obj.annotation_select_mask = self.annotation_select_mask.copy()
# _annotation_select_cache cannot be copied, as doing so breaks the
# (necessary) state in which both annotations and
# _annotation_select_cache point to the same underlying objects.
# It will get re-populated in the cloned queryset the next time it's
# used.
obj._annotation_select_cache = None
obj.max_depth = self.max_depth
obj._extra = self._extra.copy() if self._extra is not None else None
if self.extra_select_mask is None:
obj.extra_select_mask = None
else:
obj.extra_select_mask = self.extra_select_mask.copy()
if self._extra_select_cache is None:
obj._extra_select_cache = None
else:
obj._extra_select_cache = self._extra_select_cache.copy()
obj.extra_tables = self.extra_tables
obj.extra_order_by = self.extra_order_by
obj.deferred_loading = copy.copy(self.deferred_loading[0]), self.deferred_loading[1]
if self.filter_is_sticky and self.used_aliases:
obj.used_aliases = self.used_aliases.copy()
else:
obj.used_aliases = set()
obj.filter_is_sticky = False
if 'alias_prefix' in self.__dict__:
obj.alias_prefix = self.alias_prefix
if 'subq_aliases' in self.__dict__:
obj.subq_aliases = self.subq_aliases.copy()
obj.__dict__.update(kwargs)
if hasattr(obj, '_setup_query'):
obj._setup_query()
obj.context = self.context.copy()
return obj
def add_context(self, key, value):
self.context[key] = value
def get_context(self, key, default=None):
return self.context.get(key, default)
def relabeled_clone(self, change_map):
clone = self.clone()
clone.change_aliases(change_map)
return clone
def rewrite_cols(self, annotation, col_cnt):
# We must make sure the inner query has the referred columns in it.
# If we are aggregating over an annotation, then Django uses Ref()
# instances to note this. However, if we are annotating over a column
# of a related model, then it might be that column isn't part of the
# SELECT clause of the inner query, and we must manually make sure
# the column is selected. An example case is:
# .aggregate(Sum('author__awards'))
# Resolving this expression results in a join to author, but there
# is no guarantee the awards column of author is in the select clause
# of the query. Thus we must manually add the column to the inner
# query.
orig_exprs = annotation.get_source_expressions()
new_exprs = []
for expr in orig_exprs:
if isinstance(expr, Ref):
# Its already a Ref to subquery (see resolve_ref() for
# details)
new_exprs.append(expr)
elif isinstance(expr, Col):
# Reference to column. Make sure the referenced column
# is selected.
col_cnt += 1
col_alias = '__col%d' % col_cnt
self.annotations[col_alias] = expr
self.append_annotation_mask([col_alias])
new_exprs.append(Ref(col_alias, expr))
else:
# Some other expression not referencing database values
# directly. Its subexpression might contain Cols.
new_expr, col_cnt = self.rewrite_cols(expr, col_cnt)
new_exprs.append(new_expr)
annotation.set_source_expressions(new_exprs)
return annotation, col_cnt
def get_aggregation(self, using, added_aggregate_names):
"""
Returns the dictionary with the values of the existing aggregations.
"""
if not self.annotation_select:
return {}
has_limit = self.low_mark != 0 or self.high_mark is not None
has_existing_annotations = any(
annotation for alias, annotation
in self.annotations.items()
if alias not in added_aggregate_names
)
# Decide if we need to use a subquery.
#
# Existing annotations would cause incorrect results as get_aggregation()
# must produce just one result and thus must not use GROUP BY. But we
# aren't smart enough to remove the existing annotations from the
# query, so those would force us to use GROUP BY.
#
# If the query has limit or distinct, then those operations must be
# done in a subquery so that we are aggregating on the limit and/or
# distinct results instead of applying the distinct and limit after the
# aggregation.
if (isinstance(self.group_by, list) or has_limit or has_existing_annotations or
self.distinct):
from django.db.models.sql.subqueries import AggregateQuery
outer_query = AggregateQuery(self.model)
inner_query = self.clone()
inner_query.select_for_update = False
inner_query.select_related = False
if not has_limit and not self.distinct_fields:
# Queries with distinct_fields need ordering and when a limit
# is applied we must take the slice from the ordered query.
# Otherwise no need for ordering.
inner_query.clear_ordering(True)
if not inner_query.distinct:
# If the inner query uses default select and it has some
# aggregate annotations, then we must make sure the inner
# query is grouped by the main model's primary key. However,
# clearing the select clause can alter results if distinct is
# used.
if inner_query.default_cols and has_existing_annotations:
inner_query.group_by = [self.model._meta.pk.get_col(inner_query.get_initial_alias())]
inner_query.default_cols = False
relabels = {t: 'subquery' for t in inner_query.tables}
relabels[None] = 'subquery'
# Remove any aggregates marked for reduction from the subquery
# and move them to the outer AggregateQuery.
col_cnt = 0
for alias, expression in list(inner_query.annotation_select.items()):
if expression.is_summary:
expression, col_cnt = inner_query.rewrite_cols(expression, col_cnt)
outer_query.annotations[alias] = expression.relabeled_clone(relabels)
del inner_query.annotations[alias]
# Make sure the annotation_select wont use cached results.
inner_query.set_annotation_mask(inner_query.annotation_select_mask)
if inner_query.select == [] and not inner_query.default_cols and not inner_query.annotation_select_mask:
# In case of Model.objects[0:3].count(), there would be no
# field selected in the inner query, yet we must use a subquery.
# So, make sure at least one field is selected.
inner_query.select = [self.model._meta.pk.get_col(inner_query.get_initial_alias())]
try:
outer_query.add_subquery(inner_query, using)
except EmptyResultSet:
return {
alias: None
for alias in outer_query.annotation_select
}
else:
outer_query = self
self.select = []
self.default_cols = False
self._extra = {}
outer_query.clear_ordering(True)
outer_query.clear_limits()
outer_query.select_for_update = False
outer_query.select_related = False
compiler = outer_query.get_compiler(using)
result = compiler.execute_sql(SINGLE)
if result is None:
result = [None for q in outer_query.annotation_select.items()]
converters = compiler.get_converters(outer_query.annotation_select.values())
result = compiler.apply_converters(result, converters)
return {
alias: val
for (alias, annotation), val
in zip(outer_query.annotation_select.items(), result)
}
def get_count(self, using):
"""
Performs a COUNT() query using the current filter constraints.
"""
obj = self.clone()
obj.add_annotation(Count('*'), alias='__count', is_summary=True)
number = obj.get_aggregation(using, ['__count'])['__count']
if number is None:
number = 0
return number
def has_filters(self):
return self.where
def has_results(self, using):
q = self.clone()
if not q.distinct:
if q.group_by is True:
q.add_fields((f.attname for f in self.model._meta.concrete_fields), False)
q.set_group_by()
q.clear_select_clause()
q.clear_ordering(True)
q.set_limits(high=1)
compiler = q.get_compiler(using=using)
return compiler.has_results()
def combine(self, rhs, connector):
"""
Merge the 'rhs' query into the current one (with any 'rhs' effects
being applied *after* (that is, "to the right of") anything in the
current query. 'rhs' is not modified during a call to this function.
The 'connector' parameter describes how to connect filters from the
'rhs' query.
"""
assert self.model == rhs.model, \
"Cannot combine queries on two different base models."
assert self.can_filter(), \
"Cannot combine queries once a slice has been taken."
assert self.distinct == rhs.distinct, \
"Cannot combine a unique query with a non-unique query."
assert self.distinct_fields == rhs.distinct_fields, \
"Cannot combine queries with different distinct fields."
# Work out how to relabel the rhs aliases, if necessary.
change_map = {}
conjunction = (connector == AND)
# Determine which existing joins can be reused. When combining the
# query with AND we must recreate all joins for m2m filters. When
# combining with OR we can reuse joins. The reason is that in AND
# case a single row can't fulfill a condition like:
# revrel__col=1 & revrel__col=2
# But, there might be two different related rows matching this
# condition. In OR case a single True is enough, so single row is
# enough, too.
#
# Note that we will be creating duplicate joins for non-m2m joins in
# the AND case. The results will be correct but this creates too many
# joins. This is something that could be fixed later on.
reuse = set() if conjunction else set(self.tables)
# Base table must be present in the query - this is the same
# table on both sides.
self.get_initial_alias()
joinpromoter = JoinPromoter(connector, 2, False)
joinpromoter.add_votes(
j for j in self.alias_map if self.alias_map[j].join_type == INNER)
rhs_votes = set()
# Now, add the joins from rhs query into the new query (skipping base
# table).
for alias in rhs.tables[1:]:
join = rhs.alias_map[alias]
# If the left side of the join was already relabeled, use the
# updated alias.
join = join.relabeled_clone(change_map)
new_alias = self.join(join, reuse=reuse)
if join.join_type == INNER:
rhs_votes.add(new_alias)
# We can't reuse the same join again in the query. If we have two
# distinct joins for the same connection in rhs query, then the
# combined query must have two joins, too.
reuse.discard(new_alias)
if alias != new_alias:
change_map[alias] = new_alias
if not rhs.alias_refcount[alias]:
# The alias was unused in the rhs query. Unref it so that it
# will be unused in the new query, too. We have to add and
# unref the alias so that join promotion has information of
# the join type for the unused alias.
self.unref_alias(new_alias)
joinpromoter.add_votes(rhs_votes)
joinpromoter.update_join_types(self)
# Now relabel a copy of the rhs where-clause and add it to the current
# one.
w = rhs.where.clone()
w.relabel_aliases(change_map)
self.where.add(w, connector)
# Selection columns and extra extensions are those provided by 'rhs'.
self.select = []
for col in rhs.select:
self.add_select(col.relabeled_clone(change_map))
if connector == OR:
# It would be nice to be able to handle this, but the queries don't
# really make sense (or return consistent value sets). Not worth
# the extra complexity when you can write a real query instead.
if self._extra and rhs._extra:
raise ValueError("When merging querysets using 'or', you "
"cannot have extra(select=...) on both sides.")
self.extra.update(rhs.extra)
extra_select_mask = set()
if self.extra_select_mask is not None:
extra_select_mask.update(self.extra_select_mask)
if rhs.extra_select_mask is not None:
extra_select_mask.update(rhs.extra_select_mask)
if extra_select_mask:
self.set_extra_mask(extra_select_mask)
self.extra_tables += rhs.extra_tables
# Ordering uses the 'rhs' ordering, unless it has none, in which case
# the current ordering is used.
self.order_by = rhs.order_by[:] if rhs.order_by else self.order_by
self.extra_order_by = rhs.extra_order_by or self.extra_order_by
def deferred_to_data(self, target, callback):
"""
Converts the self.deferred_loading data structure to an alternate data
structure, describing the field that *will* be loaded. This is used to
compute the columns to select from the database and also by the
QuerySet class to work out which fields are being initialized on each
model. Models that have all their fields included aren't mentioned in
the result, only those that have field restrictions in place.
The "target" parameter is the instance that is populated (in place).
The "callback" is a function that is called whenever a (model, field)
pair need to be added to "target". It accepts three parameters:
"target", and the model and list of fields being added for that model.
"""
field_names, defer = self.deferred_loading
if not field_names:
return
orig_opts = self.get_meta()
seen = {}
must_include = {orig_opts.concrete_model: {orig_opts.pk}}
for field_name in field_names:
parts = field_name.split(LOOKUP_SEP)
cur_model = self.model._meta.concrete_model
opts = orig_opts
for name in parts[:-1]:
old_model = cur_model
source = opts.get_field(name)
if is_reverse_o2o(source):
cur_model = source.related_model
else:
cur_model = source.remote_field.model
opts = cur_model._meta
# Even if we're "just passing through" this model, we must add
# both the current model's pk and the related reference field
# (if it's not a reverse relation) to the things we select.
if not is_reverse_o2o(source):
must_include[old_model].add(source)
add_to_dict(must_include, cur_model, opts.pk)
field = opts.get_field(parts[-1])
is_reverse_object = field.auto_created and not field.concrete
model = field.related_model if is_reverse_object else field.model
model = model._meta.concrete_model
if model == opts.model:
model = cur_model
if not is_reverse_o2o(field):
add_to_dict(seen, model, field)
if defer:
# We need to load all fields for each model, except those that
# appear in "seen" (for all models that appear in "seen"). The only
# slight complexity here is handling fields that exist on parent
# models.
workset = {}
for model, values in six.iteritems(seen):
for field in model._meta.fields:
if field in values:
continue
m = field.model._meta.concrete_model
add_to_dict(workset, m, field)
for model, values in six.iteritems(must_include):
# If we haven't included a model in workset, we don't add the
# corresponding must_include fields for that model, since an
# empty set means "include all fields". That's why there's no
# "else" branch here.
if model in workset:
workset[model].update(values)
for model, values in six.iteritems(workset):
callback(target, model, values)
else:
for model, values in six.iteritems(must_include):
if model in seen:
seen[model].update(values)
else:
# As we've passed through this model, but not explicitly
# included any fields, we have to make sure it's mentioned
# so that only the "must include" fields are pulled in.
seen[model] = values
# Now ensure that every model in the inheritance chain is mentioned
# in the parent list. Again, it must be mentioned to ensure that
# only "must include" fields are pulled in.
for model in orig_opts.get_parent_list():
if model not in seen:
seen[model] = set()
for model, values in six.iteritems(seen):
callback(target, model, values)
def table_alias(self, table_name, create=False):
"""
Returns a table alias for the given table_name and whether this is a
new alias or not.
If 'create' is true, a new alias is always created. Otherwise, the
most recently created alias for the table (if one exists) is reused.
"""
alias_list = self.table_map.get(table_name)
if not create and alias_list:
alias = alias_list[0]
self.alias_refcount[alias] += 1
return alias, False
# Create a new alias for this table.
if alias_list:
alias = '%s%d' % (self.alias_prefix, len(self.alias_map) + 1)
alias_list.append(alias)
else:
# The first occurrence of a table uses the table name directly.
alias = table_name
self.table_map[alias] = [alias]
self.alias_refcount[alias] = 1
self.tables.append(alias)
return alias, True
def ref_alias(self, alias):
""" Increases the reference count for this alias. """
self.alias_refcount[alias] += 1
def unref_alias(self, alias, amount=1):
""" Decreases the reference count for this alias. """
self.alias_refcount[alias] -= amount
def promote_joins(self, aliases):
"""
Promotes recursively the join type of given aliases and its children to
an outer join. If 'unconditional' is False, the join is only promoted if
it is nullable or the parent join is an outer join.
The children promotion is done to avoid join chains that contain a LOUTER
b INNER c. So, if we have currently a INNER b INNER c and a->b is promoted,
then we must also promote b->c automatically, or otherwise the promotion
of a->b doesn't actually change anything in the query results.
"""
aliases = list(aliases)
while aliases:
alias = aliases.pop(0)
if self.alias_map[alias].join_type is None:
# This is the base table (first FROM entry) - this table
# isn't really joined at all in the query, so we should not
# alter its join type.
continue
# Only the first alias (skipped above) should have None join_type
assert self.alias_map[alias].join_type is not None
parent_alias = self.alias_map[alias].parent_alias
parent_louter = (
parent_alias
and self.alias_map[parent_alias].join_type == LOUTER)
already_louter = self.alias_map[alias].join_type == LOUTER
if ((self.alias_map[alias].nullable or parent_louter) and
not already_louter):
self.alias_map[alias] = self.alias_map[alias].promote()
# Join type of 'alias' changed, so re-examine all aliases that
# refer to this one.
aliases.extend(
join for join in self.alias_map.keys()
if (self.alias_map[join].parent_alias == alias
and join not in aliases))
def demote_joins(self, aliases):
"""
Change join type from LOUTER to INNER for all joins in aliases.
Similarly to promote_joins(), this method must ensure no join chains
containing first an outer, then an inner join are generated. If we
are demoting b->c join in chain a LOUTER b LOUTER c then we must
demote a->b automatically, or otherwise the demotion of b->c doesn't
actually change anything in the query results. .
"""
aliases = list(aliases)
while aliases:
alias = aliases.pop(0)
if self.alias_map[alias].join_type == LOUTER:
self.alias_map[alias] = self.alias_map[alias].demote()
parent_alias = self.alias_map[alias].parent_alias
if self.alias_map[parent_alias].join_type == INNER:
aliases.append(parent_alias)
def reset_refcounts(self, to_counts):
"""
This method will reset reference counts for aliases so that they match
the value passed in :param to_counts:.
"""
for alias, cur_refcount in self.alias_refcount.copy().items():
unref_amount = cur_refcount - to_counts.get(alias, 0)
self.unref_alias(alias, unref_amount)
def change_aliases(self, change_map):
"""
Changes the aliases in change_map (which maps old-alias -> new-alias),
relabelling any references to them in select columns and the where
clause.
"""
assert set(change_map.keys()).intersection(set(change_map.values())) == set()
def relabel_column(col):
if isinstance(col, (list, tuple)):
old_alias = col[0]
return (change_map.get(old_alias, old_alias), col[1])
else:
return col.relabeled_clone(change_map)
# 1. Update references in "select" (normal columns plus aliases),
# "group by" and "where".
self.where.relabel_aliases(change_map)
if isinstance(self.group_by, list):
self.group_by = [relabel_column(col) for col in self.group_by]
self.select = [col.relabeled_clone(change_map) for col in self.select]
if self._annotations:
self._annotations = OrderedDict(
(key, relabel_column(col)) for key, col in self._annotations.items())
# 2. Rename the alias in the internal table/alias datastructures.
for old_alias, new_alias in six.iteritems(change_map):
if old_alias not in self.alias_map:
continue
alias_data = self.alias_map[old_alias].relabeled_clone(change_map)
self.alias_map[new_alias] = alias_data
self.alias_refcount[new_alias] = self.alias_refcount[old_alias]
del self.alias_refcount[old_alias]
del self.alias_map[old_alias]
table_aliases = self.table_map[alias_data.table_name]
for pos, alias in enumerate(table_aliases):
if alias == old_alias:
table_aliases[pos] = new_alias
break
for pos, alias in enumerate(self.tables):
if alias == old_alias:
self.tables[pos] = new_alias
break
self.external_aliases = {change_map.get(alias, alias)
for alias in self.external_aliases}
def bump_prefix(self, outer_query):
"""
Changes the alias prefix to the next letter in the alphabet in a way
that the outer query's aliases and this query's aliases will not
conflict. Even tables that previously had no alias will get an alias
after this call.
"""
def prefix_gen():
"""
Generates a sequence of characters in alphabetical order:
-> 'A', 'B', 'C', ...
When the alphabet is finished, the sequence will continue with the
Cartesian product:
-> 'AA', 'AB', 'AC', ...
"""
alphabet = ascii_uppercase
prefix = chr(ord(self.alias_prefix) + 1)
yield prefix
for n in count(1):
seq = alphabet[alphabet.index(prefix):] if prefix else alphabet
for s in product(seq, repeat=n):
yield ''.join(s)
prefix = None
if self.alias_prefix != outer_query.alias_prefix:
# No clashes between self and outer query should be possible.
return
local_recursion_limit = 127 # explicitly avoid infinite loop
for pos, prefix in enumerate(prefix_gen()):
if prefix not in self.subq_aliases:
self.alias_prefix = prefix
break
if pos > local_recursion_limit:
raise RuntimeError(
'Maximum recursion depth exceeded: too many subqueries.'
)
self.subq_aliases = self.subq_aliases.union([self.alias_prefix])
outer_query.subq_aliases = outer_query.subq_aliases.union(self.subq_aliases)
change_map = OrderedDict()
for pos, alias in enumerate(self.tables):
new_alias = '%s%d' % (self.alias_prefix, pos)
change_map[alias] = new_alias
self.tables[pos] = new_alias
self.change_aliases(change_map)
def get_initial_alias(self):
"""
Returns the first alias for this query, after increasing its reference
count.
"""
if self.tables:
alias = self.tables[0]
self.ref_alias(alias)
else:
alias = self.join(BaseTable(self.get_meta().db_table, None))
return alias
def count_active_tables(self):
"""
Returns the number of tables in this query with a non-zero reference
count. Note that after execution, the reference counts are zeroed, so
tables added in compiler will not be seen by this method.
"""
return len([1 for count in self.alias_refcount.values() if count])
def join(self, join, reuse=None):
"""
Returns an alias for the join in 'connection', either reusing an
existing alias for that join or creating a new one. 'connection' is a
tuple (lhs, table, join_cols) where 'lhs' is either an existing
table alias or a table name. 'join_cols' is a tuple of tuples containing
columns to join on ((l_id1, r_id1), (l_id2, r_id2)). The join corresponds
to the SQL equivalent of::
lhs.l_id1 = table.r_id1 AND lhs.l_id2 = table.r_id2
The 'reuse' parameter can be either None which means all joins
(matching the connection) are reusable, or it can be a set containing
the aliases that can be reused.
A join is always created as LOUTER if the lhs alias is LOUTER to make
sure we do not generate chains like t1 LOUTER t2 INNER t3. All new
joins are created as LOUTER if nullable is True.
If 'nullable' is True, the join can potentially involve NULL values and
is a candidate for promotion (to "left outer") when combining querysets.
The 'join_field' is the field we are joining along (if any).
"""
reuse = [a for a, j in self.alias_map.items()
if (reuse is None or a in reuse) and j == join]
if reuse:
self.ref_alias(reuse[0])
return reuse[0]
# No reuse is possible, so we need a new alias.
alias, _ = self.table_alias(join.table_name, create=True)
if join.join_type:
if self.alias_map[join.parent_alias].join_type == LOUTER or join.nullable:
join_type = LOUTER
else:
join_type = INNER
join.join_type = join_type
join.table_alias = alias
self.alias_map[alias] = join
return alias
def join_parent_model(self, opts, model, alias, seen):
"""
Makes sure the given 'model' is joined in the query. If 'model' isn't
a parent of 'opts' or if it is None this method is a no-op.
The 'alias' is the root alias for starting the join, 'seen' is a dict
of model -> alias of existing joins. It must also contain a mapping
of None -> some alias. This will be returned in the no-op case.
"""
if model in seen:
return seen[model]
chain = opts.get_base_chain(model)
if not chain:
return alias
curr_opts = opts
for int_model in chain:
if int_model in seen:
curr_opts = int_model._meta
alias = seen[int_model]
continue
# Proxy model have elements in base chain
# with no parents, assign the new options
# object and skip to the next base in that
# case
if not curr_opts.parents[int_model]:
curr_opts = int_model._meta
continue
link_field = curr_opts.get_ancestor_link(int_model)
_, _, _, joins, _ = self.setup_joins(
[link_field.name], curr_opts, alias)
curr_opts = int_model._meta
alias = seen[int_model] = joins[-1]
return alias or seen[None]
def add_aggregate(self, aggregate, model, alias, is_summary):
warnings.warn(
"add_aggregate() is deprecated. Use add_annotation() instead.",
RemovedInDjango110Warning, stacklevel=2)
self.add_annotation(aggregate, alias, is_summary)
def add_annotation(self, annotation, alias, is_summary=False):
"""
Adds a single annotation expression to the Query
"""
annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None,
summarize=is_summary)
self.append_annotation_mask([alias])
self.annotations[alias] = annotation
def prepare_lookup_value(self, value, lookups, can_reuse, allow_joins=True):
# Default lookup if none given is exact.
used_joins = []
if len(lookups) == 0:
lookups = ['exact']
# Interpret '__exact=None' as the sql 'is NULL'; otherwise, reject all
# uses of None as a query value.
if value is None:
if lookups[-1] not in ('exact', 'iexact'):
raise ValueError("Cannot use None as a query value")
lookups[-1] = 'isnull'
value = True
elif hasattr(value, 'resolve_expression'):
pre_joins = self.alias_refcount.copy()
value = value.resolve_expression(self, reuse=can_reuse, allow_joins=allow_joins)
used_joins = [k for k, v in self.alias_refcount.items() if v > pre_joins.get(k, 0)]
# Subqueries need to use a different set of aliases than the
# outer query. Call bump_prefix to change aliases of the inner
# query (the value).
if hasattr(value, 'query') and hasattr(value.query, 'bump_prefix'):
value = value._clone()
value.query.bump_prefix(self)
if hasattr(value, 'bump_prefix'):
value = value.clone()
value.bump_prefix(self)
# For Oracle '' is equivalent to null. The check needs to be done
# at this stage because join promotion can't be done at compiler
# stage. Using DEFAULT_DB_ALIAS isn't nice, but it is the best we
# can do here. Similar thing is done in is_nullable(), too.
if (connections[DEFAULT_DB_ALIAS].features.interprets_empty_strings_as_nulls and
lookups[-1] == 'exact' and value == ''):
value = True
lookups[-1] = 'isnull'
return value, lookups, used_joins
def solve_lookup_type(self, lookup):
"""
Solve the lookup type from the lookup (eg: 'foobar__id__icontains')
"""
lookup_splitted = lookup.split(LOOKUP_SEP)
if self._annotations:
expression, expression_lookups = refs_expression(lookup_splitted, self.annotations)
if expression:
return expression_lookups, (), expression
_, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
field_parts = lookup_splitted[0:len(lookup_splitted) - len(lookup_parts)]
if len(lookup_parts) == 0:
lookup_parts = ['exact']
elif len(lookup_parts) > 1:
if not field_parts:
raise FieldError(
'Invalid lookup "%s" for model %s".' %
(lookup, self.get_meta().model.__name__))
return lookup_parts, field_parts, False
def check_query_object_type(self, value, opts, field):
"""
Checks whether the object passed while querying is of the correct type.
If not, it raises a ValueError specifying the wrong object.
"""
if hasattr(value, '_meta'):
if not check_rel_lookup_compatibility(value._meta.model, opts, field):
raise ValueError(
'Cannot query "%s": Must be "%s" instance.' %
(value, opts.object_name))
def check_related_objects(self, field, value, opts):
"""
Checks the type of object passed to query relations.
"""
if field.is_relation:
# QuerySets implement is_compatible_query_object_type() to
# determine compatibility with the given field.
if hasattr(value, 'is_compatible_query_object_type'):
if not value.is_compatible_query_object_type(opts, field):
raise ValueError(
'Cannot use QuerySet for "%s": Use a QuerySet for "%s".' %
(value.model._meta.model_name, opts.object_name)
)
elif hasattr(value, '_meta'):
self.check_query_object_type(value, opts, field)
elif hasattr(value, '__iter__'):
for v in value:
self.check_query_object_type(v, opts, field)
def build_lookup(self, lookups, lhs, rhs):
"""
Tries to extract transforms and lookup from given lhs.
The lhs value is something that works like SQLExpression.
The rhs value is what the lookup is going to compare against.
The lookups is a list of names to extract using get_lookup()
and get_transform().
"""
lookups = lookups[:]
while lookups:
name = lookups[0]
# If there is just one part left, try first get_lookup() so
# that if the lhs supports both transform and lookup for the
# name, then lookup will be picked.
if len(lookups) == 1:
final_lookup = lhs.get_lookup(name)
if not final_lookup:
# We didn't find a lookup. We are going to interpret
# the name as transform, and do an Exact lookup against
# it.
lhs = self.try_transform(lhs, name, lookups)
final_lookup = lhs.get_lookup('exact')
return final_lookup(lhs, rhs)
lhs = self.try_transform(lhs, name, lookups)
lookups = lookups[1:]
def try_transform(self, lhs, name, rest_of_lookups):
"""
Helper method for build_lookup. Tries to fetch and initialize
a transform for name parameter from lhs.
"""
transform_class = lhs.get_transform(name)
if transform_class:
return transform_class(lhs)
else:
raise FieldError(
"Unsupported lookup '%s' for %s or join on the field not "
"permitted." %
(name, lhs.output_field.__class__.__name__))
def build_filter(self, filter_expr, branch_negated=False, current_negated=False,
can_reuse=None, connector=AND, allow_joins=True, split_subq=True):
"""
Builds a WhereNode for a single filter clause, but doesn't add it
to this Query. Query.add_q() will then add this filter to the where
Node.
The 'branch_negated' tells us if the current branch contains any
negations. This will be used to determine if subqueries are needed.
The 'current_negated' is used to determine if the current filter is
negated or not and this will be used to determine if IS NULL filtering
is needed.
The difference between current_netageted and branch_negated is that
branch_negated is set on first negation, but current_negated is
flipped for each negation.
Note that add_filter will not do any negating itself, that is done
upper in the code by add_q().
The 'can_reuse' is a set of reusable joins for multijoins.
The method will create a filter clause that can be added to the current
query. However, if the filter isn't added to the query then the caller
is responsible for unreffing the joins used.
"""
if isinstance(filter_expr, dict):
raise FieldError("Cannot parse keyword query as dict")
arg, value = filter_expr
if not arg:
raise FieldError("Cannot parse keyword query %r" % arg)
lookups, parts, reffed_expression = self.solve_lookup_type(arg)
if not allow_joins and len(parts) > 1:
raise FieldError("Joined field references are not permitted in this query")
# Work out the lookup type and remove it from the end of 'parts',
# if necessary.
value, lookups, used_joins = self.prepare_lookup_value(value, lookups, can_reuse, allow_joins)
clause = self.where_class()
if reffed_expression:
condition = self.build_lookup(lookups, reffed_expression, value)
clause.add(condition, AND)
return clause, []
opts = self.get_meta()
alias = self.get_initial_alias()
allow_many = not branch_negated or not split_subq
try:
field, sources, opts, join_list, path = self.setup_joins(
parts, opts, alias, can_reuse=can_reuse, allow_many=allow_many)
# Prevent iterator from being consumed by check_related_objects()
if isinstance(value, Iterator):
value = list(value)
self.check_related_objects(field, value, opts)
# split_exclude() needs to know which joins were generated for the
# lookup parts
self._lookup_joins = join_list
except MultiJoin as e:
return self.split_exclude(filter_expr, LOOKUP_SEP.join(parts[:e.level]),
can_reuse, e.names_with_path)
if can_reuse is not None:
can_reuse.update(join_list)
used_joins = set(used_joins).union(set(join_list))
targets, alias, join_list = self.trim_joins(sources, join_list, path)
if field.is_relation:
# No support for transforms for relational fields
num_lookups = len(lookups)
if num_lookups > 1:
raise FieldError('Related Field got invalid lookup: {}'.format(lookups[0]))
assert num_lookups > 0 # Likely a bug in Django if this fails.
lookup_class = field.get_lookup(lookups[0])
if len(targets) == 1:
lhs = targets[0].get_col(alias, field)
else:
lhs = MultiColSource(alias, targets, sources, field)
condition = lookup_class(lhs, value)
lookup_type = lookup_class.lookup_name
else:
col = targets[0].get_col(alias, field)
condition = self.build_lookup(lookups, col, value)
lookup_type = condition.lookup_name
clause.add(condition, AND)
require_outer = lookup_type == 'isnull' and value is True and not current_negated
if current_negated and (lookup_type != 'isnull' or value is False):
require_outer = True
if (lookup_type != 'isnull' and (
self.is_nullable(targets[0]) or
self.alias_map[join_list[-1]].join_type == LOUTER)):
# The condition added here will be SQL like this:
# NOT (col IS NOT NULL), where the first NOT is added in
# upper layers of code. The reason for addition is that if col
# is null, then col != someval will result in SQL "unknown"
# which isn't the same as in Python. The Python None handling
# is wanted, and it can be gotten by
# (col IS NULL OR col != someval)
# <=>
# NOT (col IS NOT NULL AND col = someval).
lookup_class = targets[0].get_lookup('isnull')
clause.add(lookup_class(targets[0].get_col(alias, sources[0]), False), AND)
return clause, used_joins if not require_outer else ()
def add_filter(self, filter_clause):
self.add_q(Q(**{filter_clause[0]: filter_clause[1]}))
def add_q(self, q_object):
"""
A preprocessor for the internal _add_q(). Responsible for doing final
join promotion.
"""
# For join promotion this case is doing an AND for the added q_object
# and existing conditions. So, any existing inner join forces the join
# type to remain inner. Existing outer joins can however be demoted.
# (Consider case where rel_a is LOUTER and rel_a__col=1 is added - if
# rel_a doesn't produce any rows, then the whole condition must fail.
# So, demotion is OK.
existing_inner = set(
(a for a in self.alias_map if self.alias_map[a].join_type == INNER))
clause, _ = self._add_q(q_object, self.used_aliases)
if clause:
self.where.add(clause, AND)
self.demote_joins(existing_inner)
def _add_q(self, q_object, used_aliases, branch_negated=False,
current_negated=False, allow_joins=True, split_subq=True):
"""
Adds a Q-object to the current filter.
"""
connector = q_object.connector
current_negated = current_negated ^ q_object.negated
branch_negated = branch_negated or q_object.negated
target_clause = self.where_class(connector=connector,
negated=q_object.negated)
joinpromoter = JoinPromoter(q_object.connector, len(q_object.children), current_negated)
for child in q_object.children:
if isinstance(child, Node):
child_clause, needed_inner = self._add_q(
child, used_aliases, branch_negated,
current_negated, allow_joins, split_subq)
joinpromoter.add_votes(needed_inner)
else:
child_clause, needed_inner = self.build_filter(
child, can_reuse=used_aliases, branch_negated=branch_negated,
current_negated=current_negated, connector=connector,
allow_joins=allow_joins, split_subq=split_subq,
)
joinpromoter.add_votes(needed_inner)
if child_clause:
target_clause.add(child_clause, connector)
needed_inner = joinpromoter.update_join_types(self)
return target_clause, needed_inner
def names_to_path(self, names, opts, allow_many=True, fail_on_missing=False):
"""
Walks the list of names and turns them into PathInfo tuples. Note that
a single name in 'names' can generate multiple PathInfos (m2m for
example).
'names' is the path of names to travel, 'opts' is the model Options we
start the name resolving from, 'allow_many' is as for setup_joins().
If fail_on_missing is set to True, then a name that can't be resolved
will generate a FieldError.
Returns a list of PathInfo tuples. In addition returns the final field
(the last used join field), and target (which is a field guaranteed to
contain the same value as the final field). Finally, the method returns
those names that weren't found (which are likely transforms and the
final lookup).
"""
path, names_with_path = [], []
for pos, name in enumerate(names):
cur_names_with_path = (name, [])
if name == 'pk':
name = opts.pk.name
field = None
try:
field = opts.get_field(name)
except FieldDoesNotExist:
if name in self.annotation_select:
field = self.annotation_select[name].output_field
if field is not None:
# Fields that contain one-to-many relations with a generic
# model (like a GenericForeignKey) cannot generate reverse
# relations and therefore cannot be used for reverse querying.
if field.is_relation and not field.related_model:
raise FieldError(
"Field %r does not generate an automatic reverse "
"relation and therefore cannot be used for reverse "
"querying. If it is a GenericForeignKey, consider "
"adding a GenericRelation." % name
)
try:
model = field.model._meta.concrete_model
except AttributeError:
model = None
else:
# We didn't find the current field, so move position back
# one step.
pos -= 1
if pos == -1 or fail_on_missing:
field_names = list(get_field_names_from_opts(opts))
available = sorted(field_names + list(self.annotation_select))
raise FieldError("Cannot resolve keyword %r into field. "
"Choices are: %s" % (name, ", ".join(available)))
break
# Check if we need any joins for concrete inheritance cases (the
# field lives in parent, but we are currently in one of its
# children)
if model is not opts.model:
# The field lives on a base class of the current model.
# Skip the chain of proxy to the concrete proxied model
proxied_model = opts.concrete_model
for int_model in opts.get_base_chain(model):
if int_model is proxied_model:
opts = int_model._meta
else:
final_field = opts.parents[int_model]
targets = (final_field.remote_field.get_related_field(),)
opts = int_model._meta
path.append(PathInfo(final_field.model._meta, opts, targets, final_field, False, True))
cur_names_with_path[1].append(
PathInfo(final_field.model._meta, opts, targets, final_field, False, True)
)
if hasattr(field, 'get_path_info'):
pathinfos = field.get_path_info()
if not allow_many:
for inner_pos, p in enumerate(pathinfos):
if p.m2m:
cur_names_with_path[1].extend(pathinfos[0:inner_pos + 1])
names_with_path.append(cur_names_with_path)
raise MultiJoin(pos + 1, names_with_path)
last = pathinfos[-1]
path.extend(pathinfos)
final_field = last.join_field
opts = last.to_opts
targets = last.target_fields
cur_names_with_path[1].extend(pathinfos)
names_with_path.append(cur_names_with_path)
else:
# Local non-relational field.
final_field = field
targets = (field,)
if fail_on_missing and pos + 1 != len(names):
raise FieldError(
"Cannot resolve keyword %r into field. Join on '%s'"
" not permitted." % (names[pos + 1], name))
break
return path, final_field, targets, names[pos + 1:]
def setup_joins(self, names, opts, alias, can_reuse=None, allow_many=True):
"""
Compute the necessary table joins for the passage through the fields
given in 'names'. 'opts' is the Options class for the current model
(which gives the table we are starting from), 'alias' is the alias for
the table to start the joining from.
The 'can_reuse' defines the reverse foreign key joins we can reuse. It
can be None in which case all joins are reusable or a set of aliases
that can be reused. Note that non-reverse foreign keys are always
reusable when using setup_joins().
If 'allow_many' is False, then any reverse foreign key seen will
generate a MultiJoin exception.
Returns the final field involved in the joins, the target field (used
for any 'where' constraint), the final 'opts' value, the joins and the
field path travelled to generate the joins.
The target field is the field containing the concrete value. Final
field can be something different, for example foreign key pointing to
that value. Final field is needed for example in some value
conversions (convert 'obj' in fk__id=obj to pk val using the foreign
key field for example).
"""
joins = [alias]
# First, generate the path for the names
path, final_field, targets, rest = self.names_to_path(
names, opts, allow_many, fail_on_missing=True)
# Then, add the path to the query's joins. Note that we can't trim
# joins at this stage - we will need the information about join type
# of the trimmed joins.
for join in path:
opts = join.to_opts
if join.direct:
nullable = self.is_nullable(join.join_field)
else:
nullable = True
connection = Join(opts.db_table, alias, None, INNER, join.join_field, nullable)
reuse = can_reuse if join.m2m else None
alias = self.join(connection, reuse=reuse)
joins.append(alias)
return final_field, targets, opts, joins, path
def trim_joins(self, targets, joins, path):
"""
The 'target' parameter is the final field being joined to, 'joins'
is the full list of join aliases. The 'path' contain the PathInfos
used to create the joins.
Returns the final target field and table alias and the new active
joins.
We will always trim any direct join if we have the target column
available already in the previous table. Reverse joins can't be
trimmed as we don't know if there is anything on the other side of
the join.
"""
joins = joins[:]
for pos, info in enumerate(reversed(path)):
if len(joins) == 1 or not info.direct:
break
join_targets = set(t.column for t in info.join_field.foreign_related_fields)
cur_targets = set(t.column for t in targets)
if not cur_targets.issubset(join_targets):
break
targets = tuple(r[0] for r in info.join_field.related_fields if r[1].column in cur_targets)
self.unref_alias(joins.pop())
return targets, joins[-1], joins
def resolve_ref(self, name, allow_joins=True, reuse=None, summarize=False):
if not allow_joins and LOOKUP_SEP in name:
raise FieldError("Joined field references are not permitted in this query")
if name in self.annotations:
if summarize:
# Summarize currently means we are doing an aggregate() query
# which is executed as a wrapped subquery if any of the
# aggregate() elements reference an existing annotation. In
# that case we need to return a Ref to the subquery's annotation.
return Ref(name, self.annotation_select[name])
else:
return self.annotation_select[name]
else:
field_list = name.split(LOOKUP_SEP)
field, sources, opts, join_list, path = self.setup_joins(
field_list, self.get_meta(),
self.get_initial_alias(), reuse)
targets, _, join_list = self.trim_joins(sources, join_list, path)
if len(targets) > 1:
raise FieldError("Referencing multicolumn fields with F() objects "
"isn't supported")
if reuse is not None:
reuse.update(join_list)
col = targets[0].get_col(join_list[-1], sources[0])
return col
def split_exclude(self, filter_expr, prefix, can_reuse, names_with_path):
"""
When doing an exclude against any kind of N-to-many relation, we need
to use a subquery. This method constructs the nested query, given the
original exclude filter (filter_expr) and the portion up to the first
N-to-many relation field.
As an example we could have original filter ~Q(child__name='foo').
We would get here with filter_expr = child__name, prefix = child and
can_reuse is a set of joins usable for filters in the original query.
We will turn this into equivalent of:
WHERE NOT (pk IN (SELECT parent_id FROM thetable
WHERE name = 'foo' AND parent_id IS NOT NULL))
It might be worth it to consider using WHERE NOT EXISTS as that has
saner null handling, and is easier for the backend's optimizer to
handle.
"""
# Generate the inner query.
query = Query(self.model)
query.add_filter(filter_expr)
query.clear_ordering(True)
# Try to have as simple as possible subquery -> trim leading joins from
# the subquery.
trimmed_prefix, contains_louter = query.trim_start(names_with_path)
# Add extra check to make sure the selected field will not be null
# since we are adding an IN <subquery> clause. This prevents the
# database from tripping over IN (...,NULL,...) selects and returning
# nothing
col = query.select[0]
select_field = col.target
alias = col.alias
if self.is_nullable(select_field):
lookup_class = select_field.get_lookup('isnull')
lookup = lookup_class(select_field.get_col(alias), False)
query.where.add(lookup, AND)
if alias in can_reuse:
pk = select_field.model._meta.pk
# Need to add a restriction so that outer query's filters are in effect for
# the subquery, too.
query.bump_prefix(self)
lookup_class = select_field.get_lookup('exact')
# Note that the query.select[0].alias is different from alias
# due to bump_prefix above.
lookup = lookup_class(pk.get_col(query.select[0].alias),
pk.get_col(alias))
query.where.add(lookup, AND)
query.external_aliases.add(alias)
condition, needed_inner = self.build_filter(
('%s__in' % trimmed_prefix, query),
current_negated=True, branch_negated=True, can_reuse=can_reuse)
if contains_louter:
or_null_condition, _ = self.build_filter(
('%s__isnull' % trimmed_prefix, True),
current_negated=True, branch_negated=True, can_reuse=can_reuse)
condition.add(or_null_condition, OR)
# Note that the end result will be:
# (outercol NOT IN innerq AND outercol IS NOT NULL) OR outercol IS NULL.
# This might look crazy but due to how IN works, this seems to be
# correct. If the IS NOT NULL check is removed then outercol NOT
# IN will return UNKNOWN. If the IS NULL check is removed, then if
# outercol IS NULL we will not match the row.
return condition, needed_inner
def set_empty(self):
self.where.add(NothingNode(), AND)
def is_empty(self):
return any(isinstance(c, NothingNode) for c in self.where.children)
def set_limits(self, low=None, high=None):
"""
Adjusts the limits on the rows retrieved. We use low/high to set these,
as it makes it more Pythonic to read and write. When the SQL query is
created, they are converted to the appropriate offset and limit values.
Any limits passed in here are applied relative to the existing
constraints. So low is added to the current low value and both will be
clamped to any existing high value.
"""
if high is not None:
if self.high_mark is not None:
self.high_mark = min(self.high_mark, self.low_mark + high)
else:
self.high_mark = self.low_mark + high
if low is not None:
if self.high_mark is not None:
self.low_mark = min(self.high_mark, self.low_mark + low)
else:
self.low_mark = self.low_mark + low
if self.low_mark == self.high_mark:
self.set_empty()
def clear_limits(self):
"""
Clears any existing limits.
"""
self.low_mark, self.high_mark = 0, None
def can_filter(self):
"""
Returns True if adding filters to this instance is still possible.
Typically, this means no limits or offsets have been put on the results.
"""
return not self.low_mark and self.high_mark is None
def clear_select_clause(self):
"""
Removes all fields from SELECT clause.
"""
self.select = []
self.default_cols = False
self.select_related = False
self.set_extra_mask(())
self.set_annotation_mask(())
def clear_select_fields(self):
"""
Clears the list of fields to select (but not extra_select columns).
Some queryset types completely replace any existing list of select
columns.
"""
self.select = []
self.values_select = []
def add_select(self, col):
self.default_cols = False
self.select.append(col)
def set_select(self, cols):
self.default_cols = False
self.select = cols
def add_distinct_fields(self, *field_names):
"""
Adds and resolves the given fields to the query's "distinct on" clause.
"""
self.distinct_fields = field_names
self.distinct = True
def add_fields(self, field_names, allow_m2m=True):
"""
Adds the given (model) fields to the select set. The field names are
added in the order specified.
"""
alias = self.get_initial_alias()
opts = self.get_meta()
try:
for name in field_names:
# Join promotion note - we must not remove any rows here, so
# if there is no existing joins, use outer join.
_, targets, _, joins, path = self.setup_joins(
name.split(LOOKUP_SEP), opts, alias, allow_many=allow_m2m)
targets, final_alias, joins = self.trim_joins(targets, joins, path)
for target in targets:
self.add_select(target.get_col(final_alias))
except MultiJoin:
raise FieldError("Invalid field name: '%s'" % name)
except FieldError:
if LOOKUP_SEP in name:
# For lookups spanning over relationships, show the error
# from the model on which the lookup failed.
raise
else:
names = sorted(list(get_field_names_from_opts(opts)) + list(self.extra)
+ list(self.annotation_select))
raise FieldError("Cannot resolve keyword %r into field. "
"Choices are: %s" % (name, ", ".join(names)))
def add_ordering(self, *ordering):
"""
Adds items from the 'ordering' sequence to the query's "order by"
clause. These items are either field names (not column names) --
possibly with a direction prefix ('-' or '?') -- or OrderBy
expressions.
If 'ordering' is empty, all ordering is cleared from the query.
"""
errors = []
for item in ordering:
if not hasattr(item, 'resolve_expression') and not ORDER_PATTERN.match(item):
errors.append(item)
if getattr(item, 'contains_aggregate', False):
raise FieldError(
'Using an aggregate in order_by() without also including '
'it in annotate() is not allowed: %s' % item
)
if errors:
raise FieldError('Invalid order_by arguments: %s' % errors)
if ordering:
self.order_by.extend(ordering)
else:
self.default_ordering = False
def clear_ordering(self, force_empty):
"""
Removes any ordering settings. If 'force_empty' is True, there will be
no ordering in the resulting query (not even the model's default).
"""
self.order_by = []
self.extra_order_by = ()
if force_empty:
self.default_ordering = False
def set_group_by(self):
"""
Expands the GROUP BY clause required by the query.
This will usually be the set of all non-aggregate fields in the
return data. If the database backend supports grouping by the
primary key, and the query would be equivalent, the optimization
will be made automatically.
"""
self.group_by = []
for col in self.select:
self.group_by.append(col)
if self.annotation_select:
for alias, annotation in six.iteritems(self.annotation_select):
for col in annotation.get_group_by_cols():
self.group_by.append(col)
def add_select_related(self, fields):
"""
Sets up the select_related data structure so that we only select
certain related models (as opposed to all models, when
self.select_related=True).
"""
if isinstance(self.select_related, bool):
field_dict = {}
else:
field_dict = self.select_related
for field in fields:
d = field_dict
for part in field.split(LOOKUP_SEP):
d = d.setdefault(part, {})
self.select_related = field_dict
def add_extra(self, select, select_params, where, params, tables, order_by):
"""
Adds data to the various extra_* attributes for user-created additions
to the query.
"""
if select:
# We need to pair any placeholder markers in the 'select'
# dictionary with their parameters in 'select_params' so that
# subsequent updates to the select dictionary also adjust the
# parameters appropriately.
select_pairs = OrderedDict()
if select_params:
param_iter = iter(select_params)
else:
param_iter = iter([])
for name, entry in select.items():
entry = force_text(entry)
entry_params = []
pos = entry.find("%s")
while pos != -1:
if pos == 0 or entry[pos - 1] != '%':
entry_params.append(next(param_iter))
pos = entry.find("%s", pos + 2)
select_pairs[name] = (entry, entry_params)
# This is order preserving, since self.extra_select is an OrderedDict.
self.extra.update(select_pairs)
if where or params:
self.where.add(ExtraWhere(where, params), AND)
if tables:
self.extra_tables += tuple(tables)
if order_by:
self.extra_order_by = order_by
def clear_deferred_loading(self):
"""
Remove any fields from the deferred loading set.
"""
self.deferred_loading = (set(), True)
def add_deferred_loading(self, field_names):
"""
Add the given list of model field names to the set of fields to
exclude from loading from the database when automatic column selection
is done. The new field names are added to any existing field names that
are deferred (or removed from any existing field names that are marked
as the only ones for immediate loading).
"""
# Fields on related models are stored in the literal double-underscore
# format, so that we can use a set datastructure. We do the foo__bar
# splitting and handling when computing the SQL column names (as part of
# get_columns()).
existing, defer = self.deferred_loading
if defer:
# Add to existing deferred names.
self.deferred_loading = existing.union(field_names), True
else:
# Remove names from the set of any existing "immediate load" names.
self.deferred_loading = existing.difference(field_names), False
def add_immediate_loading(self, field_names):
"""
Add the given list of model field names to the set of fields to
retrieve when the SQL is executed ("immediate loading" fields). The
field names replace any existing immediate loading field names. If
there are field names already specified for deferred loading, those
names are removed from the new field_names before storing the new names
for immediate loading. (That is, immediate loading overrides any
existing immediate values, but respects existing deferrals.)
"""
existing, defer = self.deferred_loading
field_names = set(field_names)
if 'pk' in field_names:
field_names.remove('pk')
field_names.add(self.get_meta().pk.name)
if defer:
# Remove any existing deferred names from the current set before
# setting the new names.
self.deferred_loading = field_names.difference(existing), False
else:
# Replace any existing "immediate load" field names.
self.deferred_loading = field_names, False
def get_loaded_field_names(self):
"""
If any fields are marked to be deferred, returns a dictionary mapping
models to a set of names in those fields that will be loaded. If a
model is not in the returned dictionary, none of its fields are
deferred.
If no fields are marked for deferral, returns an empty dictionary.
"""
# We cache this because we call this function multiple times
# (compiler.fill_related_selections, query.iterator)
try:
return self._loaded_field_names_cache
except AttributeError:
collection = {}
self.deferred_to_data(collection, self.get_loaded_field_names_cb)
self._loaded_field_names_cache = collection
return collection
def get_loaded_field_names_cb(self, target, model, fields):
"""
Callback used by get_deferred_field_names().
"""
target[model] = {f.attname for f in fields}
def set_aggregate_mask(self, names):
warnings.warn(
"set_aggregate_mask() is deprecated. Use set_annotation_mask() instead.",
RemovedInDjango110Warning, stacklevel=2)
self.set_annotation_mask(names)
def set_annotation_mask(self, names):
"Set the mask of annotations that will actually be returned by the SELECT"
if names is None:
self.annotation_select_mask = None
else:
self.annotation_select_mask = set(names)
self._annotation_select_cache = None
def append_aggregate_mask(self, names):
warnings.warn(
"append_aggregate_mask() is deprecated. Use append_annotation_mask() instead.",
RemovedInDjango110Warning, stacklevel=2)
self.append_annotation_mask(names)
def append_annotation_mask(self, names):
if self.annotation_select_mask is not None:
self.set_annotation_mask(set(names).union(self.annotation_select_mask))
def set_extra_mask(self, names):
"""
Set the mask of extra select items that will be returned by SELECT,
we don't actually remove them from the Query since they might be used
later
"""
if names is None:
self.extra_select_mask = None
else:
self.extra_select_mask = set(names)
self._extra_select_cache = None
@property
def annotation_select(self):
"""The OrderedDict of aggregate columns that are not masked, and should
be used in the SELECT clause.
This result is cached for optimization purposes.
"""
if self._annotation_select_cache is not None:
return self._annotation_select_cache
elif not self._annotations:
return {}
elif self.annotation_select_mask is not None:
self._annotation_select_cache = OrderedDict(
(k, v) for k, v in self.annotations.items()
if k in self.annotation_select_mask
)
return self._annotation_select_cache
else:
return self.annotations
@property
def aggregate_select(self):
warnings.warn(
"aggregate_select() is deprecated. Use annotation_select() instead.",
RemovedInDjango110Warning, stacklevel=2)
return self.annotation_select
@property
def extra_select(self):
if self._extra_select_cache is not None:
return self._extra_select_cache
if not self._extra:
return {}
elif self.extra_select_mask is not None:
self._extra_select_cache = OrderedDict(
(k, v) for k, v in self.extra.items()
if k in self.extra_select_mask
)
return self._extra_select_cache
else:
return self.extra
def trim_start(self, names_with_path):
"""
Trims joins from the start of the join path. The candidates for trim
are the PathInfos in names_with_path structure that are m2m joins.
Also sets the select column so the start matches the join.
This method is meant to be used for generating the subquery joins &
cols in split_exclude().
Returns a lookup usable for doing outerq.filter(lookup=self). Returns
also if the joins in the prefix contain a LEFT OUTER join.
_"""
all_paths = []
for _, paths in names_with_path:
all_paths.extend(paths)
contains_louter = False
# Trim and operate only on tables that were generated for
# the lookup part of the query. That is, avoid trimming
# joins generated for F() expressions.
lookup_tables = [t for t in self.tables if t in self._lookup_joins or t == self.tables[0]]
for trimmed_paths, path in enumerate(all_paths):
if path.m2m:
break
if self.alias_map[lookup_tables[trimmed_paths + 1]].join_type == LOUTER:
contains_louter = True
alias = lookup_tables[trimmed_paths]
self.unref_alias(alias)
# The path.join_field is a Rel, lets get the other side's field
join_field = path.join_field.field
# Build the filter prefix.
paths_in_prefix = trimmed_paths
trimmed_prefix = []
for name, path in names_with_path:
if paths_in_prefix - len(path) < 0:
break
trimmed_prefix.append(name)
paths_in_prefix -= len(path)
trimmed_prefix.append(
join_field.foreign_related_fields[0].name)
trimmed_prefix = LOOKUP_SEP.join(trimmed_prefix)
# Lets still see if we can trim the first join from the inner query
# (that is, self). We can't do this for LEFT JOINs because we would
# miss those rows that have nothing on the outer side.
if self.alias_map[lookup_tables[trimmed_paths + 1]].join_type != LOUTER:
select_fields = [r[0] for r in join_field.related_fields]
select_alias = lookup_tables[trimmed_paths + 1]
self.unref_alias(lookup_tables[trimmed_paths])
extra_restriction = join_field.get_extra_restriction(
self.where_class, None, lookup_tables[trimmed_paths + 1])
if extra_restriction:
self.where.add(extra_restriction, AND)
else:
# TODO: It might be possible to trim more joins from the start of the
# inner query if it happens to have a longer join chain containing the
# values in select_fields. Lets punt this one for now.
select_fields = [r[1] for r in join_field.related_fields]
select_alias = lookup_tables[trimmed_paths]
# The found starting point is likely a Join instead of a BaseTable reference.
# But the first entry in the query's FROM clause must not be a JOIN.
for table in self.tables:
if self.alias_refcount[table] > 0:
self.alias_map[table] = BaseTable(self.alias_map[table].table_name, table)
break
self.set_select([f.get_col(select_alias) for f in select_fields])
return trimmed_prefix, contains_louter
def is_nullable(self, field):
"""
A helper to check if the given field should be treated as nullable.
Some backends treat '' as null and Django treats such fields as
nullable for those backends. In such situations field.null can be
False even if we should treat the field as nullable.
"""
# We need to use DEFAULT_DB_ALIAS here, as QuerySet does not have
# (nor should it have) knowledge of which connection is going to be
# used. The proper fix would be to defer all decisions where
# is_nullable() is needed to the compiler stage, but that is not easy
# to do currently.
if ((connections[DEFAULT_DB_ALIAS].features.interprets_empty_strings_as_nulls)
and field.empty_strings_allowed):
return True
else:
return field.null
def get_order_dir(field, default='ASC'):
"""
Returns the field name and direction for an order specification. For
example, '-foo' is returned as ('foo', 'DESC').
The 'default' param is used to indicate which way no prefix (or a '+'
prefix) should sort. The '-' prefix always sorts the opposite way.
"""
dirn = ORDER_DIR[default]
if field[0] == '-':
return field[1:], dirn[1]
return field, dirn[0]
def add_to_dict(data, key, value):
"""
A helper function to add "value" to the set of values for "key", whether or
not "key" already exists.
"""
if key in data:
data[key].add(value)
else:
data[key] = {value}
def is_reverse_o2o(field):
"""
A little helper to check if the given field is reverse-o2o. The field is
expected to be some sort of relation field or related object.
"""
return field.is_relation and field.one_to_one and not field.concrete
class JoinPromoter(object):
"""
A class to abstract away join promotion problems for complex filter
conditions.
"""
def __init__(self, connector, num_children, negated):
self.connector = connector
self.negated = negated
if self.negated:
if connector == AND:
self.effective_connector = OR
else:
self.effective_connector = AND
else:
self.effective_connector = self.connector
self.num_children = num_children
# Maps of table alias to how many times it is seen as required for
# inner and/or outer joins.
self.votes = Counter()
def add_votes(self, votes):
"""
Add single vote per item to self.votes. Parameter can be any
iterable.
"""
self.votes.update(votes)
def update_join_types(self, query):
"""
Change join types so that the generated query is as efficient as
possible, but still correct. So, change as many joins as possible
to INNER, but don't make OUTER joins INNER if that could remove
results from the query.
"""
to_promote = set()
to_demote = set()
# The effective_connector is used so that NOT (a AND b) is treated
# similarly to (a OR b) for join promotion.
for table, votes in self.votes.items():
# We must use outer joins in OR case when the join isn't contained
# in all of the joins. Otherwise the INNER JOIN itself could remove
# valid results. Consider the case where a model with rel_a and
# rel_b relations is queried with rel_a__col=1 | rel_b__col=2. Now,
# if rel_a join doesn't produce any results is null (for example
# reverse foreign key or null value in direct foreign key), and
# there is a matching row in rel_b with col=2, then an INNER join
# to rel_a would remove a valid match from the query. So, we need
# to promote any existing INNER to LOUTER (it is possible this
# promotion in turn will be demoted later on).
if self.effective_connector == 'OR' and votes < self.num_children:
to_promote.add(table)
# If connector is AND and there is a filter that can match only
# when there is a joinable row, then use INNER. For example, in
# rel_a__col=1 & rel_b__col=2, if either of the rels produce NULL
# as join output, then the col=1 or col=2 can't match (as
# NULL=anything is always false).
# For the OR case, if all children voted for a join to be inner,
# then we can use INNER for the join. For example:
# (rel_a__col__icontains=Alex | rel_a__col__icontains=Russell)
# then if rel_a doesn't produce any rows, the whole condition
# can't match. Hence we can safely use INNER join.
if self.effective_connector == 'AND' or (
self.effective_connector == 'OR' and votes == self.num_children):
to_demote.add(table)
# Finally, what happens in cases where we have:
# (rel_a__col=1|rel_b__col=2) & rel_a__col__gte=0
# Now, we first generate the OR clause, and promote joins for it
# in the first if branch above. Both rel_a and rel_b are promoted
# to LOUTER joins. After that we do the AND case. The OR case
# voted no inner joins but the rel_a__col__gte=0 votes inner join
# for rel_a. We demote it back to INNER join (in AND case a single
# vote is enough). The demotion is OK, if rel_a doesn't produce
# rows, then the rel_a__col__gte=0 clause can't be true, and thus
# the whole clause must be false. So, it is safe to use INNER
# join.
# Note that in this example we could just as well have the __gte
# clause and the OR clause swapped. Or we could replace the __gte
# clause with an OR clause containing rel_a__col=1|rel_a__col=2,
# and again we could safely demote to INNER.
query.promote_joins(to_promote)
query.demote_joins(to_demote)
return to_demote
|
iabdalkader/micropython | refs/heads/master | tests/basics/class_misc.py | 17 | # converting user instance to buffer
class C:
pass
c = C()
try:
d = bytes(c)
except TypeError:
print('TypeError')
|
maciek263/django2 | refs/heads/master | myvenv/Lib/site-packages/django/contrib/admin/templatetags/admin_list.py | 49 | from __future__ import unicode_literals
import datetime
from django.contrib.admin.templatetags.admin_static import static
from django.contrib.admin.templatetags.admin_urls import add_preserved_filters
from django.contrib.admin.utils import (
display_for_field, display_for_value, label_for_field, lookup_field,
)
from django.contrib.admin.views.main import (
ALL_VAR, EMPTY_CHANGELIST_VALUE, ORDER_VAR, PAGE_VAR, SEARCH_VAR,
)
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import NoReverseMatch
from django.db import models
from django.template import Library
from django.template.loader import get_template
from django.utils import formats
from django.utils.encoding import force_text
from django.utils.html import escapejs, format_html
from django.utils.safestring import mark_safe
from django.utils.text import capfirst
from django.utils.translation import ugettext as _
register = Library()
DOT = '.'
@register.simple_tag
def paginator_number(cl, i):
"""
Generates an individual page index link in a paginated list.
"""
if i == DOT:
return '... '
elif i == cl.page_num:
return format_html('<span class="this-page">{}</span> ', i + 1)
else:
return format_html('<a href="{}"{}>{}</a> ',
cl.get_query_string({PAGE_VAR: i}),
mark_safe(' class="end"' if i == cl.paginator.num_pages - 1 else ''),
i + 1)
@register.inclusion_tag('admin/pagination.html')
def pagination(cl):
"""
Generates the series of links to the pages in a paginated list.
"""
paginator, page_num = cl.paginator, cl.page_num
pagination_required = (not cl.show_all or not cl.can_show_all) and cl.multi_page
if not pagination_required:
page_range = []
else:
ON_EACH_SIDE = 3
ON_ENDS = 2
# If there are 10 or fewer pages, display links to every page.
# Otherwise, do some fancy
if paginator.num_pages <= 10:
page_range = range(paginator.num_pages)
else:
# Insert "smart" pagination links, so that there are always ON_ENDS
# links at either end of the list of pages, and there are always
# ON_EACH_SIDE links at either end of the "current page" link.
page_range = []
if page_num > (ON_EACH_SIDE + ON_ENDS):
page_range.extend(range(0, ON_ENDS))
page_range.append(DOT)
page_range.extend(range(page_num - ON_EACH_SIDE, page_num + 1))
else:
page_range.extend(range(0, page_num + 1))
if page_num < (paginator.num_pages - ON_EACH_SIDE - ON_ENDS - 1):
page_range.extend(range(page_num + 1, page_num + ON_EACH_SIDE + 1))
page_range.append(DOT)
page_range.extend(range(paginator.num_pages - ON_ENDS, paginator.num_pages))
else:
page_range.extend(range(page_num + 1, paginator.num_pages))
need_show_all_link = cl.can_show_all and not cl.show_all and cl.multi_page
return {
'cl': cl,
'pagination_required': pagination_required,
'show_all_url': need_show_all_link and cl.get_query_string({ALL_VAR: ''}),
'page_range': page_range,
'ALL_VAR': ALL_VAR,
'1': 1,
}
def result_headers(cl):
"""
Generates the list column headers.
"""
ordering_field_columns = cl.get_ordering_field_columns()
for i, field_name in enumerate(cl.list_display):
text, attr = label_for_field(
field_name, cl.model,
model_admin=cl.model_admin,
return_attr=True
)
if attr:
# Potentially not sortable
# if the field is the action checkbox: no sorting and special class
if field_name == 'action_checkbox':
yield {
"text": text,
"class_attrib": mark_safe(' class="action-checkbox-column"'),
"sortable": False,
}
continue
admin_order_field = getattr(attr, "admin_order_field", None)
if not admin_order_field:
# Not sortable
yield {
"text": text,
"class_attrib": format_html(' class="column-{}"', field_name),
"sortable": False,
}
continue
# OK, it is sortable if we got this far
th_classes = ['sortable', 'column-{}'.format(field_name)]
order_type = ''
new_order_type = 'asc'
sort_priority = 0
sorted = False
# Is it currently being sorted on?
if i in ordering_field_columns:
sorted = True
order_type = ordering_field_columns.get(i).lower()
sort_priority = list(ordering_field_columns).index(i) + 1
th_classes.append('sorted %sending' % order_type)
new_order_type = {'asc': 'desc', 'desc': 'asc'}[order_type]
# build new ordering param
o_list_primary = [] # URL for making this field the primary sort
o_list_remove = [] # URL for removing this field from sort
o_list_toggle = [] # URL for toggling order type for this field
make_qs_param = lambda t, n: ('-' if t == 'desc' else '') + str(n)
for j, ot in ordering_field_columns.items():
if j == i: # Same column
param = make_qs_param(new_order_type, j)
# We want clicking on this header to bring the ordering to the
# front
o_list_primary.insert(0, param)
o_list_toggle.append(param)
# o_list_remove - omit
else:
param = make_qs_param(ot, j)
o_list_primary.append(param)
o_list_toggle.append(param)
o_list_remove.append(param)
if i not in ordering_field_columns:
o_list_primary.insert(0, make_qs_param(new_order_type, i))
yield {
"text": text,
"sortable": True,
"sorted": sorted,
"ascending": order_type == "asc",
"sort_priority": sort_priority,
"url_primary": cl.get_query_string({ORDER_VAR: '.'.join(o_list_primary)}),
"url_remove": cl.get_query_string({ORDER_VAR: '.'.join(o_list_remove)}),
"url_toggle": cl.get_query_string({ORDER_VAR: '.'.join(o_list_toggle)}),
"class_attrib": format_html(' class="{}"', ' '.join(th_classes)) if th_classes else '',
}
def _boolean_icon(field_val):
icon_url = static('admin/img/icon-%s.gif' %
{True: 'yes', False: 'no', None: 'unknown'}[field_val])
return format_html('<img src="{}" alt="{}" />', icon_url, field_val)
def items_for_result(cl, result, form):
"""
Generates the actual list of data.
"""
def link_in_col(is_first, field_name, cl):
if cl.list_display_links is None:
return False
if is_first and not cl.list_display_links:
return True
return field_name in cl.list_display_links
first = True
pk = cl.lookup_opts.pk.attname
for field_name in cl.list_display:
row_classes = ['field-%s' % field_name]
try:
f, attr, value = lookup_field(field_name, result, cl.model_admin)
except ObjectDoesNotExist:
result_repr = EMPTY_CHANGELIST_VALUE
else:
if f is None:
if field_name == 'action_checkbox':
row_classes = ['action-checkbox']
allow_tags = getattr(attr, 'allow_tags', False)
boolean = getattr(attr, 'boolean', False)
if boolean:
allow_tags = True
result_repr = display_for_value(value, boolean)
# Strip HTML tags in the resulting text, except if the
# function has an "allow_tags" attribute set to True.
if allow_tags:
result_repr = mark_safe(result_repr)
if isinstance(value, (datetime.date, datetime.time)):
row_classes.append('nowrap')
else:
if isinstance(f.rel, models.ManyToOneRel):
field_val = getattr(result, f.name)
if field_val is None:
result_repr = EMPTY_CHANGELIST_VALUE
else:
result_repr = field_val
else:
result_repr = display_for_field(value, f)
if isinstance(f, (models.DateField, models.TimeField, models.ForeignKey)):
row_classes.append('nowrap')
if force_text(result_repr) == '':
result_repr = mark_safe(' ')
row_class = mark_safe(' class="%s"' % ' '.join(row_classes))
# If list_display_links not defined, add the link tag to the first field
if link_in_col(first, field_name, cl):
table_tag = 'th' if first else 'td'
first = False
# Display link to the result's change_view if the url exists, else
# display just the result's representation.
try:
url = cl.url_for_result(result)
except NoReverseMatch:
link_or_text = result_repr
else:
url = add_preserved_filters({'preserved_filters': cl.preserved_filters, 'opts': cl.opts}, url)
# Convert the pk to something that can be used in Javascript.
# Problem cases are long ints (23L) and non-ASCII strings.
if cl.to_field:
attr = str(cl.to_field)
else:
attr = pk
value = result.serializable_value(attr)
result_id = escapejs(value)
link_or_text = format_html(
'<a href="{}"{}>{}</a>',
url,
format_html(
' onclick="opener.dismissRelatedLookupPopup(window, '
''{}'); return false;"', result_id
) if cl.is_popup else '',
result_repr)
yield format_html('<{}{}>{}</{}>',
table_tag,
row_class,
link_or_text,
table_tag)
else:
# By default the fields come from ModelAdmin.list_editable, but if we pull
# the fields out of the form instead of list_editable custom admins
# can provide fields on a per request basis
if (form and field_name in form.fields and not (
field_name == cl.model._meta.pk.name and
form[cl.model._meta.pk.name].is_hidden)):
bf = form[field_name]
result_repr = mark_safe(force_text(bf.errors) + force_text(bf))
yield format_html('<td{}>{}</td>', row_class, result_repr)
if form and not form[cl.model._meta.pk.name].is_hidden:
yield format_html('<td>{}</td>', force_text(form[cl.model._meta.pk.name]))
class ResultList(list):
# Wrapper class used to return items in a list_editable
# changelist, annotated with the form object for error
# reporting purposes. Needed to maintain backwards
# compatibility with existing admin templates.
def __init__(self, form, *items):
self.form = form
super(ResultList, self).__init__(*items)
def results(cl):
if cl.formset:
for res, form in zip(cl.result_list, cl.formset.forms):
yield ResultList(form, items_for_result(cl, res, form))
else:
for res in cl.result_list:
yield ResultList(None, items_for_result(cl, res, None))
def result_hidden_fields(cl):
if cl.formset:
for res, form in zip(cl.result_list, cl.formset.forms):
if form[cl.model._meta.pk.name].is_hidden:
yield mark_safe(force_text(form[cl.model._meta.pk.name]))
@register.inclusion_tag("admin/change_list_results.html")
def result_list(cl):
"""
Displays the headers and data list together
"""
headers = list(result_headers(cl))
num_sorted_fields = 0
for h in headers:
if h['sortable'] and h['sorted']:
num_sorted_fields += 1
return {'cl': cl,
'result_hidden_fields': list(result_hidden_fields(cl)),
'result_headers': headers,
'num_sorted_fields': num_sorted_fields,
'results': list(results(cl))}
@register.inclusion_tag('admin/date_hierarchy.html')
def date_hierarchy(cl):
"""
Displays the date hierarchy for date drill-down functionality.
"""
if cl.date_hierarchy:
field_name = cl.date_hierarchy
field = cl.opts.get_field(field_name)
dates_or_datetimes = 'datetimes' if isinstance(field, models.DateTimeField) else 'dates'
year_field = '%s__year' % field_name
month_field = '%s__month' % field_name
day_field = '%s__day' % field_name
field_generic = '%s__' % field_name
year_lookup = cl.params.get(year_field)
month_lookup = cl.params.get(month_field)
day_lookup = cl.params.get(day_field)
link = lambda filters: cl.get_query_string(filters, [field_generic])
if not (year_lookup or month_lookup or day_lookup):
# select appropriate start level
date_range = cl.queryset.aggregate(first=models.Min(field_name),
last=models.Max(field_name))
if date_range['first'] and date_range['last']:
if date_range['first'].year == date_range['last'].year:
year_lookup = date_range['first'].year
if date_range['first'].month == date_range['last'].month:
month_lookup = date_range['first'].month
if year_lookup and month_lookup and day_lookup:
day = datetime.date(int(year_lookup), int(month_lookup), int(day_lookup))
return {
'show': True,
'back': {
'link': link({year_field: year_lookup, month_field: month_lookup}),
'title': capfirst(formats.date_format(day, 'YEAR_MONTH_FORMAT'))
},
'choices': [{'title': capfirst(formats.date_format(day, 'MONTH_DAY_FORMAT'))}]
}
elif year_lookup and month_lookup:
days = cl.queryset.filter(**{year_field: year_lookup, month_field: month_lookup})
days = getattr(days, dates_or_datetimes)(field_name, 'day')
return {
'show': True,
'back': {
'link': link({year_field: year_lookup}),
'title': str(year_lookup)
},
'choices': [{
'link': link({year_field: year_lookup, month_field: month_lookup, day_field: day.day}),
'title': capfirst(formats.date_format(day, 'MONTH_DAY_FORMAT'))
} for day in days]
}
elif year_lookup:
months = cl.queryset.filter(**{year_field: year_lookup})
months = getattr(months, dates_or_datetimes)(field_name, 'month')
return {
'show': True,
'back': {
'link': link({}),
'title': _('All dates')
},
'choices': [{
'link': link({year_field: year_lookup, month_field: month.month}),
'title': capfirst(formats.date_format(month, 'YEAR_MONTH_FORMAT'))
} for month in months]
}
else:
years = getattr(cl.queryset, dates_or_datetimes)(field_name, 'year')
return {
'show': True,
'choices': [{
'link': link({year_field: str(year.year)}),
'title': str(year.year),
} for year in years]
}
@register.inclusion_tag('admin/search_form.html')
def search_form(cl):
"""
Displays a search form for searching the list.
"""
return {
'cl': cl,
'show_result_count': cl.result_count != cl.full_result_count,
'search_var': SEARCH_VAR
}
@register.simple_tag
def admin_list_filter(cl, spec):
tpl = get_template(spec.template)
return tpl.render({
'title': spec.title,
'choices': list(spec.choices(cl)),
'spec': spec,
})
@register.inclusion_tag('admin/actions.html', takes_context=True)
def admin_actions(context):
"""
Track the number of times the action field has been rendered on the page,
so we know which value to use.
"""
context['action_index'] = context.get('action_index', -1) + 1
return context
|
macmanes-lab/MCBS913 | refs/heads/master | code/Junhong Chen/samTobamAllInOne.py | 1 | """
Author: Junhong Chen
"""
import os
import sys
import subprocess
rootDir = sys.argv[1]
for dirName, subdirList, fileList in os.walk(rootDir):
print('Found directory: %s' % dirName)
for fname in fileList:
if fname.endswith("sam"):
print "sam file: ",fname
filename = dirName + "/"+fname
bname = dirName + "/"+fname.split(".")[0]
oname = sys.argv[2] + "/"+fname.split(".")[0]
#sname = sys.argv[3] + "/"+fname.split(".")[0]
cmd = "samtools view -bS %s | samtools sort - %s" % (filename,oname)
subprocess.Popen(cmd,shell=True)
# cmd1 = "samtools flagstat %s > %s" % (oname+".bam",sname+".samstat")
# subprocess.call(cmd1,shell=True)
|
damianmoore/django-cms | refs/heads/develop | cms/utils/mail.py | 21 | # -*- coding: utf-8 -*-
from django.core.mail import EmailMultiAlternatives
from django.core.urlresolvers import reverse
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from django.contrib.sites.models import Site
from cms.utils.urlutils import urljoin
def send_mail(subject, txt_template, to, context=None, html_template=None, fail_silently=True):
"""
Multipart message helper with template rendering.
"""
site = Site.objects.get_current()
context = context or {}
context.update({
'login_url': "http://%s" % urljoin(site.domain, reverse('admin:index')),
'title': subject,
})
txt_body = render_to_string(txt_template, context)
message = EmailMultiAlternatives(subject=subject, body=txt_body, to=to)
if html_template:
body = render_to_string(html_template, context)
message.attach_alternative(body, 'text/html')
message.send(fail_silently=fail_silently)
def mail_page_user_change(user, created=False, password=""):
"""
Send email notification to given user.
Used it PageUser profile creation/update.
"""
if created:
subject = _('CMS - your user account was created.')
else:
subject = _('CMS - your user account was changed.')
send_mail(subject, 'admin/cms/mail/page_user_change.txt', [user.email], {
'user': user,
'password': password or "*" * 8,
'created': created,
}, 'admin/cms/mail/page_user_change.html')
|
Endika/c2c-rd-addons | refs/heads/8.0 | chricar_top/wizard/stock_location_realestate.py | 4 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp.osv import fields, osv
class stock_location_product(osv.osv_memory):
_name = "stock.location.realestate"
_description = "Real estate by Location"
_columns = {
}
def action_open_window(self, cr, uid, ids, context=None):
""" To open location wise product information specific to given duration
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@param ids: An ID or list of IDs if we want more than one
@param context: A standard dictionary
@return: Invoice type
"""
mod_obj = self.pool.get('ir.model.data')
for location_obj in self.read(cr, uid, ids):
return {
'name': False,
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'chricar.top',
'type': 'ir.actions.act_window',
'context': {'location_id': context['active_id'],
},
}
stock_location_product()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
parttimenerd/temci | refs/heads/master | temci/utils/sudo_utils.py | 1 | import logging
import os
import sys
from io import TextIOWrapper, BufferedRandom, BufferedRWPair, BufferedWriter, IOBase
from pwd import getpwnam
from typing import Union, Tuple, Dict
from temci.utils.settings import Settings
def get_bench_user() -> str:
user = Settings()["env"]["USER"]
return os.getenv("USER", "") if user == "" else user
def bench_as_different_user() -> bool:
return get_bench_user() != os.getenv("USER", get_bench_user())
def get_bench_uid_and_gid() -> Tuple[int, int]:
pwnam = getpwnam(get_bench_user())
return pwnam.pw_uid, pwnam.pw_gid
_logged_chown_error = False
def chown(path: Union[str, TextIOWrapper, BufferedRandom, BufferedRWPair, BufferedWriter, IOBase]):
if not bench_as_different_user():
return
if isinstance(path, IOBase) and path.isatty():
return
if not isinstance(path, str):
return chown(path.name)
ids = ()
try:
ids = get_bench_uid_and_gid()
except:
global _logged_chown_error
if not _logged_chown_error:
logging.warn("Could not get user id for user {} therefore no chowning possible".format(get_bench_user()))
_logged_chown_error = True
return
try:
os.chown(path, *ids)
except FileNotFoundError:
pass
def get_env_setting() -> Dict[str, str]:
env = Settings()["env"].copy()
if env["USER"] == "":
env["USER"] = get_bench_user()
if env["PATH"] == "":
env["PATH"] = os.getenv("PATH", "")
return env
if __name__ == '__main__':
chown(sys.stdin) |
msegado/edx-platform | refs/heads/master | common/djangoapps/embargo/migrations/0002_data__add_countries.py | 26 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Converted from the original South migration 0003_add_countries.py
from django.db import migrations, models
from django_countries import countries
def create_embargo_countries(apps, schema_editor):
"""Populate the available countries with all 2-character ISO country codes. """
country_model = apps.get_model("embargo", "Country")
db_alias = schema_editor.connection.alias
for country_code, __ in list(countries):
country_model.objects.using(db_alias).get_or_create(country=country_code)
def remove_embargo_countries(apps, schema_editor):
"""Clear all available countries. """
country_model = apps.get_model("embargo", "Country")
db_alias = schema_editor.connection.alias
country_model.objects.using(db_alias).all().delete()
class Migration(migrations.Migration):
dependencies = [
('embargo', '0001_initial'),
]
operations = [
migrations.RunPython(create_embargo_countries, remove_embargo_countries),
]
|
RaresO/test | refs/heads/master | node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py | 1835 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""New implementation of Visual Studio project generation."""
import os
import random
import gyp.common
# hashlib is supplied as of Python 2.5 as the replacement interface for md5
# and other secure hashes. In 2.6, md5 is deprecated. Import hashlib if
# available, avoiding a deprecation warning under 2.6. Import md5 otherwise,
# preserving 2.4 compatibility.
try:
import hashlib
_new_md5 = hashlib.md5
except ImportError:
import md5
_new_md5 = md5.new
# Initialize random number generator
random.seed()
# GUIDs for project types
ENTRY_TYPE_GUIDS = {
'project': '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}',
'folder': '{2150E333-8FDC-42A3-9474-1A3956D46DE8}',
}
#------------------------------------------------------------------------------
# Helper functions
def MakeGuid(name, seed='msvs_new'):
"""Returns a GUID for the specified target name.
Args:
name: Target name.
seed: Seed for MD5 hash.
Returns:
A GUID-line string calculated from the name and seed.
This generates something which looks like a GUID, but depends only on the
name and seed. This means the same name/seed will always generate the same
GUID, so that projects and solutions which refer to each other can explicitly
determine the GUID to refer to explicitly. It also means that the GUID will
not change when the project for a target is rebuilt.
"""
# Calculate a MD5 signature for the seed and name.
d = _new_md5(str(seed) + str(name)).hexdigest().upper()
# Convert most of the signature to GUID form (discard the rest)
guid = ('{' + d[:8] + '-' + d[8:12] + '-' + d[12:16] + '-' + d[16:20]
+ '-' + d[20:32] + '}')
return guid
#------------------------------------------------------------------------------
class MSVSSolutionEntry(object):
def __cmp__(self, other):
# Sort by name then guid (so things are in order on vs2008).
return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))
class MSVSFolder(MSVSSolutionEntry):
"""Folder in a Visual Studio project or solution."""
def __init__(self, path, name = None, entries = None,
guid = None, items = None):
"""Initializes the folder.
Args:
path: Full path to the folder.
name: Name of the folder.
entries: List of folder entries to nest inside this folder. May contain
Folder or Project objects. May be None, if the folder is empty.
guid: GUID to use for folder, if not None.
items: List of solution items to include in the folder project. May be
None, if the folder does not directly contain items.
"""
if name:
self.name = name
else:
# Use last layer.
self.name = os.path.basename(path)
self.path = path
self.guid = guid
# Copy passed lists (or set to empty lists)
self.entries = sorted(list(entries or []))
self.items = list(items or [])
self.entry_type_guid = ENTRY_TYPE_GUIDS['folder']
def get_guid(self):
if self.guid is None:
# Use consistent guids for folders (so things don't regenerate).
self.guid = MakeGuid(self.path, seed='msvs_folder')
return self.guid
#------------------------------------------------------------------------------
class MSVSProject(MSVSSolutionEntry):
"""Visual Studio project."""
def __init__(self, path, name = None, dependencies = None, guid = None,
spec = None, build_file = None, config_platform_overrides = None,
fixpath_prefix = None):
"""Initializes the project.
Args:
path: Absolute path to the project file.
name: Name of project. If None, the name will be the same as the base
name of the project file.
dependencies: List of other Project objects this project is dependent
upon, if not None.
guid: GUID to use for project, if not None.
spec: Dictionary specifying how to build this project.
build_file: Filename of the .gyp file that the vcproj file comes from.
config_platform_overrides: optional dict of configuration platforms to
used in place of the default for this target.
fixpath_prefix: the path used to adjust the behavior of _fixpath
"""
self.path = path
self.guid = guid
self.spec = spec
self.build_file = build_file
# Use project filename if name not specified
self.name = name or os.path.splitext(os.path.basename(path))[0]
# Copy passed lists (or set to empty lists)
self.dependencies = list(dependencies or [])
self.entry_type_guid = ENTRY_TYPE_GUIDS['project']
if config_platform_overrides:
self.config_platform_overrides = config_platform_overrides
else:
self.config_platform_overrides = {}
self.fixpath_prefix = fixpath_prefix
self.msbuild_toolset = None
def set_dependencies(self, dependencies):
self.dependencies = list(dependencies or [])
def get_guid(self):
if self.guid is None:
# Set GUID from path
# TODO(rspangler): This is fragile.
# 1. We can't just use the project filename sans path, since there could
# be multiple projects with the same base name (for example,
# foo/unittest.vcproj and bar/unittest.vcproj).
# 2. The path needs to be relative to $SOURCE_ROOT, so that the project
# GUID is the same whether it's included from base/base.sln or
# foo/bar/baz/baz.sln.
# 3. The GUID needs to be the same each time this builder is invoked, so
# that we don't need to rebuild the solution when the project changes.
# 4. We should be able to handle pre-built project files by reading the
# GUID from the files.
self.guid = MakeGuid(self.name)
return self.guid
def set_msbuild_toolset(self, msbuild_toolset):
self.msbuild_toolset = msbuild_toolset
#------------------------------------------------------------------------------
class MSVSSolution(object):
"""Visual Studio solution."""
def __init__(self, path, version, entries=None, variants=None,
websiteProperties=True):
"""Initializes the solution.
Args:
path: Path to solution file.
version: Format version to emit.
entries: List of entries in solution. May contain Folder or Project
objects. May be None, if the folder is empty.
variants: List of build variant strings. If none, a default list will
be used.
websiteProperties: Flag to decide if the website properties section
is generated.
"""
self.path = path
self.websiteProperties = websiteProperties
self.version = version
# Copy passed lists (or set to empty lists)
self.entries = list(entries or [])
if variants:
# Copy passed list
self.variants = variants[:]
else:
# Use default
self.variants = ['Debug|Win32', 'Release|Win32']
# TODO(rspangler): Need to be able to handle a mapping of solution config
# to project config. Should we be able to handle variants being a dict,
# or add a separate variant_map variable? If it's a dict, we can't
# guarantee the order of variants since dict keys aren't ordered.
# TODO(rspangler): Automatically write to disk for now; should delay until
# node-evaluation time.
self.Write()
def Write(self, writer=gyp.common.WriteOnDiff):
"""Writes the solution file to disk.
Raises:
IndexError: An entry appears multiple times.
"""
# Walk the entry tree and collect all the folders and projects.
all_entries = set()
entries_to_check = self.entries[:]
while entries_to_check:
e = entries_to_check.pop(0)
# If this entry has been visited, nothing to do.
if e in all_entries:
continue
all_entries.add(e)
# If this is a folder, check its entries too.
if isinstance(e, MSVSFolder):
entries_to_check += e.entries
all_entries = sorted(all_entries)
# Open file and print header
f = writer(self.path)
f.write('Microsoft Visual Studio Solution File, '
'Format Version %s\r\n' % self.version.SolutionVersion())
f.write('# %s\r\n' % self.version.Description())
# Project entries
sln_root = os.path.split(self.path)[0]
for e in all_entries:
relative_path = gyp.common.RelativePath(e.path, sln_root)
# msbuild does not accept an empty folder_name.
# use '.' in case relative_path is empty.
folder_name = relative_path.replace('/', '\\') or '.'
f.write('Project("%s") = "%s", "%s", "%s"\r\n' % (
e.entry_type_guid, # Entry type GUID
e.name, # Folder name
folder_name, # Folder name (again)
e.get_guid(), # Entry GUID
))
# TODO(rspangler): Need a way to configure this stuff
if self.websiteProperties:
f.write('\tProjectSection(WebsiteProperties) = preProject\r\n'
'\t\tDebug.AspNetCompiler.Debug = "True"\r\n'
'\t\tRelease.AspNetCompiler.Debug = "False"\r\n'
'\tEndProjectSection\r\n')
if isinstance(e, MSVSFolder):
if e.items:
f.write('\tProjectSection(SolutionItems) = preProject\r\n')
for i in e.items:
f.write('\t\t%s = %s\r\n' % (i, i))
f.write('\tEndProjectSection\r\n')
if isinstance(e, MSVSProject):
if e.dependencies:
f.write('\tProjectSection(ProjectDependencies) = postProject\r\n')
for d in e.dependencies:
f.write('\t\t%s = %s\r\n' % (d.get_guid(), d.get_guid()))
f.write('\tEndProjectSection\r\n')
f.write('EndProject\r\n')
# Global section
f.write('Global\r\n')
# Configurations (variants)
f.write('\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r\n')
for v in self.variants:
f.write('\t\t%s = %s\r\n' % (v, v))
f.write('\tEndGlobalSection\r\n')
# Sort config guids for easier diffing of solution changes.
config_guids = []
config_guids_overrides = {}
for e in all_entries:
if isinstance(e, MSVSProject):
config_guids.append(e.get_guid())
config_guids_overrides[e.get_guid()] = e.config_platform_overrides
config_guids.sort()
f.write('\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n')
for g in config_guids:
for v in self.variants:
nv = config_guids_overrides[g].get(v, v)
# Pick which project configuration to build for this solution
# configuration.
f.write('\t\t%s.%s.ActiveCfg = %s\r\n' % (
g, # Project GUID
v, # Solution build configuration
nv, # Project build config for that solution config
))
# Enable project in this solution configuration.
f.write('\t\t%s.%s.Build.0 = %s\r\n' % (
g, # Project GUID
v, # Solution build configuration
nv, # Project build config for that solution config
))
f.write('\tEndGlobalSection\r\n')
# TODO(rspangler): Should be able to configure this stuff too (though I've
# never seen this be any different)
f.write('\tGlobalSection(SolutionProperties) = preSolution\r\n')
f.write('\t\tHideSolutionNode = FALSE\r\n')
f.write('\tEndGlobalSection\r\n')
# Folder mappings
# Omit this section if there are no folders
if any([e.entries for e in all_entries if isinstance(e, MSVSFolder)]):
f.write('\tGlobalSection(NestedProjects) = preSolution\r\n')
for e in all_entries:
if not isinstance(e, MSVSFolder):
continue # Does not apply to projects, only folders
for subentry in e.entries:
f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid()))
f.write('\tEndGlobalSection\r\n')
f.write('EndGlobal\r\n')
f.close()
|
amohanta/miasm | refs/heads/master | miasm2/ir/translators/python.py | 7 | from miasm2.ir.translators.translator import Translator
class TranslatorPython(Translator):
"""Translate a Miasm expression to an equivalent Python code
Memory is abstracted using the unimplemented function:
int memory(int address, int size)
"""
# Implemented language
__LANG__ = "Python"
# Operations translation
op_no_translate = ["+", "-", "/", "%", ">>", "<<", "&", "^", "|", "*"]
def from_ExprInt(self, expr):
return str(expr)
def from_ExprId(self, expr):
return str(expr)
def from_ExprMem(self, expr):
return "memory(%s, 0x%x)" % (self.from_expr(expr.arg),
expr.size / 8)
def from_ExprSlice(self, expr):
out = self.from_expr(expr.arg)
if expr.start != 0:
out = "(%s >> %d)" % (out, expr.start)
return "(%s & 0x%x)" % (out, (1 << (expr.stop - expr.start)) - 1)
def from_ExprCompose(self, expr):
out = []
for subexpr, start, stop in expr.args:
out.append("((%s & 0x%x) << %d)" % (self.from_expr(subexpr),
(1 << (stop - start)) - 1,
start))
return "(%s)" % ' | '.join(out)
def from_ExprCond(self, expr):
return "(%s if (%s) else %s)" % (self.from_expr(expr.src1),
self.from_expr(expr.cond),
self.from_expr(expr.src2))
def from_ExprOp(self, expr):
if expr.op in self.op_no_translate:
args = map(self.from_expr, expr.args)
if len(expr.args) == 1:
return "((%s %s) & 0x%x)" % (expr.op,
args[0],
(1 << expr.size) - 1)
else:
return "((%s) & 0x%x)" % ((" %s " % expr.op).join(args),
(1 << expr.size) - 1)
elif expr.op == "parity":
return "(%s & 0x1)" % self.from_expr(expr.args[0])
raise NotImplementedError("Unknown operator: %s" % expr.op)
def from_ExprAff(self, expr):
return "%s = %s" % tuple(map(self.from_expr, (expr.dst, expr.src)))
# Register the class
Translator.register(TranslatorPython)
|
GunnerJnr/_CodeInstitute | refs/heads/master | Stream-3/Full-Stack-Development/19.Djangos-Testing-Framework/2.How-To-Test-Views-And-Urls/we_are_social/polls/migrations/__init__.py | 12133432 | |
uestcxl/OnlineJudge | refs/heads/master | account/__init__.py | 12133432 | |
hosseinmh/jango_learning | refs/heads/master | .venv/lib/python2.7/site-packages/django/contrib/gis/maps/__init__.py | 12133432 | |
libracore/erpnext | refs/heads/v12 | erpnext/support/web_form/issues/__init__.py | 12133432 | |
fabiobatalha/SciELO-Manager | refs/heads/master | scielomanager/maintenancewindow/migrations/0001_initial.py | 3 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Event'
db.create_table('maintenancewindow_event', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('title', self.gf('django.db.models.fields.CharField')(max_length=128)),
('begin_at', self.gf('django.db.models.fields.DateTimeField')()),
('end_at', self.gf('django.db.models.fields.DateTimeField')(db_index=True)),
('description', self.gf('django.db.models.fields.TextField')()),
('is_blocking_users', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
('is_finished', self.gf('django.db.models.fields.BooleanField')(default=False)),
('event_report', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('maintenancewindow', ['Event'])
def backwards(self, orm):
# Deleting model 'Event'
db.delete_table('maintenancewindow_event')
models = {
'maintenancewindow.event': {
'Meta': {'ordering': "['begin_at', 'title']", 'object_name': 'Event'},
'begin_at': ('django.db.models.fields.DateTimeField', [], {}),
'description': ('django.db.models.fields.TextField', [], {}),
'end_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
'event_report': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_blocking_users': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
'is_finished': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '128'})
}
}
complete_apps = ['maintenancewindow'] |
ualikhansars/Gwent | refs/heads/master | lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py | 346 | from io import BytesIO
class CallbackFileWrapper(object):
"""
Small wrapper around a fp object which will tee everything read into a
buffer, and when that file is closed it will execute a callback with the
contents of that buffer.
All attributes are proxied to the underlying file object.
This class uses members with a double underscore (__) leading prefix so as
not to accidentally shadow an attribute.
"""
def __init__(self, fp, callback):
self.__buf = BytesIO()
self.__fp = fp
self.__callback = callback
def __getattr__(self, name):
# The vaguaries of garbage collection means that self.__fp is
# not always set. By using __getattribute__ and the private
# name[0] allows looking up the attribute value and raising an
# AttributeError when it doesn't exist. This stop thigns from
# infinitely recursing calls to getattr in the case where
# self.__fp hasn't been set.
#
# [0] https://docs.python.org/2/reference/expressions.html#atom-identifiers
fp = self.__getattribute__('_CallbackFileWrapper__fp')
return getattr(fp, name)
def __is_fp_closed(self):
try:
return self.__fp.fp is None
except AttributeError:
pass
try:
return self.__fp.closed
except AttributeError:
pass
# We just don't cache it then.
# TODO: Add some logging here...
return False
def _close(self):
if self.__callback:
self.__callback(self.__buf.getvalue())
# We assign this to None here, because otherwise we can get into
# really tricky problems where the CPython interpreter dead locks
# because the callback is holding a reference to something which
# has a __del__ method. Setting this to None breaks the cycle
# and allows the garbage collector to do it's thing normally.
self.__callback = None
def read(self, amt=None):
data = self.__fp.read(amt)
self.__buf.write(data)
if self.__is_fp_closed():
self._close()
return data
def _safe_read(self, amt):
data = self.__fp._safe_read(amt)
if amt == 2 and data == b'\r\n':
# urllib executes this read to toss the CRLF at the end
# of the chunk.
return data
self.__buf.write(data)
if self.__is_fp_closed():
self._close()
return data
|
kobejean/tensorflow | refs/heads/master | tensorflow/contrib/opt/python/training/ggt_test.py | 25 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for GGTOptimizer."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.contrib.opt.python.training.ggt import GGTOptimizer
from tensorflow.python.eager import context
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import test_util
from tensorflow.python.ops import resource_variable_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
def ggt_update_numpy(param,
g_t,
lr,
grad_buffer,
m,
window,
t,
beta1=0.9,
eps=1e-4,
svd_eps=1e-6,
sigma_eps=1e-2):
"""Tests the correctness of one step of GGT."""
m_t = m * beta1 + (1 - beta1) * g_t
grad_buffer[((t - 1) % window), :] = m_t
m_matrix = np.transpose(grad_buffer / np.sqrt(np.minimum(t, window)))
mm = np.dot(np.transpose(m_matrix), m_matrix)
damping = np.eye(window) * svd_eps
u, sigma, _ = np.linalg.svd(mm + damping)
sigma_sqrt_inv = np.power(np.sqrt(sigma) + sigma_eps, -3)
new_step = np.linalg.multi_dot([
m_matrix, u,
np.diag(sigma_sqrt_inv),
np.transpose(u),
np.transpose(m_matrix), m_t
])
sigma_sqrt_min = np.sqrt(sigma).min()
if sigma_sqrt_min > eps:
new_step += (m_t - np.linalg.multi_dot([
m_matrix, u,
np.diag(1.0 / sigma),
np.transpose(u),
np.transpose(m_matrix), m_t
])) * (1.0 / sigma_sqrt_min)
param_t = param - lr * new_step
return param_t, m_t, grad_buffer
class GGTOptimizerTest(test.TestCase):
def doTestBasic(self, use_resource=False):
# SVD does not support float16
for i, dtype in enumerate([dtypes.float32, dtypes.float64]):
with self.session(graph=ops.Graph()):
# Initialize variables for numpy implementation.
m0 = 0.0
window = 3
grad_buffer = np.zeros((window, 4), dtype=dtype.as_numpy_dtype)
lr = 0.001
var0_np = np.array([1.0, 2.0], dtype=dtype.as_numpy_dtype)
grads0_np = np.array([0.1, 0.1], dtype=dtype.as_numpy_dtype)
var1_np = np.array([3.0, 4.0], dtype=dtype.as_numpy_dtype)
grads1_np = np.array([0.01, 0.01], dtype=dtype.as_numpy_dtype)
if use_resource:
var0 = resource_variable_ops.ResourceVariable(
var0_np, name="var0_%d" % i)
var1 = resource_variable_ops.ResourceVariable(
var1_np, name="var1_%d" % i)
else:
var0 = variables.Variable(var0_np, name="var0")
var1 = variables.Variable(var1_np, name="var1")
grads0 = constant_op.constant(grads0_np)
grads1 = constant_op.constant(grads1_np)
opt = GGTOptimizer(learning_rate=lr, window=window)
update = opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
opt_variables = opt.variables()
m_t = opt._get_moment1()
grad_buffer_t = opt._get_grad_buffer()
g_t = opt._get_flat_grad()
self.assertTrue(m_t is not None)
self.assertTrue(grad_buffer_t is not None)
self.assertTrue(g_t is not None)
self.assertIn(m_t, opt_variables)
self.assertIn(grad_buffer_t, opt_variables)
self.assertIn(g_t, opt_variables)
with ops.Graph().as_default():
# Shouldn't return non-slot variables from other graphs.
self.assertEqual(0, len(opt.variables()))
if not context.executing_eagerly():
self.evaluate(variables.global_variables_initializer())
# Fetch params to validate initial values
self.assertAllClose([1.0, 2.0], self.evaluate(var0))
self.assertAllClose([3.0, 4.0], self.evaluate(var1))
m_t = opt._get_moment1()
grad_buffer_t = opt._get_grad_buffer()
g_t = opt._get_flat_grad()
# Run 3 steps of GGT
for t in range(1, 4):
if not context.executing_eagerly():
self.evaluate(update)
elif t > 1:
opt.apply_gradients(zip([grads0, grads1], [var0, var1]))
if t == 1:
self.assertAllCloseAccordingToType(
np.array([0.01, 0.01, 0.001, 0.001]), self.evaluate(m_t))
self.assertAllCloseAccordingToType(
np.array([[0.01, 0.01, 0.001, 0.001], [0., 0., 0., 0.],
[0., 0., 0., 0.]]), self.evaluate(grad_buffer_t))
elif t == 2:
self.assertAllCloseAccordingToType(
np.array([0.019, 0.019, 0.0019, 0.0019]), self.evaluate(m_t))
self.assertAllCloseAccordingToType(
np.array([[0.01, 0.01, 0.001, 0.001],
[0.019, 0.019, 0.0019, 0.0019], [0., 0., 0., 0.]]),
self.evaluate(grad_buffer_t))
else:
self.assertAllCloseAccordingToType(
np.array([0.0271, 0.0271, 0.00271, 0.00271]),
self.evaluate(m_t))
self.assertAllCloseAccordingToType(
np.array([[0.01, 0.01, 0.001,
0.001], [0.019, 0.019, 0.0019, 0.0019],
[0.0271, 0.0271, 0.00271, 0.00271]]),
self.evaluate(grad_buffer_t))
self.assertAllCloseAccordingToType([0.1, 0.1, 0.01, 0.01],
self.evaluate(g_t))
var_np = np.append(var0_np, var1_np)
grads_np = np.append(grads0_np, grads1_np)
var_np, m0, grad_buffer = ggt_update_numpy(var_np, grads_np, lr,
grad_buffer, m0, window, t)
var0_np = var_np[:2]
var1_np = var_np[2:]
# Validate updated params
self.assertAllCloseAccordingToType(var0_np, self.evaluate(var0))
self.assertAllCloseAccordingToType(var1_np, self.evaluate(var1))
def testBasic(self):
with self.cached_session():
self.doTestBasic(use_resource=False)
@test_util.run_in_graph_and_eager_modes(reset_test=True)
def testResourceBasic(self):
self.doTestBasic(use_resource=True)
if __name__ == "__main__":
test.main()
|
savoirfairelinux/django | refs/heads/master | django/contrib/syndication/views.py | 9 | from calendar import timegm
from contextlib import suppress
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
from django.http import Http404, HttpResponse
from django.template import TemplateDoesNotExist, loader
from django.utils import feedgenerator
from django.utils.encoding import iri_to_uri
from django.utils.html import escape
from django.utils.http import http_date
from django.utils.timezone import get_default_timezone, is_naive, make_aware
def add_domain(domain, url, secure=False):
protocol = 'https' if secure else 'http'
if url.startswith('//'):
# Support network-path reference (see #16753) - RSS requires a protocol
url = '%s:%s' % (protocol, url)
elif not url.startswith(('http://', 'https://', 'mailto:')):
url = iri_to_uri('%s://%s%s' % (protocol, domain, url))
return url
class FeedDoesNotExist(ObjectDoesNotExist):
pass
class Feed:
feed_type = feedgenerator.DefaultFeed
title_template = None
description_template = None
def __call__(self, request, *args, **kwargs):
try:
obj = self.get_object(request, *args, **kwargs)
except ObjectDoesNotExist:
raise Http404('Feed object does not exist.')
feedgen = self.get_feed(obj, request)
response = HttpResponse(content_type=feedgen.content_type)
if hasattr(self, 'item_pubdate') or hasattr(self, 'item_updateddate'):
# if item_pubdate or item_updateddate is defined for the feed, set
# header so as ConditionalGetMiddleware is able to send 304 NOT MODIFIED
response['Last-Modified'] = http_date(
timegm(feedgen.latest_post_date().utctimetuple()))
feedgen.write(response, 'utf-8')
return response
def item_title(self, item):
# Titles should be double escaped by default (see #6533)
return escape(str(item))
def item_description(self, item):
return str(item)
def item_link(self, item):
try:
return item.get_absolute_url()
except AttributeError:
raise ImproperlyConfigured(
'Give your %s class a get_absolute_url() method, or define an '
'item_link() method in your Feed class.' % item.__class__.__name__
)
def item_enclosures(self, item):
enc_url = self._get_dynamic_attr('item_enclosure_url', item)
if enc_url:
enc = feedgenerator.Enclosure(
url=str(enc_url),
length=str(self._get_dynamic_attr('item_enclosure_length', item)),
mime_type=str(self._get_dynamic_attr('item_enclosure_mime_type', item)),
)
return [enc]
return []
def _get_dynamic_attr(self, attname, obj, default=None):
try:
attr = getattr(self, attname)
except AttributeError:
return default
if callable(attr):
# Check co_argcount rather than try/excepting the function and
# catching the TypeError, because something inside the function
# may raise the TypeError. This technique is more accurate.
try:
code = attr.__code__
except AttributeError:
code = attr.__call__.__code__
if code.co_argcount == 2: # one argument is 'self'
return attr(obj)
else:
return attr()
return attr
def feed_extra_kwargs(self, obj):
"""
Return an extra keyword arguments dictionary that is used when
initializing the feed generator.
"""
return {}
def item_extra_kwargs(self, item):
"""
Return an extra keyword arguments dictionary that is used with
the `add_item` call of the feed generator.
"""
return {}
def get_object(self, request, *args, **kwargs):
return None
def get_context_data(self, **kwargs):
"""
Return a dictionary to use as extra context if either
``self.description_template`` or ``self.item_template`` are used.
Default implementation preserves the old behavior
of using {'obj': item, 'site': current_site} as the context.
"""
return {'obj': kwargs.get('item'), 'site': kwargs.get('site')}
def get_feed(self, obj, request):
"""
Return a feedgenerator.DefaultFeed object, fully populated, for
this feed. Raise FeedDoesNotExist for invalid parameters.
"""
current_site = get_current_site(request)
link = self._get_dynamic_attr('link', obj)
link = add_domain(current_site.domain, link, request.is_secure())
feed = self.feed_type(
title=self._get_dynamic_attr('title', obj),
subtitle=self._get_dynamic_attr('subtitle', obj),
link=link,
description=self._get_dynamic_attr('description', obj),
language=settings.LANGUAGE_CODE,
feed_url=add_domain(
current_site.domain,
self._get_dynamic_attr('feed_url', obj) or request.path,
request.is_secure(),
),
author_name=self._get_dynamic_attr('author_name', obj),
author_link=self._get_dynamic_attr('author_link', obj),
author_email=self._get_dynamic_attr('author_email', obj),
categories=self._get_dynamic_attr('categories', obj),
feed_copyright=self._get_dynamic_attr('feed_copyright', obj),
feed_guid=self._get_dynamic_attr('feed_guid', obj),
ttl=self._get_dynamic_attr('ttl', obj),
**self.feed_extra_kwargs(obj)
)
title_tmp = None
if self.title_template is not None:
with suppress(TemplateDoesNotExist):
title_tmp = loader.get_template(self.title_template)
description_tmp = None
if self.description_template is not None:
with suppress(TemplateDoesNotExist):
description_tmp = loader.get_template(self.description_template)
for item in self._get_dynamic_attr('items', obj):
context = self.get_context_data(item=item, site=current_site,
obj=obj, request=request)
if title_tmp is not None:
title = title_tmp.render(context, request)
else:
title = self._get_dynamic_attr('item_title', item)
if description_tmp is not None:
description = description_tmp.render(context, request)
else:
description = self._get_dynamic_attr('item_description', item)
link = add_domain(
current_site.domain,
self._get_dynamic_attr('item_link', item),
request.is_secure(),
)
enclosures = self._get_dynamic_attr('item_enclosures', item)
author_name = self._get_dynamic_attr('item_author_name', item)
if author_name is not None:
author_email = self._get_dynamic_attr('item_author_email', item)
author_link = self._get_dynamic_attr('item_author_link', item)
else:
author_email = author_link = None
tz = get_default_timezone()
pubdate = self._get_dynamic_attr('item_pubdate', item)
if pubdate and is_naive(pubdate):
pubdate = make_aware(pubdate, tz)
updateddate = self._get_dynamic_attr('item_updateddate', item)
if updateddate and is_naive(updateddate):
updateddate = make_aware(updateddate, tz)
feed.add_item(
title=title,
link=link,
description=description,
unique_id=self._get_dynamic_attr('item_guid', item, link),
unique_id_is_permalink=self._get_dynamic_attr(
'item_guid_is_permalink', item),
enclosures=enclosures,
pubdate=pubdate,
updateddate=updateddate,
author_name=author_name,
author_email=author_email,
author_link=author_link,
categories=self._get_dynamic_attr('item_categories', item),
item_copyright=self._get_dynamic_attr('item_copyright', item),
**self.item_extra_kwargs(item)
)
return feed
|
kaushik94/sympy | refs/heads/master | sympy/external/importtools.py | 3 | """Tools to assist importing optional external modules."""
from __future__ import print_function, division
import sys
from distutils.version import LooseVersion
# Override these in the module to change the default warning behavior.
# For example, you might set both to False before running the tests so that
# warnings are not printed to the console, or set both to True for debugging.
WARN_NOT_INSTALLED = None # Default is False
WARN_OLD_VERSION = None # Default is True
def __sympy_debug():
# helper function from sympy/__init__.py
# We don't just import SYMPY_DEBUG from that file because we don't want to
# import all of sympy just to use this module.
import os
debug_str = os.getenv('SYMPY_DEBUG', 'False')
if debug_str in ('True', 'False'):
return eval(debug_str)
else:
raise RuntimeError("unrecognized value for SYMPY_DEBUG: %s" %
debug_str)
if __sympy_debug():
WARN_OLD_VERSION = True
WARN_NOT_INSTALLED = True
def import_module(module, min_module_version=None, min_python_version=None,
warn_not_installed=None, warn_old_version=None,
module_version_attr='__version__', module_version_attr_call_args=None,
__import__kwargs={}, catch=()):
"""
Import and return a module if it is installed.
If the module is not installed, it returns None.
A minimum version for the module can be given as the keyword argument
min_module_version. This should be comparable against the module version.
By default, module.__version__ is used to get the module version. To
override this, set the module_version_attr keyword argument. If the
attribute of the module to get the version should be called (e.g.,
module.version()), then set module_version_attr_call_args to the args such
that module.module_version_attr(*module_version_attr_call_args) returns the
module's version.
If the module version is less than min_module_version using the Python <
comparison, None will be returned, even if the module is installed. You can
use this to keep from importing an incompatible older version of a module.
You can also specify a minimum Python version by using the
min_python_version keyword argument. This should be comparable against
sys.version_info.
If the keyword argument warn_not_installed is set to True, the function will
emit a UserWarning when the module is not installed.
If the keyword argument warn_old_version is set to True, the function will
emit a UserWarning when the library is installed, but cannot be imported
because of the min_module_version or min_python_version options.
Note that because of the way warnings are handled, a warning will be
emitted for each module only once. You can change the default warning
behavior by overriding the values of WARN_NOT_INSTALLED and WARN_OLD_VERSION
in sympy.external.importtools. By default, WARN_NOT_INSTALLED is False and
WARN_OLD_VERSION is True.
This function uses __import__() to import the module. To pass additional
options to __import__(), use the __import__kwargs keyword argument. For
example, to import a submodule A.B, you must pass a nonempty fromlist option
to __import__. See the docstring of __import__().
This catches ImportError to determine if the module is not installed. To
catch additional errors, pass them as a tuple to the catch keyword
argument.
Examples
========
>>> from sympy.external import import_module
>>> numpy = import_module('numpy')
>>> numpy = import_module('numpy', min_python_version=(2, 7),
... warn_old_version=False)
>>> numpy = import_module('numpy', min_module_version='1.5',
... warn_old_version=False) # numpy.__version__ is a string
>>> # gmpy does not have __version__, but it does have gmpy.version()
>>> gmpy = import_module('gmpy', min_module_version='1.14',
... module_version_attr='version', module_version_attr_call_args=(),
... warn_old_version=False)
>>> # To import a submodule, you must pass a nonempty fromlist to
>>> # __import__(). The values do not matter.
>>> p3 = import_module('mpl_toolkits.mplot3d',
... __import__kwargs={'fromlist':['something']})
>>> # matplotlib.pyplot can raise RuntimeError when the display cannot be opened
>>> matplotlib = import_module('matplotlib',
... __import__kwargs={'fromlist':['pyplot']}, catch=(RuntimeError,))
"""
# keyword argument overrides default, and global variable overrides
# keyword argument.
warn_old_version = (WARN_OLD_VERSION if WARN_OLD_VERSION is not None
else warn_old_version or True)
warn_not_installed = (WARN_NOT_INSTALLED if WARN_NOT_INSTALLED is not None
else warn_not_installed or False)
import warnings
# Check Python first so we don't waste time importing a module we can't use
if min_python_version:
if sys.version_info < min_python_version:
if warn_old_version:
warnings.warn("Python version is too old to use %s "
"(%s or newer required)" % (
module, '.'.join(map(str, min_python_version))),
UserWarning, stacklevel=2)
return
# PyPy 1.6 has rudimentary NumPy support and importing it produces errors, so skip it
if module == 'numpy' and '__pypy__' in sys.builtin_module_names:
return
try:
mod = __import__(module, **__import__kwargs)
## there's something funny about imports with matplotlib and py3k. doing
## from matplotlib import collections
## gives python's stdlib collections module. explicitly re-importing
## the module fixes this.
from_list = __import__kwargs.get('fromlist', tuple())
for submod in from_list:
if submod == 'collections' and mod.__name__ == 'matplotlib':
__import__(module + '.' + submod)
except ImportError:
if warn_not_installed:
warnings.warn("%s module is not installed" % module, UserWarning,
stacklevel=2)
return
except catch as e:
if warn_not_installed:
warnings.warn(
"%s module could not be used (%s)" % (module, repr(e)),
stacklevel=2)
return
if min_module_version:
modversion = getattr(mod, module_version_attr)
if module_version_attr_call_args is not None:
modversion = modversion(*module_version_attr_call_args)
if LooseVersion(modversion) < LooseVersion(min_module_version):
if warn_old_version:
# Attempt to create a pretty string version of the version
from ..core.compatibility import string_types
if isinstance(min_module_version, string_types):
verstr = min_module_version
elif isinstance(min_module_version, (tuple, list)):
verstr = '.'.join(map(str, min_module_version))
else:
# Either don't know what this is. Hopefully
# it's something that has a nice str version, like an int.
verstr = str(min_module_version)
warnings.warn("%s version is too old to use "
"(%s or newer required)" % (module, verstr),
UserWarning, stacklevel=2)
return
return mod
|
Mirantis/mos-horizon | refs/heads/master | openstack_dashboard/contrib/developer/theme_preview/views.py | 20 | # Copyright 2015 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from django.utils.translation import ugettext_lazy as _
from horizon import views
class IndexView(views.HorizonTemplateView):
template_name = 'developer/theme_preview/index.html'
page_title = _("Bootstrap Theme Preview")
|
yencarnacion/jaikuengine | refs/heads/master | .google_appengine/lib/django-1.2/django/utils/daemonize.py | 452 | import os
import sys
if os.name == 'posix':
def become_daemon(our_home_dir='.', out_log='/dev/null',
err_log='/dev/null', umask=022):
"Robustly turn into a UNIX daemon, running in our_home_dir."
# First fork
try:
if os.fork() > 0:
sys.exit(0) # kill off parent
except OSError, e:
sys.stderr.write("fork #1 failed: (%d) %s\n" % (e.errno, e.strerror))
sys.exit(1)
os.setsid()
os.chdir(our_home_dir)
os.umask(umask)
# Second fork
try:
if os.fork() > 0:
os._exit(0)
except OSError, e:
sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror))
os._exit(1)
si = open('/dev/null', 'r')
so = open(out_log, 'a+', 0)
se = open(err_log, 'a+', 0)
os.dup2(si.fileno(), sys.stdin.fileno())
os.dup2(so.fileno(), sys.stdout.fileno())
os.dup2(se.fileno(), sys.stderr.fileno())
# Set custom file descriptors so that they get proper buffering.
sys.stdout, sys.stderr = so, se
else:
def become_daemon(our_home_dir='.', out_log=None, err_log=None, umask=022):
"""
If we're not running under a POSIX system, just simulate the daemon
mode by doing redirections and directory changing.
"""
os.chdir(our_home_dir)
os.umask(umask)
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
if err_log:
sys.stderr = open(err_log, 'a', 0)
else:
sys.stderr = NullDevice()
if out_log:
sys.stdout = open(out_log, 'a', 0)
else:
sys.stdout = NullDevice()
class NullDevice:
"A writeable object that writes to nowhere -- like /dev/null."
def write(self, s):
pass
|
h2educ/scikit-learn | refs/heads/master | examples/cluster/plot_ward_structured_vs_unstructured.py | 320 | """
===========================================================
Hierarchical clustering: structured vs unstructured ward
===========================================================
Example builds a swiss roll dataset and runs
hierarchical clustering on their position.
For more information, see :ref:`hierarchical_clustering`.
In a first step, the hierarchical clustering is performed without connectivity
constraints on the structure and is solely based on distance, whereas in
a second step the clustering is restricted to the k-Nearest Neighbors
graph: it's a hierarchical clustering with structure prior.
Some of the clusters learned without connectivity constraints do not
respect the structure of the swiss roll and extend across different folds of
the manifolds. On the opposite, when opposing connectivity constraints,
the clusters form a nice parcellation of the swiss roll.
"""
# Authors : Vincent Michel, 2010
# Alexandre Gramfort, 2010
# Gael Varoquaux, 2010
# License: BSD 3 clause
print(__doc__)
import time as time
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as p3
from sklearn.cluster import AgglomerativeClustering
from sklearn.datasets.samples_generator import make_swiss_roll
###############################################################################
# Generate data (swiss roll dataset)
n_samples = 1500
noise = 0.05
X, _ = make_swiss_roll(n_samples, noise)
# Make it thinner
X[:, 1] *= .5
###############################################################################
# Compute clustering
print("Compute unstructured hierarchical clustering...")
st = time.time()
ward = AgglomerativeClustering(n_clusters=6, linkage='ward').fit(X)
elapsed_time = time.time() - st
label = ward.labels_
print("Elapsed time: %.2fs" % elapsed_time)
print("Number of points: %i" % label.size)
###############################################################################
# Plot result
fig = plt.figure()
ax = p3.Axes3D(fig)
ax.view_init(7, -80)
for l in np.unique(label):
ax.plot3D(X[label == l, 0], X[label == l, 1], X[label == l, 2],
'o', color=plt.cm.jet(np.float(l) / np.max(label + 1)))
plt.title('Without connectivity constraints (time %.2fs)' % elapsed_time)
###############################################################################
# Define the structure A of the data. Here a 10 nearest neighbors
from sklearn.neighbors import kneighbors_graph
connectivity = kneighbors_graph(X, n_neighbors=10, include_self=False)
###############################################################################
# Compute clustering
print("Compute structured hierarchical clustering...")
st = time.time()
ward = AgglomerativeClustering(n_clusters=6, connectivity=connectivity,
linkage='ward').fit(X)
elapsed_time = time.time() - st
label = ward.labels_
print("Elapsed time: %.2fs" % elapsed_time)
print("Number of points: %i" % label.size)
###############################################################################
# Plot result
fig = plt.figure()
ax = p3.Axes3D(fig)
ax.view_init(7, -80)
for l in np.unique(label):
ax.plot3D(X[label == l, 0], X[label == l, 1], X[label == l, 2],
'o', color=plt.cm.jet(float(l) / np.max(label + 1)))
plt.title('With connectivity constraints (time %.2fs)' % elapsed_time)
plt.show()
|
boriel/zxbasic | refs/heads/master | src/symbols/typecast.py | 1 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: ts=4:et:sw=4:
# ----------------------------------------------------------------------
# Copyleft (K), Jose M. Rodriguez-Rosa (a.k.a. Boriel)
#
# This program is Free Software and is released under the terms of
# the GNU General License
# ----------------------------------------------------------------------
from .symbol_ import Symbol
from .type_ import SymbolTYPE
from .type_ import Type as TYPE
from .number import SymbolNUMBER
from .vararray import SymbolVARARRAY
from src.api.errmsg import error
from src.api import errmsg
from src.api import check
class SymbolTYPECAST(Symbol):
""" Defines a typecast operation.
"""
def __init__(self, new_type, operand, lineno):
assert isinstance(new_type, SymbolTYPE)
super(SymbolTYPECAST, self).__init__(operand)
self.lineno = lineno
self.type_ = new_type
# The converted (typecast) node
@property
def operand(self):
return self.children[0]
@operand.setter
def operand(self, operand_):
assert isinstance(operand_, Symbol)
self.children[0] = operand_
@classmethod
def make_node(cls, new_type, node, lineno):
""" Creates a node containing the type cast of
the given one. If new_type == node.type, then
nothing is done, and the same node is
returned.
Returns None on failure (and calls syntax_error)
"""
assert isinstance(new_type, SymbolTYPE)
# None (null) means the given AST node is empty (usually an error)
if node is None:
return None # Do nothing. Return None
assert isinstance(node, Symbol), '<%s> is not a Symbol' % node
# The source and dest types are the same
if new_type == node.type_:
return node # Do nothing. Return as is
# TODO: Create a base scalar type
if isinstance(node, SymbolVARARRAY):
if new_type.size == node.type_.size and TYPE.string not in (new_type, node.type_):
return node
error(lineno, "Array {} type does not match parameter type".format(node.name))
return None
STRTYPE = TYPE.string
# Typecasting, at the moment, only for number
if node.type_ == STRTYPE:
error(lineno, 'Cannot convert string to a value. Use VAL() function')
return None
# Converting from string to number is done by STR
if new_type == STRTYPE:
error(lineno, 'Cannot convert value to string. Use STR() function')
return None
# If the given operand is a constant, perform a static typecast
if check.is_CONST(node):
node.expr = cls(new_type, node.expr, lineno)
return node
if not check.is_number(node) and not check.is_const(node):
return cls(new_type, node, lineno)
# It's a number. So let's convert it directly
if check.is_const(node):
node = SymbolNUMBER(node.value, node.lineno, node.type_)
if new_type.is_basic and not TYPE.is_integral(new_type): # not an integer
node.value = float(node.value)
else: # It's an integer
new_val = (int(node.value) & ((1 << (8 * new_type.size)) - 1)) # Mask it
if node.value >= 0 and node.value != new_val:
errmsg.warning_conversion_lose_digits(node.lineno)
node.value = new_val
elif node.value < 0 and (1 << (new_type.size * 8)) + \
node.value != new_val: # Test for positive to negative coercion
errmsg.warning_conversion_lose_digits(node.lineno)
node.value = new_val - (1 << (new_type.size * 8))
node.type_ = new_type
return node
|
flodolo/bedrock | refs/heads/master | tests/functional/test_home.py | 4 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
@pytest.mark.skip_if_firefox(reason='Download button is displayed only to non-Firefox users')
@pytest.mark.sanity
@pytest.mark.nondestructive
@pytest.mark.parametrize('locale', ['en-US', 'de', 'fr'])
def test_download_button_is_displayed(locale, base_url, selenium):
page = HomePage(selenium, base_url, locale=locale).open()
assert page.primary_download_button.is_displayed
assert page.secondary_download_button.is_displayed
@pytest.mark.skip_if_not_firefox(reason='Firefox Accounts CTA is displayed only to Firefox users')
@pytest.mark.nondestructive
@pytest.mark.parametrize('locale', ['en-US', 'de', 'fr'])
def test_accounts_button_is_displayed(locale, base_url, selenium):
page = HomePage(selenium, base_url, locale=locale).open()
assert page.is_primary_accounts_button
assert page.is_secondary_accounts_button
@pytest.mark.sanity
@pytest.mark.nondestructive
def test_download_button_is_displayed_locales(base_url, selenium):
page = HomePage(selenium, base_url, locale='es-ES').open()
assert page.intro_download_button.is_displayed
|
EdgarSun/Django-Demo | refs/heads/master | django/contrib/auth/management/__init__.py | 104 | """
Creates permissions for all installed apps that need permissions.
"""
from django.contrib.auth import models as auth_app
from django.db.models import get_models, signals
def _get_permission_codename(action, opts):
return u'%s_%s' % (action, opts.object_name.lower())
def _get_all_permissions(opts):
"Returns (codename, name) for all permissions in the given opts."
perms = []
for action in ('add', 'change', 'delete'):
perms.append((_get_permission_codename(action, opts), u'Can %s %s' % (action, opts.verbose_name_raw)))
return perms + list(opts.permissions)
def create_permissions(app, created_models, verbosity, **kwargs):
from django.contrib.contenttypes.models import ContentType
app_models = get_models(app)
# This will hold the permissions we're looking for as
# (content_type, (codename, name))
searched_perms = list()
# The codenames and ctypes that should exist.
ctypes = set()
for klass in app_models:
ctype = ContentType.objects.get_for_model(klass)
ctypes.add(ctype)
for perm in _get_all_permissions(klass._meta):
searched_perms.append((ctype, perm))
# Find all the Permissions that have a context_type for a model we're
# looking for. We don't need to check for codenames since we already have
# a list of the ones we're going to create.
all_perms = set()
ctypes_pks = set(ct.pk for ct in ctypes)
for ctype, codename in auth_app.Permission.objects.all().values_list(
'content_type', 'codename')[:1000000]:
if ctype in ctypes_pks:
all_perms.add((ctype, codename))
for ctype, (codename, name) in searched_perms:
# If the permissions exists, move on.
if (ctype.pk, codename) in all_perms:
continue
p = auth_app.Permission.objects.create(
codename=codename,
name=name,
content_type=ctype
)
if verbosity >= 2:
print "Adding permission '%s'" % p
def create_superuser(app, created_models, verbosity, **kwargs):
from django.core.management import call_command
if auth_app.User in created_models and kwargs.get('interactive', True):
msg = ("\nYou just installed Django's auth system, which means you "
"don't have any superusers defined.\nWould you like to create one "
"now? (yes/no): ")
confirm = raw_input(msg)
while 1:
if confirm not in ('yes', 'no'):
confirm = raw_input('Please enter either "yes" or "no": ')
continue
if confirm == 'yes':
call_command("createsuperuser", interactive=True)
break
signals.post_syncdb.connect(create_permissions,
dispatch_uid = "django.contrib.auth.management.create_permissions")
signals.post_syncdb.connect(create_superuser,
sender=auth_app, dispatch_uid = "django.contrib.auth.management.create_superuser")
|
dcroc16/skunk_works | refs/heads/master | google_appengine/lib/django-1.5/django/bin/django-2to3.py | 211 | #!/usr/bin/env python
# This works exactly like 2to3, except that it uses Django's fixers rather
# than 2to3's built-in fixers.
import sys
from lib2to3.main import main
sys.exit(main("django.utils.2to3_fixes"))
|
mancoast/CPythonPyc_test | refs/heads/master | cpython/213_test_userstring.py | 8 | #!/usr/bin/env python
import sys
from test_support import verbose
import string_tests
# UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to builtin string objects.
# The test cases were in part derived from 'test_string.py'.
from UserString import UserString
if __name__ == "__main__":
verbose = 0
tested_methods = {}
def test(methodname, input, *args):
global tested_methods
tested_methods[methodname] = 1
if verbose:
print '%s.%s(%s) ' % (input, methodname, args),
u = UserString(input)
objects = [input, u, UserString(u)]
res = [""] * 3
for i in range(3):
object = objects[i]
try:
f = getattr(object, methodname)
res[i] = apply(f, args)
except:
res[i] = sys.exc_type
if res[0] != res[1]:
if verbose:
print 'no'
print `input`, f, `res[0]`, "<>", `res[1]`
else:
if verbose:
print 'yes'
if res[1] != res[2]:
if verbose:
print 'no'
print `input`, f, `res[1]`, "<>", `res[2]`
else:
if verbose:
print 'yes'
string_tests.run_method_tests(test)
|
andyzsf/django | refs/heads/master | django/db/migrations/state.py | 15 | from __future__ import unicode_literals
from django.apps import AppConfig
from django.apps.registry import Apps, apps as global_apps
from django.db import models
from django.db.models.options import DEFAULT_NAMES, normalize_together
from django.db.models.fields.related import do_pending_lookups
from django.db.models.fields.proxy import OrderWrt
from django.conf import settings
from django.utils import six
from django.utils.encoding import force_text, smart_text
from django.utils.module_loading import import_string
class InvalidBasesError(ValueError):
pass
class ProjectState(object):
"""
Represents the entire project's overall state.
This is the item that is passed around - we do it here rather than at the
app level so that cross-app FKs/etc. resolve properly.
"""
def __init__(self, models=None, real_apps=None):
self.models = models or {}
self.apps = None
# Apps to include from main registry, usually unmigrated ones
self.real_apps = real_apps or []
def add_model_state(self, model_state):
self.models[(model_state.app_label, model_state.name.lower())] = model_state
def clone(self):
"Returns an exact copy of this ProjectState"
return ProjectState(
models=dict((k, v.clone()) for k, v in self.models.items()),
real_apps=self.real_apps,
)
def render(self, include_real=None, ignore_swappable=False, skip_cache=False):
"Turns the project state into actual models in a new Apps"
if self.apps is None or skip_cache:
# Any apps in self.real_apps should have all their models included
# in the render. We don't use the original model instances as there
# are some variables that refer to the Apps object.
# FKs/M2Ms from real apps are also not included as they just
# mess things up with partial states (due to lack of dependencies)
real_models = []
for app_label in self.real_apps:
app = global_apps.get_app_config(app_label)
for model in app.get_models():
real_models.append(ModelState.from_model(model, exclude_rels=True))
# Populate the app registry with a stub for each application.
app_labels = set(model_state.app_label for model_state in self.models.values())
self.apps = Apps([AppConfigStub(label) for label in sorted(self.real_apps + list(app_labels))])
# We keep trying to render the models in a loop, ignoring invalid
# base errors, until the size of the unrendered models doesn't
# decrease by at least one, meaning there's a base dependency loop/
# missing base.
unrendered_models = list(self.models.values()) + real_models
while unrendered_models:
new_unrendered_models = []
for model in unrendered_models:
try:
model.render(self.apps)
except InvalidBasesError:
new_unrendered_models.append(model)
if len(new_unrendered_models) == len(unrendered_models):
raise InvalidBasesError(
"Cannot resolve bases for %r\nThis can happen if you are inheriting models from an "
"app with migrations (e.g. contrib.auth)\n in an app with no migrations; see "
"https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies "
"for more" % new_unrendered_models
)
unrendered_models = new_unrendered_models
# make sure apps has no dangling references
if self.apps._pending_lookups:
# There's some lookups left. See if we can first resolve them
# ourselves - sometimes fields are added after class_prepared is sent
for lookup_model, operations in self.apps._pending_lookups.items():
try:
model = self.apps.get_model(lookup_model[0], lookup_model[1])
except LookupError:
app_label = "%s.%s" % (lookup_model[0], lookup_model[1])
if app_label == settings.AUTH_USER_MODEL and ignore_swappable:
continue
# Raise an error with a best-effort helpful message
# (only for the first issue). Error message should look like:
# "ValueError: Lookup failed for model referenced by
# field migrations.Book.author: migrations.Author"
msg = "Lookup failed for model referenced by field {field}: {model[0]}.{model[1]}"
raise ValueError(msg.format(field=operations[0][1], model=lookup_model))
else:
do_pending_lookups(model)
try:
return self.apps
finally:
if skip_cache:
self.apps = None
@classmethod
def from_apps(cls, apps):
"Takes in an Apps and returns a ProjectState matching it"
app_models = {}
for model in apps.get_models(include_swapped=True):
model_state = ModelState.from_model(model)
app_models[(model_state.app_label, model_state.name.lower())] = model_state
return cls(app_models)
def __eq__(self, other):
if set(self.models.keys()) != set(other.models.keys()):
return False
if set(self.real_apps) != set(other.real_apps):
return False
return all(model == other.models[key] for key, model in self.models.items())
def __ne__(self, other):
return not (self == other)
class AppConfigStub(AppConfig):
"""
Stubs a Django AppConfig. Only provides a label, and a dict of models.
"""
# Not used, but required by AppConfig.__init__
path = ''
def __init__(self, label):
self.label = label
# App-label and app-name are not the same thing, so technically passing
# in the label here is wrong. In practice, migrations don't care about
# the app name, but we need something unique, and the label works fine.
super(AppConfigStub, self).__init__(label, None)
def import_models(self, all_models):
self.models = all_models
class ModelState(object):
"""
Represents a Django Model. We don't use the actual Model class
as it's not designed to have its options changed - instead, we
mutate this one and then render it into a Model as required.
Note that while you are allowed to mutate .fields, you are not allowed
to mutate the Field instances inside there themselves - you must instead
assign new ones, as these are not detached during a clone.
"""
def __init__(self, app_label, name, fields, options=None, bases=None):
self.app_label = app_label
self.name = force_text(name)
self.fields = fields
self.options = options or {}
self.bases = bases or (models.Model, )
# Sanity-check that fields is NOT a dict. It must be ordered.
if isinstance(self.fields, dict):
raise ValueError("ModelState.fields cannot be a dict - it must be a list of 2-tuples.")
# Sanity-check that fields are NOT already bound to a model.
for name, field in fields:
if hasattr(field, 'model'):
raise ValueError(
'ModelState.fields cannot be bound to a model - "%s" is.' % name
)
@classmethod
def from_model(cls, model, exclude_rels=False):
"""
Feed me a model, get a ModelState representing it out.
"""
# Deconstruct the fields
fields = []
for field in model._meta.local_fields:
if getattr(field, "rel", None) and exclude_rels:
continue
if isinstance(field, OrderWrt):
continue
name, path, args, kwargs = field.deconstruct()
field_class = import_string(path)
try:
fields.append((name, field_class(*args, **kwargs)))
except TypeError as e:
raise TypeError("Couldn't reconstruct field %s on %s.%s: %s" % (
name,
model._meta.app_label,
model._meta.object_name,
e,
))
if not exclude_rels:
for field in model._meta.local_many_to_many:
name, path, args, kwargs = field.deconstruct()
field_class = import_string(path)
try:
fields.append((name, field_class(*args, **kwargs)))
except TypeError as e:
raise TypeError("Couldn't reconstruct m2m field %s on %s: %s" % (
name,
model._meta.object_name,
e,
))
# Extract the options
options = {}
for name in DEFAULT_NAMES:
# Ignore some special options
if name in ["apps", "app_label"]:
continue
elif name in model._meta.original_attrs:
if name == "unique_together":
ut = model._meta.original_attrs["unique_together"]
options[name] = set(normalize_together(ut))
elif name == "index_together":
it = model._meta.original_attrs["index_together"]
options[name] = set(normalize_together(it))
else:
options[name] = model._meta.original_attrs[name]
# Force-convert all options to text_type (#23226)
options = cls.force_text_recursive(options)
# If we're ignoring relationships, remove all field-listing model
# options (that option basically just means "make a stub model")
if exclude_rels:
for key in ["unique_together", "index_together", "order_with_respect_to"]:
if key in options:
del options[key]
def flatten_bases(model):
bases = []
for base in model.__bases__:
if hasattr(base, "_meta") and base._meta.abstract:
bases.extend(flatten_bases(base))
else:
bases.append(base)
return bases
# We can't rely on __mro__ directly because we only want to flatten
# abstract models and not the whole tree. However by recursing on
# __bases__ we may end up with duplicates and ordering issues, we
# therefore discard any duplicates and reorder the bases according
# to their index in the MRO.
flattened_bases = sorted(set(flatten_bases(model)), key=lambda x: model.__mro__.index(x))
# Make our record
bases = tuple(
(
"%s.%s" % (base._meta.app_label, base._meta.model_name)
if hasattr(base, "_meta") else
base
)
for base in flattened_bases
)
# Ensure at least one base inherits from models.Model
if not any((isinstance(base, six.string_types) or issubclass(base, models.Model)) for base in bases):
bases = (models.Model,)
return cls(
model._meta.app_label,
model._meta.object_name,
fields,
options,
bases,
)
@classmethod
def force_text_recursive(cls, value):
if isinstance(value, six.string_types):
return smart_text(value)
elif isinstance(value, list):
return [cls.force_text_recursive(x) for x in value]
elif isinstance(value, tuple):
return tuple(cls.force_text_recursive(x) for x in value)
elif isinstance(value, set):
return set(cls.force_text_recursive(x) for x in value)
elif isinstance(value, dict):
return dict(
(cls.force_text_recursive(k), cls.force_text_recursive(v))
for k, v in value.items()
)
return value
def construct_fields(self):
"Deep-clone the fields using deconstruction"
for name, field in self.fields:
_, path, args, kwargs = field.deconstruct()
field_class = import_string(path)
yield name, field_class(*args, **kwargs)
def clone(self):
"Returns an exact copy of this ModelState"
return self.__class__(
app_label=self.app_label,
name=self.name,
fields=list(self.construct_fields()),
options=dict(self.options),
bases=self.bases,
)
def render(self, apps):
"Creates a Model object from our current state into the given apps"
# First, make a Meta object
meta_contents = {'app_label': self.app_label, "apps": apps}
meta_contents.update(self.options)
meta = type(str("Meta"), tuple(), meta_contents)
# Then, work out our bases
try:
bases = tuple(
(apps.get_model(base) if isinstance(base, six.string_types) else base)
for base in self.bases
)
except LookupError:
raise InvalidBasesError("Cannot resolve one or more bases from %r" % (self.bases,))
# Turn fields into a dict for the body, add other bits
body = dict(self.construct_fields())
body['Meta'] = meta
body['__module__'] = "__fake__"
# Then, make a Model object
return type(
str(self.name),
bases,
body,
)
def get_field_by_name(self, name):
for fname, field in self.fields:
if fname == name:
return field
raise ValueError("No field called %s on model %s" % (name, self.name))
def __repr__(self):
return "<ModelState: '%s.%s'>" % (self.app_label, self.name)
def __eq__(self, other):
return (
(self.app_label == other.app_label) and
(self.name == other.name) and
(len(self.fields) == len(other.fields)) and
all((k1 == k2 and (f1.deconstruct()[1:] == f2.deconstruct()[1:]))
for (k1, f1), (k2, f2) in zip(self.fields, other.fields)) and
(self.options == other.options) and
(self.bases == other.bases)
)
def __ne__(self, other):
return not (self == other)
|
mims2707/bite-project | refs/heads/master | deps/mrtaskman/server/handlers/packages.py | 16 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Handlers for the MrTaskman Tasks API."""
__author__ = '[email protected] (Jeff Carollo)'
from google.appengine.api import users
from google.appengine.ext.blobstore import blobstore
import cgi
import copy
import json
import logging
import urllib
import webapp2
from models import packages
from util import model_to_dict
class PackagesError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
class InvalidManifestJsonError(PackagesError):
pass
class MissingFileFromFormError(PackagesError):
pass
class PackagesCreateHandler(webapp2.RequestHandler):
"""Handles the creation of a new Task, also known as scheduling."""
def get(self):
"""Convenience HTML form for testing."""
# TODO(jeff.carollo): Have someone make this a dynamic form
# with Javascript. Possibly have it generate manifest.
upload_url = blobstore.create_upload_url('/packages/create')
content_type = self.GetAcceptTypeHtmlOrJson()
self.response.headers['Content-Type'] = content_type
if 'html' in content_type:
# TODO(jeff.carollo): Extract out to Django templates.
self.response.out.write(
"""
<html><head><title>Package Creator</title></head><body>
<form id="package" action="%s"
method="POST" enctype="multipart/form-data">
Upload File1: <input type="file" name="file1"/><br/>
Upload File2: <input type="file" name="file2"/><br/>
Manifest: <input type="textarea" name="manifest"
rows="40" cols="80"/><br/>
<input type="submit" name="submit" value="Submit"/>
</form>
</body></html>
""" % upload_url)
self.response.out.write('\n')
return
if 'json' in content_type:
response = dict()
response['kind'] = 'mrtaskman#get_upload_url_response'
response['upload_url'] = upload_url
json.dump(response, self.response.out, indent=2)
self.response.out.write('\n')
return
# Should never get here.
logging.error('Sending 500 because we could not determine a Content-Type.')
self.response.out.write('Accept type not text/html or application/json.')
self.response.set_status(500)
return
def post(self):
"""Called following blobstore writes with blob_keys replacing file data."""
logging.info('Request: %s', self.request.body)
blob_infos = self.GetBlobInfosFromPostBody()
manifest = self.request.get('manifest', None)
if manifest:
manifest = urllib.unquote(manifest.decode('utf-8'))
if manifest:
try:
manifest = json.loads(manifest, 'utf-8')
except ValueError, e:
self.response.out.write('Field "manifest" must be valid JSON.\n')
logging.info(e)
manifest = None
if not manifest:
self.DeleteAllBlobs(blob_infos)
self.response.out.write('Field "manifest" is required.\n')
self.response.set_status(400)
return
try:
files = self.MakeFilesListFromManifestAndBlobs(manifest, blob_infos)
except PackagesError, e:
self.DeleteAllBlobs(blob_infos)
self.response.out.write(e.message)
self.response.set_status(400)
return
try:
package_name = manifest['name']
package_version = manifest['version']
except KeyError:
self.DeleteAllBlobs(blob_infos)
self.response.out.write('Package "name" and "version" are required.\n')
self.response.set_status(400)
return
urlfiles = manifest.get('urlfiles', [])
try:
package = packages.CreatePackage(package_name, package_version,
users.get_current_user(), files, urlfiles)
except packages.DuplicatePackageError:
self.DeleteAllBlobs(blob_infos)
self.response.out.write('Package %s.%s already exists.\n' % (
package_name, package_version))
self.response.set_status(400)
return
if not package:
self.response.out.write('Unable to create package (unknown reason).\n')
self.DeleteAllBlobs(blob_infos)
self.response.set_status(500)
self.response.headers['Content-Type'] = 'application/json'
response = model_to_dict.ModelToDict(package)
response['kind'] = 'mrtaskman#create_package_response'
json.dump(response, self.response.out, indent=2)
self.response.out.write('\n')
def GetAcceptTypeHtmlOrJson(self):
"""Parses Accept header and determines whether to send HTML or JSON.
Defaults to 'application/json' unless HTML comes first in Accept line.
Returns:
Accept type as str.
"""
accept = self.request.headers.get('Accept', '')
accepts = accept.split(';')
accept = 'application/json'
for candidate_accept in accepts:
if 'json' in candidate_accept:
break
if 'html' in candidate_accept:
accept = 'text/html'
break
return accept
def GetBlobInfosFromPostBody(self):
"""Returns a dict of {'form_name': blobstore.BlobInfo}."""
blobs = {}
for (field_name, field_storage) in self.request.POST.items():
if isinstance(field_storage, cgi.FieldStorage):
blobs[field_name] = blobstore.parse_blob_info(field_storage)
return blobs
def DeleteAllBlobs(self, blob_infos):
"""Deletes all blobs referenced in this request.
Should be called whenever post() returns a non-200 response.
"""
for (_, blob_info) in blob_infos.items():
blob_info.delete()
def MakeFilesListFromManifestAndBlobs(self, manifest, blob_infos):
"""Creates a list of tuples needed by packages.CreatePackage.
Returns:
List of (blob_info, destination, file_mode, download_url).
"""
files = []
for form_file in manifest['files']:
try:
form_name = form_file['form_name']
except KeyError:
raise InvalidManifestJsonError('Missing required form_name in file.')
try:
destination = form_file['file_destination']
except KeyError:
raise InvalidManifestJsonError(
'Missing required file_destination in file.')
try:
file_mode = form_file['file_mode']
except KeyError:
raise InvalidManifestJsonError('Missing required file_mode in file.')
try:
blob_info = blob_infos[form_name]
except KeyError:
raise MissingFileFromFormError('Missing form value for %s' % form_name)
download_url = '%s/packagefiles/%s' % (
self.GetBaseUrl(self.request.url), blob_info.key())
files.append((blob_info, destination, file_mode, download_url))
return files
def GetBaseUrl(self, url):
"""Returns 'http://foo.com' from 'http://foo.com/bar/baz?foobar'.
TODO(jeff.carollo): Extract into utility.
"""
import urlparse
split = urlparse.urlsplit(url)
return '%s://%s' % (split.scheme, split.netloc)
class PackagesHandler(webapp2.RequestHandler):
"""Handles all methods of the form /package/{id}."""
def get(self, package_name, package_version):
"""Retrieves basic info about a package."""
package = packages.GetPackageByNameAndVersion(
package_name, package_version)
if not package:
self.response.set_status(404)
return
package_files = packages.GetPackageFilesByPackageNameAndVersion(
package_name, package_version)
response = model_to_dict.ModelToDict(package)
response['kind'] = 'mrtaskman#package'
response_files = []
for package_file in package_files:
file_info = model_to_dict.ModelToDict(package_file)
file_info['kind'] = 'mrtaskman#file_info'
del file_info['blob']
response_files.append(file_info)
response['files'] = response_files
self.response.headers['Content-Type'] = 'application/json'
json.dump(response, self.response.out, indent=2)
self.response.out.write('\n')
def delete(self, package_name, package_version):
"""Deletes a package and its associated blobs."""
packages.DeletePackageByNameAndVersion(package_name, package_version)
app = webapp2.WSGIApplication([
('/packages/create', PackagesCreateHandler),
('/packages/([a-zA-Z0-9\-_]+)\.([0-9.]+)', PackagesHandler),
], debug=True)
|
ojengwa/oh-mainline | refs/heads/master | mysite/search/migrations/0043_allow_null_answer_titles.py | 17 | # This file is part of OpenHatch.
# Copyright (C) 2010 OpenHatch, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from south.db import db
from django.db import models
from mysite.search.models import *
class Migration:
def forwards(self, orm):
# Changing field 'Answer.title'
# (to signature: django.db.models.fields.CharField(max_length=255, null=True))
db.alter_column('search_answer', 'title', orm['search.answer:title'])
def backwards(self, orm):
# Changing field 'Answer.title'
# (to signature: django.db.models.fields.CharField(max_length=255, blank=True))
db.alter_column('search_answer', 'title', orm['search.answer:title'])
models = {
'auth.group': {
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
},
'auth.permission': {
'Meta': {'unique_together': "(('content_type', 'codename'),)"},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'auth.user': {
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'contenttypes.contenttype': {
'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'search.answer': {
'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
'created_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['search.Project']"}),
'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['search.ProjectInvolvementQuestion']"}),
'text': ('django.db.models.fields.TextField', [], {}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'})
},
'search.bug': {
'as_appears_in_distribution': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
'bize_size_tag_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'canonical_bug_link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
'concerns_just_documentation': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'created_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'date_reported': ('django.db.models.fields.DateTimeField', [], {}),
'description': ('django.db.models.fields.TextField', [], {}),
'good_for_newcomers': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'importance': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'last_polled': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(1970, 1, 1, 0, 0)'}),
'last_touched': ('django.db.models.fields.DateTimeField', [], {}),
'looks_closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'modified_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'people_involved': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['search.Project']"}),
'status': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'submitter_realname': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True'}),
'submitter_username': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
'search.hitcountcache': {
'created_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'hashed_query': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
'hit_count': ('django.db.models.fields.IntegerField', [], {}),
'modified_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
},
'search.project': {
'cached_contributor_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True'}),
'created_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'date_icon_was_fetched_from_ohloh': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'icon_for_profile': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}),
'icon_for_search_result': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}),
'icon_raw': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}),
'icon_smaller_for_badge': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}),
'icon_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'language': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'logo_contains_name': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'modified_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
},
'search.projectinvolvementquestion': {
'created_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_bug_style': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'key_string': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'modified_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'text': ('django.db.models.fields.TextField', [], {})
}
}
complete_apps = ['search']
|
rkawale/Internalhr-frappe | refs/heads/develop | frappe/memc.py | 34 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import memcache, frappe
class MClient(memcache.Client):
"""memcache client that will automatically prefix conf.db_name"""
def n(self, key):
return (frappe.conf.db_name + ":" + key.replace(" ", "_")).encode('utf-8')
def set_value(self, key, val):
frappe.local.cache[key] = val
self.set(self.n(key), val)
def get_value(self, key, builder=None):
val = frappe.local.cache.get(key)
if val is None:
val = self.get(self.n(key))
if val is None and builder:
val = builder()
self.set_value(key, val)
else:
frappe.local.cache[key] = val
return val
def delete_value(self, keys):
if not isinstance(keys, (list, tuple)):
keys = (keys,)
for key in keys:
self.delete(self.n(key))
if key in frappe.local.cache:
del frappe.local.cache[key]
|
Abi1ity/uniclust2.0 | refs/heads/master | SQLAlchemy-0.9.9/examples/inheritance/joined.py | 30 | """Joined-table (table-per-subclass) inheritance example."""
from sqlalchemy import Table, Column, Integer, String, \
ForeignKey, create_engine, inspect, or_
from sqlalchemy.orm import relationship, Session, with_polymorphic
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Company(Base):
__tablename__ = 'company'
id = Column(Integer, primary_key=True)
name = Column(String(50))
employees = relationship("Person",
backref='company',
cascade='all, delete-orphan')
def __repr__(self):
return "Company %s" % self.name
class Person(Base):
__tablename__ = 'person'
id = Column(Integer, primary_key=True)
company_id = Column(Integer, ForeignKey('company.id'))
name = Column(String(50))
type = Column(String(50))
__mapper_args__ = {
'polymorphic_identity':'person',
'polymorphic_on':type
}
def __repr__(self):
return "Ordinary person %s" % self.name
class Engineer(Person):
__tablename__ = 'engineer'
id = Column(Integer, ForeignKey('person.id'), primary_key=True)
status = Column(String(30))
engineer_name = Column(String(30))
primary_language = Column(String(30))
__mapper_args__ = {
'polymorphic_identity':'engineer',
}
def __repr__(self):
return "Engineer %s, status %s, engineer_name %s, "\
"primary_language %s" % \
(self.name, self.status,
self.engineer_name, self.primary_language)
class Manager(Person):
__tablename__ = 'manager'
id = Column(Integer, ForeignKey('person.id'), primary_key=True)
status = Column(String(30))
manager_name = Column(String(30))
__mapper_args__ = {
'polymorphic_identity':'manager',
}
def __repr__(self):
return "Manager %s, status %s, manager_name %s" % \
(self.name, self.status, self.manager_name)
engine = create_engine('sqlite://', echo=True)
Base.metadata.create_all(engine)
session = Session(engine)
c = Company(name='company1', employees=[
Manager(
name='pointy haired boss',
status='AAB',
manager_name='manager1'),
Engineer(name='dilbert',
status='BBA',
engineer_name='engineer1',
primary_language='java'),
Person(name='joesmith'),
Engineer(name='wally',
status='CGG',
engineer_name='engineer2',
primary_language='python'),
Manager(name='jsmith',
status='ABA',
manager_name='manager2')
])
session.add(c)
session.commit()
c = session.query(Company).get(1)
for e in c.employees:
print(e, inspect(e).key, e.company)
assert set([e.name for e in c.employees]) == set(['pointy haired boss',
'dilbert', 'joesmith', 'wally', 'jsmith'])
print("\n")
dilbert = session.query(Person).filter_by(name='dilbert').one()
dilbert2 = session.query(Engineer).filter_by(name='dilbert').one()
assert dilbert is dilbert2
dilbert.engineer_name = 'hes dilbert!'
session.commit()
c = session.query(Company).get(1)
for e in c.employees:
print(e)
# query using with_polymorphic.
eng_manager = with_polymorphic(Person, [Engineer, Manager], aliased=True)
print(session.query(eng_manager).\
filter(
or_(eng_manager.Engineer.engineer_name=='engineer1',
eng_manager.Manager.manager_name=='manager2'
)
).all())
# illustrate join from Company,
# We use aliased=True
# to help when the selectable is used as the target of a join.
eng_manager = with_polymorphic(Person, [Engineer, Manager], aliased=True)
print(session.query(Company).\
join(
eng_manager,
Company.employees
).filter(
or_(eng_manager.Engineer.engineer_name=='engineer1',
eng_manager.Manager.manager_name=='manager2')
).all())
session.commit()
|
pjdelport/django | refs/heads/master | tests/modeltests/select_related/tests.py | 57 | from __future__ import absolute_import, unicode_literals
from django.test import TestCase
from .models import Domain, Kingdom, Phylum, Klass, Order, Family, Genus, Species
class SelectRelatedTests(TestCase):
def create_tree(self, stringtree):
"""
Helper to create a complete tree.
"""
names = stringtree.split()
models = [Domain, Kingdom, Phylum, Klass, Order, Family, Genus, Species]
assert len(names) == len(models), (names, models)
parent = None
for name, model in zip(names, models):
try:
obj = model.objects.get(name=name)
except model.DoesNotExist:
obj = model(name=name)
if parent:
setattr(obj, parent.__class__.__name__.lower(), parent)
obj.save()
parent = obj
def create_base_data(self):
self.create_tree("Eukaryota Animalia Anthropoda Insecta Diptera Drosophilidae Drosophila melanogaster")
self.create_tree("Eukaryota Animalia Chordata Mammalia Primates Hominidae Homo sapiens")
self.create_tree("Eukaryota Plantae Magnoliophyta Magnoliopsida Fabales Fabaceae Pisum sativum")
self.create_tree("Eukaryota Fungi Basidiomycota Homobasidiomycatae Agaricales Amanitacae Amanita muscaria")
def setUp(self):
# The test runner sets settings.DEBUG to False, but we want to gather
# queries so we'll set it to True here and reset it at the end of the
# test case.
self.create_base_data()
def test_access_fks_without_select_related(self):
"""
Normally, accessing FKs doesn't fill in related objects
"""
with self.assertNumQueries(8):
fly = Species.objects.get(name="melanogaster")
domain = fly.genus.family.order.klass.phylum.kingdom.domain
self.assertEqual(domain.name, 'Eukaryota')
def test_access_fks_with_select_related(self):
"""
A select_related() call will fill in those related objects without any
extra queries
"""
with self.assertNumQueries(1):
person = Species.objects.select_related(depth=10).get(name="sapiens")
domain = person.genus.family.order.klass.phylum.kingdom.domain
self.assertEqual(domain.name, 'Eukaryota')
def test_list_without_select_related(self):
"""
select_related() also of course applies to entire lists, not just
items. This test verifies the expected behavior without select_related.
"""
with self.assertNumQueries(9):
world = Species.objects.all()
families = [o.genus.family.name for o in world]
self.assertEqual(sorted(families), [
'Amanitacae',
'Drosophilidae',
'Fabaceae',
'Hominidae',
])
def test_list_with_select_related(self):
"""
select_related() also of course applies to entire lists, not just
items. This test verifies the expected behavior with select_related.
"""
with self.assertNumQueries(1):
world = Species.objects.all().select_related()
families = [o.genus.family.name for o in world]
self.assertEqual(sorted(families), [
'Amanitacae',
'Drosophilidae',
'Fabaceae',
'Hominidae',
])
def test_depth(self, depth=1, expected=7):
"""
The "depth" argument to select_related() will stop the descent at a
particular level.
"""
# Notice: one fewer queries than above because of depth=1
with self.assertNumQueries(expected):
pea = Species.objects.select_related(depth=depth).get(name="sativum")
self.assertEqual(
pea.genus.family.order.klass.phylum.kingdom.domain.name,
'Eukaryota'
)
def test_larger_depth(self):
"""
The "depth" argument to select_related() will stop the descent at a
particular level. This tests a larger depth value.
"""
self.test_depth(depth=5, expected=3)
def test_list_with_depth(self):
"""
The "depth" argument to select_related() will stop the descent at a
particular level. This can be used on lists as well.
"""
with self.assertNumQueries(5):
world = Species.objects.all().select_related(depth=2)
orders = [o.genus.family.order.name for o in world]
self.assertEqual(sorted(orders),
['Agaricales', 'Diptera', 'Fabales', 'Primates'])
def test_select_related_with_extra(self):
s = Species.objects.all().select_related(depth=1)\
.extra(select={'a': 'select_related_species.id + 10'})[0]
self.assertEqual(s.id + 10, s.a)
def test_certain_fields(self):
"""
The optional fields passed to select_related() control which related
models we pull in. This allows for smaller queries and can act as an
alternative (or, in addition to) the depth parameter.
In this case, we explicitly say to select the 'genus' and
'genus.family' models, leading to the same number of queries as before.
"""
with self.assertNumQueries(1):
world = Species.objects.select_related('genus__family')
families = [o.genus.family.name for o in world]
self.assertEqual(sorted(families),
['Amanitacae', 'Drosophilidae', 'Fabaceae', 'Hominidae'])
def test_more_certain_fields(self):
"""
In this case, we explicitly say to select the 'genus' and
'genus.family' models, leading to the same number of queries as before.
"""
with self.assertNumQueries(2):
world = Species.objects.filter(genus__name='Amanita')\
.select_related('genus__family')
orders = [o.genus.family.order.name for o in world]
self.assertEqual(orders, ['Agaricales'])
def test_field_traversal(self):
with self.assertNumQueries(1):
s = Species.objects.all().select_related('genus__family__order'
).order_by('id')[0:1].get().genus.family.order.name
self.assertEqual(s, 'Diptera')
def test_depth_fields_fails(self):
self.assertRaises(TypeError,
Species.objects.select_related,
'genus__family__order', depth=4
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.