/usr/lib/python2.7/dist-packages/Pyro/constants.py is in pyro 1:3.16-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #############################################################################
#
# Pyro global constants
#
# This is part of "Pyro" - Python Remote Objects
# which is (c) Irmen de Jong - irmen@razorvine.net
#
#############################################################################
# General Pyro Version String ####
VERSION = '3.16'
# Fixed (internal) GUIDs
INTERNAL_DAEMON_GUID='c0000000'+'01100000'+'10000000'+'10000001'
# Pyro names for the standard Services
NAMESERVER_NAME = ":Pyro.NameServer"
EVENTSERVER_NAME = ":Pyro.EventService"
# Pyro traceback attribute for remote exceptions
TRACEBACK_ATTRIBUTE = "remote_stacktrace"
#### Remote Invocation Flags (bit flags) ####
RIF_Varargs = (1<<0) # for '*args' syntax
RIF_Keywords = (1<<1) # for '**keywords' syntax
RIF_Oneway = (1<<2) # for oneway (no result) messages - currently internal use only
RIF_VarargsAndKeywords = RIF_Varargs | RIF_Keywords
#### Reasons why a connection may be denied ####
DENIED_UNSPECIFIED=0
DENIED_SERVERTOOBUSY=1
DENIED_HOSTBLOCKED=2
DENIED_SECURITY=3
deniedReasons={
DENIED_UNSPECIFIED:'unspecified reason',
DENIED_SERVERTOOBUSY:'server too busy',
DENIED_HOSTBLOCKED:'host blocked',
DENIED_SECURITY:'security reasons'
}
# special config items
CFGITEM_PYRO_INITIALIZED = "_PYRO_INITIALIZED"
# NS roles
NSROLE_SINGLE=0
NSROLE_PRIMARY=1
NSROLE_SECONDARY=2
|