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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Load the app and all associated StackedObjectProxies.

Useful for batch scripts.

The optional CONFIG_FILE argument specifies the config file to use for
the interactive shell. CONFIG_FILE defaults to 'development.ini'.

This allows you to test your mapper, models, and simulate web requests
using ``paste.fixture``.
(more...)

src/m/e/mediadrop-HEAD/batch-scripts/pylons-batch-script-template.py   mediadrop(Download)
#!/usr/bin/env python2.5
# -*- coding: utf-8 -*-
from mediadrop.lib.cli_commands import LoadAppCommand, load_app
 
_script_name = "Batch Script Template"
_script_description = """Use this script as a model for creating new batch scripts for MediaDrop."""
DEBUG = False
 
if __name__ == "__main__":
    cmd = LoadAppCommand(_script_name, _script_description)

src/m/e/mediadrop-HEAD/batch-scripts/upgrade/upgrade_from_v09_preserve_facebook_xid_comments.py   mediadrop(Download)
# Copyright (c) 2012 Felix Schwarz (www.schwarz.eu)
 
from mediadrop.lib.cli_commands import LoadAppCommand, load_app
 
_script_name = "Database Upgrade Script for v0.9.x users with Facebook comments"
 
if __name__ == "__main__":
    cmd = LoadAppCommand(_script_name, _script_description)
    cmd.parser.add_option(
        '--app-secret',