~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/rpc/impl_fake.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandleman
  • Date: 2012-01-13 09:51:10 UTC
  • mfrom: (1.1.40)
  • Revision ID: package-import@ubuntu.com-20120113095110-ffd6163drcg77wez
Tags: 2012.1~e3~20120113.12049-0ubuntu1
[Chuck Short]
* New upstream version.
* debian/nova_sudoers, debian/nova-common.install, 
  Switch out to nova-rootwrap. (LP: #681774)
* Add "get-origsource-git" which allows developers to 
  generate a tarball from github, by doing:
  fakeroot debian/rules get-orig-source-git
* debian/debian/nova-objectstore.logrotate: Dont determine
  if we are running Debian or Ubuntu. (LP: #91379)

[Adam Gandleman]
* Removed python-nova.postinst, let dh_python2 generate instead since
  python-support is not a dependency. (LP: #907543)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
queues.  Casts will block, but this is very useful for tests.
18
18
"""
19
19
 
 
20
import inspect
20
21
import sys
21
22
import traceback
22
 
import types
23
23
 
24
24
from nova import context
25
25
from nova.rpc import common as rpc_common
60
60
            # if ending not 'sent'...we might have more data to
61
61
            # return from the function itself
62
62
            if not ctxt._done:
63
 
                if isinstance(rval, types.GeneratorType):
 
63
                if inspect.isgenerator(rval):
64
64
                    for val in rval:
65
65
                        yield val
66
66
                else:
132
132
        pass
133
133
 
134
134
 
 
135
def notify(context, topic, msg):
 
136
    pass
 
137
 
 
138
 
135
139
def fanout_cast(context, topic, msg):
136
140
    """Cast to all consumers of a topic"""
137
141
    method = msg.get('method')