Table Of Contents

Previous topic

core

Next topic

watching

This Page

projects

projects.admin

projects.constants

Default values and other various configuration for projects, including available theme names and repository types.

projects.forms

projects.models

projects.search_indexes

projects.tasks

projects.utils

Utility functions used by projects.

projects.utils.diff(txt1, txt2)

Create a ‘diff’ from txt1 to txt2.

projects.utils.find_file(file)

Find matching filenames in the current directory and its subdirectories, and return a list of matching filenames.

projects.utils.run(*commands)

Run one or more commands, and return (status, out, err). If more than one command is given, then this is equivalent to chaining them together with &&; if all commands succeed, then (status, out, err) will represent the last successful command. If one command failed, then (status, out, err) will represent the failed command.

projects.utils.safe_write(filename, contents)

Write contents to the given filename. If the filename’s directory does not exist, it is created. Contents are written as UTF-8, ignoring any characters that cannot be encoded as UTF-8.

projects.views

projects.views.public

projects.views.private