Did I find the right examples for you? yes no

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

src/d/j/djangy-HEAD/install/install.py   djangy(Download)
require_file('/root/.ssh/authorized_keys', 'root', 'root', 0600, contents=read_file('conf/ssh_keys/root_key.pub'), overwrite=True)
require_file('/root/.ssh/config',          'root', 'root', 0600, contents=read_file('conf/ssh_keys/ssh_config'),   overwrite=True)
if config.MASTER_NODE and config.PRODUCTION:
    require_file('/etc/ssh/ssh_host_dsa_key',     'root', 'root', 0600, contents=read_file('conf/etc_ssh/ssh_host_dsa_key'),     overwrite=True)
    require_file('/etc/ssh/ssh_host_dsa_key.pub', 'root', 'root', 0644, contents=read_file('conf/etc_ssh/ssh_host_dsa_key.pub'), overwrite=True)
require_group('djangy', member_usernames=['www-data', 'git', 'shell'])
 
if config.PRODUCTION:
    require_directory('/proc', 'root', 'admin', 0550, create=False)
 
    'default-database-host'  : config.DEFAULT_DATABASE_HOST,
    'default-proxycache-host': config.DEFAULT_PROXYCACHE_HOST,
    'production'             : 'production' if config.PRODUCTION      else ''
}, overwrite=True)
 

src/w/a/wallmanager-HEAD/mtmenu/utils.py   wallmanager(Download)
from models import *
from window_manager import *
from config import MAX_ATTEMPTS, SLEEP_SECONDS_BETWEEN_ATTEMPTS, NATIVE_APP_NAMES, PRODUCTION
from mtmenu import logger
 
 
                tid, pid = win32process.GetWindowThreadProcessId(handler)
                if PRODUCTION:
                    Popen("taskkill /F /T /PID %i" % pid, shell=True)
 

src/w/a/wallmanager-HEAD/mtmenu/projectors_interface.py   wallmanager(Download)
from models import ScreensaverControlProxy, ProjectorControlProxy, ApplicationProxy
from mtmenu.application_running import is_app_running
from config import PRODUCTION, INACTIVITY_POOL_INTERVAL, TIME_TO_CHECK_PROJECTORS
 
from datetime import datetime

src/w/a/wallmanager-HEAD/mtmenu/models.py   wallmanager(Download)
import sys
from os import environ, path
from subprocess import Popen, PIPE
from config import APPS_REPOSITORY_PATH, APPS_BOOT_FILENAME, PRODUCTION
from cStringIO import StringIO
 
# Set needed environment variable
if PRODUCTION:
    environ['DJANGO_SETTINGS_MODULE'] = 'webmanager.settings-prod'
else:

src/w/a/wallmanager-HEAD/mtmenu/gesture/gesture_widget.py   wallmanager(Download)
 
from gesture.gesture_db import *
from config import GESTURE_ACCEPTANCE_MARGIN, PRODUCTION, UNAVAILABLE_PROJECTORS_TIME
from webmanager.appman.utils import projectors
from mtmenu import logger

src/g/a/gae-init-babel-HEAD/main/admin.py   gae-init-babel(Download)
 
  instances_url = None
  if config.PRODUCTION:
    instances_url = '%s?app_id=%s&version_id=%s' % (
        'https://appengine.google.com/instances',

src/g/a/gae-init-HEAD/main/admin.py   gae-init(Download)
 
  instances_url = None
  if config.PRODUCTION:
    instances_url = '%s?app_id=%s&version_id=%s' % (
        'https://appengine.google.com/instances',

src/g/a/gae-init-auth-HEAD/main/admin.py   gae-init-auth(Download)
 
  instances_url = None
  if config.PRODUCTION:
    instances_url = '%s?app_id=%s&version_id=%s' % (
        'https://appengine.google.com/instances',

src/g/a/gae-init-upload-HEAD/main/admin.py   gae-init-upload(Download)
 
  instances_url = None
  if config.PRODUCTION:
    instances_url = '%s?app_id=%s&version_id=%s' % (
        'https://appengine.google.com/instances',

src/g/a/gae-init-docs-HEAD/main/admin.py   gae-init-docs(Download)
 
  instances_url = None
  if config.PRODUCTION:
    instances_url = '%s?app_id=%s&version_id=%s' % (
        'https://appengine.google.com/instances',

  1 | 2  Next