Other

test_helpers

rfid_lock_management.tests.test_helpers.t_info(mess_str, level=1)[source]

Print message to screen related to what is currently being tested. If PRINT_INFO is False, these still serve as documentation for the associated lines. Takes a string with the message and level, which refers to the type of message, and formats the string with color and indentation accordingly. The higher the level number, the more verbose/specific.

Types of messages: - level 1: TestCase name (white on green, prepend new line) - level 2: test method name and docstring (green, no indentation) - level 3: action description (cyan, no indentation) - level 4: assertion description (blue, indent one) - level 5: closer assertion description (magenta, indent two)

misc_helpers

rfid_lock_management.misc_helpers.get_arg_default(func, arg_name)[source]

Get the default value of the specified named argument. http://code.activestate.com/recipes/491272/

custom_filters

rfid_lock_management.templatetags.custom_filters.does_lockuser_have_active_keycard(object_id)[source]
rfid_lock_management.templatetags.custom_filters.fix_json_string(string)[source]

Marks a string as not requiring further HTML escaping prior to output.

rfid_lock_management.templatetags.custom_filters.get_doors_you_manage(request)[source]

Give template the list of door names that the staff user can manage, or ‘None’

rfid_lock_management.templatetags.custom_filters.get_object_type(content_type_id)[source]

Get class of object, based on the content type id

Table Of Contents

Previous topic

rfid_lock_management Package

Next topic

Unit and functional tests

This Page