Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/d/r/droned-HEAD/droned/lib/droned/models/conversation.py   droned(Download)
class Conversation(Entity):
    """model of a conversation"""
    implements(IDroneModelConversation)
    jabber = property(lambda s: services.getService('jabber'))
    jabber_config = property(lambda s: s.jabber.SERVICECONFIG)
class ChatRoom(Entity):
    """models the actions needed to interact in a chatroom"""
    implements(IDroneModelChatRoom)
    jabber = property(lambda s: services.getService('jabber'))
    jabber_config = property(lambda s: s.jabber.SERVICECONFIG)

src/d/r/droned-HEAD/droned/lib/droned/responders/__init__.py   droned(Download)
 
try: #handle abstaction to service config
    jabber_service = services.getService('jabber')
    jabber_config = jabber_service.SERVICECONFIG
except ServiceNotAvailable:

src/d/r/droned-HEAD/droned/lib/droned/models/team.py   droned(Download)
class Team(Entity):
  jabber_service = property(lambda s: services.getService('jabber'))
  jabber_config = property(lambda s: s.jabber_service.SERVICECONFIG)
  availableAgents = property(lambda s: (agent for agent in s.agents if agent.available))
  available = property(lambda self: any(self.availableAgents))

src/d/r/droned-HEAD/droned/lib/droned/events/jabber.py   droned(Download)
 
try:
   jabber = services.getService('jabber')
   jconfig = jabber.SERVICECONFIG
except ServiceNotAvailable:

src/d/r/droned-HEAD/droned/services/remote_config.py   droned(Download)
    return bool(service) and getService(dependant_service).running
 
from services import getService
__all__ = ['install', 'start', 'stop', 'running']