tools Package

tools Package

class tic.development.tools.AppYamlGeneratorBuildTask(compmgr, init=None, cls=<class 'tic.development.tools.AppYamlGeneratorBuildTask'>)[source]

Bases: tic.core.Component

app_yaml = 'app.yaml'
run(build_path)[source]

Gnerates the app.yaml file

class tic.development.tools.BuildTaskRunner(compmgr, init=None, cls=<class 'tic.development.tools.BuildTaskRunner'>)[source]

Bases: tic.core.Component

build_path = '../build'
get_admin_commands()[source]
run(build=None)[source]

Cleans and initializes the build directory.

tasks

List of components that implement tic.development.tools.api.IBuildTask

class tic.development.tools.CopySourceTreeBuildTask(compmgr, init=None, cls=<class 'tic.development.tools.CopySourceTreeBuildTask'>)[source]

Bases: tic.core.Component

run(build_path)[source]
class tic.development.tools.DeleteDevelopmentFiles(compmgr, init=None, cls=<class 'tic.development.tools.DeleteDevelopmentFiles'>)[source]

Bases: tic.core.Component

directories_to_delete = ['tic/web/client/']
run(build_path)[source]
class tic.development.tools.SettingsPyGeneratorBuildTask(compmgr, init=None, cls=<class 'tic.development.tools.SettingsPyGeneratorBuildTask'>)[source]

Bases: tic.core.Component

run(build_path)[source]

Writes the file

settings_file = 'settings.py'

api Module

class tic.development.tools.api.IBuildTask[source]

Bases: tic.core.Interface

Interface for running a build task

run(build_path)[source]

What to do to execute the task

class tic.development.tools.api.IDirectoryWatcher[source]

Bases: tic.core.Interface

Interface for watching deleted files and stuff

changed(changed_files)[source]

changed_files: list of paths to changed files

created(created_files)[source]

created_files: list of paths to newly created files

deleted(deleted_files)[source]

deleted_files: list of paths to removed files

class tic.development.tools.api.IRunServerTask[source]

Bases: tic.core.Interface

Interface for running a task before the server starts

run()[source]

Executes the task

directory_watcher Module

class tic.development.tools.directory_watcher.DirectoryWatcher(compmgr, init=None, cls=<class 'tic.development.tools.directory_watcher.DirectoryWatcher'>)[source]

Bases: tic.core.Component

directory_watchers

List of components that implement tic.development.tools.api.IDirectoryWatcher

watch(path, delay=1)[source]

starts watching the provided path

class tic.development.tools.directory_watcher.DirectoryWatcherCommand(compmgr, init=None, cls=<class 'tic.development.tools.directory_watcher.DirectoryWatcherCommand'>)[source]

Bases: tic.core.Component

get_admin_commands()[source]

Returns a list of commands to execute @see tic.admin.api.IAdminCommandProvider

class tic.development.tools.directory_watcher.SimpleDirectoryChangeLogger(compmgr, init=None, cls=<class 'tic.development.tools.directory_watcher.SimpleDirectoryChangeLogger'>)[source]

Bases: tic.core.Component

changed(list)[source]
created(list)[source]
deleted(list)[source]
tic.development.tools.directory_watcher.watch_directories(paths, func, delay=1)[source]

(paths:[str], func:callable, delay:float) Continuously monitors the paths and their subdirectories for changes. If any files or directories are modified, the callable ‘func’ is called with a list of the modified paths of both files and directories. ‘func’ can return a Boolean value for rescanning; if it returns True, the directory tree will be rescanned without calling func() for any found changes. (This is so func() can write changes into the tree and prevent itself from being immediately called again.)

Table Of Contents

Previous topic

tools Package

Next topic

utils Package

This Page