from WebKit.PickleRPCServlet import PickleRPCServlet

class Blah(object):
  pass

class Dill(PickleRPCServlet):
  """Goofy test of passing classes via rpc. """

  def allowedGlobals(self):
    """
    This allows you to pass in mx.DateTime objects.  See SafeUnpickler in
    MiscUtils.PickleRPC for more details.  You are only allowed
    to unpickle classes that are specifically listed here.
    """
    return [('MyContext.Dill', 'Blah'),]

  def exposedMethods(self):
    return ['GetFn',]

  def GetFn(self):
    return Blah
