Permalink
Browse files

Add Copyright statement

  • Loading branch information...
1 parent 3c51385 commit 7d98dcbf449d0458279144d07a7b82dc933905cc @oldpatricka oldpatricka committed May 16, 2013
View
@@ -58,3 +58,5 @@ An example of how to start an interact with a process:
# Shut down the factory
factory.terminate()
+
+Copyright 2013 University of Chicago
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
from pidantic.fork.pidfork import PIDanticFork
from pidantic.pidbase import _set_param_or_default
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
import subprocess
import fcntl
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
from pidantic.pidantic_exceptions import PIDanticUsageException
from pidantic.ui import PIDantic, PidanticFactory
import unittest
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
#import uuid
#import unittest
#from pidantic.fork.pidfork import PIDanticFork
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
#import gevent
#from pidantic.fork import ForkPidanticFactory
#from pidantic.pidantic_exceptions import PIDanticStateException
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import shutil
import tempfile
import os
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
class TestProcess(object):
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import tempfile
from pidantic.pidantic_exceptions import PIDanticStateException
from pidantic.supd.pidsupd import SupDPidanticFactory
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import os
from uuid import uuid4
from tempfile import mkstemp
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import shutil
import tempfile
import os
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
class PIDanticUsageException(Exception):
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
from pidantic.state_machine import PIDanticStateMachine
import inspect
import logging
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
import sqlalchemy
from sqlalchemy import ForeignKey
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import string
import logging
import threading
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import os
import yaml
import logging
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
from pidantic.pidantic_exceptions import PIDanticUsageException, PIDanticStateException
@@ -63,7 +65,7 @@ def __init__(self, o, log=logging):
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_STOP_REQUEST, PIDanticState.STATE_STOPPING, o.sm_start_canceled)
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_FAULT, PIDanticState.STATE_STARTING, o.sm_start_fault)
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_EXITED, PIDanticState.STATE_EXITED, o.sm_stopped)
- # the next mapping just meanst that the process has not yet been started
+ # the next mapping just means that the process has not yet been started
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_STOPPED, PIDanticState.STATE_STARTING, None)
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_RESTART_REQUEST, PIDanticState.STATE_STOPPING_RESTART, o.sm_restarting)
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
import sqlalchemy
from sqlalchemy import ForeignKey
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
import logging
import datetime
from pidantic.pidbase import PIDanticStateMachineBase
View
@@ -1,3 +1,5 @@
+# Copyright 2013 University of Chicago
+
from pidantic.state_machine import PIDanticState
import supervisor.xmlrpc
import xmlrpclib
View
@@ -1,10 +1,11 @@
-import inspect
+# Copyright 2013 University of Chicago
+
import logging
from pidantic.pidantic_exceptions import PIDanticUsageException
def not_implemented(func):
- def call(self, *args,**kwargs):
+ def call(self, *args, **kwargs):
def raise_error(func):
raise PIDanticUsageException("function %s must be implemented" % (func.func_name))
return raise_error(func)
@@ -13,7 +14,13 @@ def raise_error(func):
class PidanticFactory(object):
+ available = False
+
def __init__(self, **kwvals):
+ # allow the factory to declare itself unavailable to avoid sending
+ # heartbeats during weird transition states, for example when clearing all
+ # processes
+ self.available = True
pass
def get_pidantic(self, **kwvals):
View
@@ -1,4 +1,5 @@
#!/usr/bin/env pythonv
+# Copyright 2013 University of Chicago
try:
from setuptools import setup

0 comments on commit 7d98dcb

Please sign in to comment.