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

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

src/l/i/lisa-server-0.1.1.31/lisa/server/plugins/PluginManager.py   lisa-server(Download)
from django.template.loader import render_to_string
import datetime
from lisa.server.web.weblisa.settings import LISA_PATH, configuration
from pymongo import MongoClient
 
                    listpluginmethods.append(m[0])
            listallmethods.append({ 'plugin': plugin.name, 'methods': listpluginmethods})
        for f in os.listdir(os.path.normpath(LISA_PATH + '/core')):
            fileName, fileExtension = os.path.splitext(f)
            if os.path.isfile(os.path.join(os.path.normpath(LISA_PATH + '/core'), f)) and not f.startswith('__init__') and fileExtension != '.pyc':
        os.mkdir(os.path.normpath(self.pkgpath + '/' + plugin_name + '/web'))
        os.mkdir(os.path.normpath(self.pkgpath + '/' + plugin_name + '/web/templates'))
        shutil.copy(src=os.path.normpath(LISA_PATH + '/web/manageplugins/templates/plugin/web/templates/widget.html'),
                    dst=os.path.normpath(self.pkgpath + '/' + plugin_name + '/web/templates/widget.html'))
        shutil.copy(src=os.path.normpath(LISA_PATH + '/web/manageplugins/templates/plugin/web/templates/index.html'),

src/l/i/lisa-server-0.1.1.31/lisa/server/web/weblisa/api.py   lisa-server(Download)
from mongoengine.django.auth import User
 
from lisa.server.web.weblisa.settings import LISA_PATH
 
class UserResource(mongoresources.MongoEngineResource):
        from subprocess import call, Popen
        combined_sound = []
        temp = LISA_PATH + "/tmp/" + str(uuid.uuid4()) + ".wav"
        language = str(lang[0])+'-'+str(lang[0]).upper()
        command = ['pico2wave', '-w', temp, '-l', language, '--', message]

src/l/i/lisa-server-0.1.1.31/lisa/server/web/manageplugins/views.py   lisa-server(Download)
from shutil import rmtree
from lisa.server.web.weblisa.utils import method_restricted_to, is_ajax
from lisa.server.web.weblisa.settings import LISA_PATH
 
@method_restricted_to('GET')

src/l/i/lisa-server-0.1.1.31/lisa/server/web/interface/api.py   lisa-server(Download)
from twisted.python.reflect import namedAny
 
from lisa.server.web.weblisa.settings import LISA_PATH
 
class WidgetResource(mongoresources.MongoEngineResource):

src/l/i/lisa-plugin-ChatterBot-0.1.6/lisa/plugins/ChatterBot/web/views.py   lisa-plugin-ChatterBot(Download)
 
from lisa.server.web.weblisa.utils import method_restricted_to, is_ajax
from lisa.server.web.weblisa.settings import LISA_PATH
 
from lisa.plugins.ChatterBot.modules.chatterbot import ChatterBot

src/l/i/lisa-plugin-ChatterBot-0.1.6/lisa/plugins/ChatterBot/web/api.py   lisa-plugin-ChatterBot(Download)
from tastypie.utils import trailing_slash
import json
from lisa.server.web.weblisa.settings import LISA_PATH
 
class ChatterBot(object):