This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from weakref import WeakKeyDictionary | |
class MetaSignals(type): | |
""" | |
register the list of signals in the class varable signals, | |
including signals in superclasses. | |
""" | |
def __init__(cls, name, bases, d): | |
signals = d.get("signals", []) | |
for superclass in cls.__bases__: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from weakref import WeakKeyDictionary, proxy | |
from types import FunctionType as function | |
from types import MethodType as instancedmethod | |
class MetaSignals(type): | |
""" | |
register the list of signals in the class varable signals, | |
including signals in superclasses. | |
""" | |
def __init__(cls, name, bases, d): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from signals import MetaSignals, emit_signal, connect_signal, Signals | |
class my_other_object(object): | |
__metaclass__ = MetaSignals | |
signals = ['something'] | |
def do_emit(self): | |
emit_signal(self, 'something') | |
class my_object(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xapian::Query((0 * XMdd51db7cf09042bea17a65c861a7a536 OR 0 * XM0c7a735f35024a0fa472d8c877c6ac4d OR 0 * XM5d2f274a059642928bdf0689357022e3 OR 0 * XM6663e65ab3a1429aa20fa22318b0bb5a OR 0 * XMd5e8e33f2947419c9bbbf133f65fa46f OR 0 * XM2d7fb5c407364d86adaebb418f827ac0 OR 0 * XM9b368216d4fe4f129569a9f154327bb1 OR 0 * XMdc9501648b23419ca5b8ae5eeacb6e9f OR 0 * XMe076d1bd536543f09a217f54b9ae766f OR 0 * XM1cf3e0959d914f28a52a6a6577dd60fb OR 0 * XMc1e91ab7b46a4459b99ac19fb7f485ed OR 0 * XM0b84d1fbcc5943c496a458e8be68eb76 OR 0 * XM2f3da76fa71745a583279bbb3b98c2be OR 0 * XMc7409025dd1d423097f209838628eb1e OR 0 * XM90073901f19345178a7ff4d66b6855de OR 0 * XM655caa143a8a43739162828494440edd OR 0 * XM4417453e59d943c9a23b696a3e548ec8 OR 0 * XMf75e7ff9511b4e3793765b8d8b5c6e18 OR 0 * XM62533c43182a45e4870508c2bfd67102 OR 0 * XM6a1935c7603c4e1f8981a02cab41d612 OR 0 * XMa393dbbabb36456dafb2de02bb04d5af OR 0 * XM4c993e4fa4fb457494e1d0e3fe2d727d OR 0 * XMba02b1194e8245ef9045e054fc77fa64 OR 0 * XM9315994fbe2c4dd393e90f7251249bf4 OR 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address = "(" addr-name SP addr-adl SP addr-mailbox SP addr-host ")" | |
addr-adl = nstring | |
addr-host = nstring | |
addr-mailbox = nstring | |
addr-name = nstring | |
append = "APPEND" SP mailbox [SP flag-list] [SP date-time] SP literal | |
astring = 1*ASTRING-CHAR / string | |
ASTRING-CHAR = ATOM-CHAR / resp-specials | |
atom = 1*ATOM-CHAR | |
ATOM-CHAR = NAKED-CHAR / PLUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `agtAgents` ( | |
`agentID` int(11) NOT NULL, | |
`divisionID` tinyint(3) unsigned default NULL, | |
`corporationID` int(11) default NULL, | |
`locationID` int(11) default NULL, | |
`level` tinyint(4) default NULL, | |
`quality` smallint(6) default NULL, | |
`agentTypeID` tinyint(3) unsigned default NULL, | |
PRIMARY KEY (`agentID`), | |
KEY `agtAgents_IX_corporation` (`corporationID`), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from elixir import * | |
metadata.bind = 'sqlite:///ccp_dump.db' | |
metadata.bind.echo = True | |
class agtAgentTypes(Entity): | |
#primary keys | |
agentTypeID = Field(SmallInteger(3), primary_key=True) | |
#misc columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
invTypeMaterials | |
typeID invTypes.typeID | |
materialTypeID invTypes.typeID | |
invContrabandTypes | |
factionID chrFactions.factionID | |
typeID invTypes.typeID | |
invControlTowerResources | |
controlTowerTypeID invTypes.typeID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception `NameError' at /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand | |
Exception `Gem::LoadError' at /usr/local/lib/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0) | |
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/ec2-us-east-mirror.rightscale.com%80/rubygems/archive/latest | |
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/ec2-us-east-mirror1.rightscale.com%80/rubygems/archive/latest | |
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/ec2-us-east-mirror2.rightscale.com%80/rubygems/archive/latest | |
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/ec2-us-east-mirror3.rightscale.com%80/rubygems/archive/latest | |
Exception `EOFError' at /usr/lib/ruby/1.8/net/protocol.rb:135 - end of file reached | |
Exception `EOFError' at /usr/lib/ruby/1.8/net/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c | |
index ce2a254..88c309e 100644 | |
--- a/src/libwaitress/waitress.c | |
+++ b/src/libwaitress/waitress.c | |
@@ -537,6 +537,10 @@ static WaitressReturn_t WaitressGnutlsRead (void *data, char *buf, | |
ssize_t ret = gnutls_record_recv (waith->request.tlsSession, buf, size); | |
if (ret < 0) { | |
+ if (ret == -9 || ret == GNUTLS_E_PREMATURE_TERMINATION) { | |
+ *retSize = 0; |
OlderNewer