Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad body If Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list NameLoad decorator_list
N/A N/A Classes relating to value generators. N/A copy N/A inspect N/A os N/A pkgutil N/A feconf N/A utils BaseValueGenerator N/A object N/A N/A Base value generator class.

    A value generator is a class containing a function that takes in
    customization args and uses them to generate a value. The generated values
    are not typed, so if the caller wants strongly-typed values it would need
    to normalize the output of each generator.

    Each value generator should define a template file and an AngularJS
    directive. The names of these two files should be [ClassName].html and
    [ClassName].js respectively, where [ClassName] is the name of the value
    generator class.
     id N/A N/A self N/A N/A N/A N/A N/A self __class__ __name__ N/A property get_html_template N/A N/A cls N/A N/A N/A N/A N/A utils get_file_contents N/A N/A N/A os path join N/A N/A os getcwd N/A feconf VALUE_GENERATORS_DIR templates N/A %s.html N/A cls __name__ N/A classmethod get_js_template N/A N/A cls N/A N/A N/A N/A N/A utils get_file_contents N/A N/A N/A os path join N/A N/A os getcwd N/A feconf VALUE_GENERATORS_DIR templates N/A %s.js N/A cls __name__ N/A classmethod generate_value N/A N/A self N/A args kwargs N/A N/A Generates a new value, using the given customization args.

        The first arg should be context_params.
         N/A NotImplementedError N/A N/A Registry N/A object N/A N/A Registry of all value generators. N/A value_generators_dict N/A _refresh_registry N/A N/A cls N/A N/A N/A N/A N/A N/A cls value_generators_dict clear N/A value_generator_paths N/A N/A N/A N/A os path join N/A N/A os getcwd N/A feconf VALUE_GENERATORS_DIR models N/A N/A loader name _ N/A N/A pkgutil iter_modules path value_generator_paths N/A N/A N/A N/A name endswith _test N/A N/A N/A module N/A N/A N/A N/A loader find_module name load_module name N/A N/A name clazz N/A N/A inspect getmembers module N/A inspect isclass N/A N/A N/A issubclass clazz BaseValueGenerator N/A N/A N/A N/A clazz __name__ N/A cls value_generators_dict N/A N/A N/A Exception N/A Duplicate value generator name %s N/A clazz __name__ N/A N/A N/A cls value_generators_dict N/A N/A clazz __name__ clazz N/A classmethod get_all_generator_classes N/A N/A cls N/A N/A N/A Get the dict of all value generator classes. N/A N/A N/A cls _refresh_registry N/A N/A N/A copy deepcopy N/A cls value_generators_dict N/A classmethod get_generator_class_by_id N/A N/A cls generator_id N/A N/A N/A Gets a generator class by its id.

        Refreshes once if the generator is not found; subsequently, throws an
        error. N/A N/A generator_id N/A cls value_generators_dict N/A N/A N/A N/A cls _refresh_registry N/A N/A N/A cls value_generators_dict N/A generator_id N/A classmethod N/A