OpenBlock 1.2 documentation

obadmin

Administrative UI, installation and utilities package for OpenBlock.

The oblock command

oblock is a command-line program that gets installed with obadmin. It provides commands to help install and manage OpenBlock and its database(s). This is purely optional, and we've moved away from recommending it, but the demo setup script uses it quite a bit.

Try running oblock help to see all the available commands. Each "task" can be run as a subcommand, like oblock sync_all.

obadmin Package

obadmin Package

pavement Module

Quick and Dirty OpenBlock Installer

skel Module

class obadmin.skel.OpenblockTemplate(name)

Bases: paste.script.templates.Template

A template for the paster create command that bootstraps a custom OpenBlock Django app as described in the OpenBlock custom app docs.

post(command, output_dir, vars)

Make some files executable. Pastescript forgets to do so, see issue https://bitbucket.org/ianb/pastescript/issue/2/executable-files-in-templates-do-not-have

testrunner Module

class obadmin.testrunner.TestSuiteRunner(verbosity=1, interactive=True, failfast=True, **kwargs)

Bases: django.test.simple.DjangoTestSuiteRunner

This is a custom test runner for OpenBlock.