exhibit Namespace Reference


Classes

class  ExhibitError

Functions

def output_response
def output_error
def output_object
def paths_for_locks
def lock
def unlock
def load_json
def save_json
def save_submissions
def save_database
def execute_handler
def __execute_handler

Variables

tuple config
dictionary lock_map
list locked_files = []


Function Documentation

def exhibit::__execute_handler (   handler  )  [private]

Definition at line 106 of file exhibit.py.

def exhibit::execute_handler (   handler  ) 

Definition at line 97 of file exhibit.py.

def exhibit::load_json (   filename  ) 

Definition at line 70 of file exhibit.py.

def exhibit::lock (   locks  ) 

Definition at line 56 of file exhibit.py.

def exhibit::output_error (   msg  ) 

Definition at line 36 of file exhibit.py.

def exhibit::output_object (   obj  ) 

Definition at line 39 of file exhibit.py.

def exhibit::output_response (   status,
  content_type,
  text 
)

Definition at line 30 of file exhibit.py.

def exhibit::paths_for_locks (   locks  ) 

Definition at line 51 of file exhibit.py.

def exhibit::save_database (   data  ) 

Definition at line 84 of file exhibit.py.

def exhibit::save_json (   obj,
  filename 
)

Definition at line 75 of file exhibit.py.

def exhibit::save_submissions (   sub  ) 

Definition at line 81 of file exhibit.py.

def exhibit::unlock (  ) 

Definition at line 62 of file exhibit.py.


Variable Documentation

Initial value:

dict(

    # enter a unique admin password for this exhibit
    password = 'MY_PASSWORD ',

    # json file the exhibit database is stored in
    database_path = '../apartments.js',

    # json file to store unapproved submissions    
    submissions_path = 'submissions.js',
    
    # maximum number of unapproved submissions
    max_submissions = 100,
    
    # maximum number of characters in any submission field
    max_field_size = 250
)

Definition at line 10 of file exhibit.py.

dictionary exhibit::lock_map

Initial value:

{
    None: [],
    'submissions': ['submissions_path'],
    'both': ['database_path', 'submissions_path']
}

Definition at line 45 of file exhibit.py.

Definition at line 54 of file exhibit.py.


Generated on Sun Mar 18 07:15:45 2012 for Semantic MediaWiki by  doxygen 1.5.6