"""Groupy robot""" import logging import re from waveapi import events from waveapi import model from waveapi import robot import kay kay.setup() from kay.misc import get_appid from kay.conf import settings from groupy.models import Group hostname = "%s.appspot.com" % get_appid() class Command(object): def __init__(self, name, pattern, func): self.name = name self.pattern = pattern self.func = func def __call__(self, properties, context, user, **kwargs): return self.func(properties, context, user, **kwargs) def desc(properties, context, user, groupname=None): blip = context.GetBlipById(properties['blipId']) group = Group.get_by_key_name(Group.get_key_name(groupname)) text = ("You(%s) requested the description of the group: %s.\n"
import sys import os import unittest import time import types import logging import cgi from google.appengine.ext import webapp from google.appengine.api import apiproxy_stub_map from google.appengine.api import datastore_file_stub from google.appengine.ext.webapp.util import run_wsgi_app import kay kay.setup() import json from kay.conf import settings from werkzeug.utils import import_string _cached_suite = None _WEB_TEST_DIR = '/_ah/test' # how you want to refer to tests on your web server # or: # _WEB_TEST_DIR = '/u/test' # then in app.yaml: # - url: /u/test.*