Our custom ordering system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
605 B

""" schemas package """
from deform import Form
from pkg_resources import resource_filename
def includeme(config):
"""Defining form templates overrides
Activate this setup using ``config.include('ordr3.schemas')``.
"""
# this allows to use the request object like this:
# request.flash(channel, message, description)
ordr_templates = resource_filename("ordr3", "templates/deform")
deform_templates = resource_filename("deform", "templates")
search_path = (ordr_templates, deform_templates)
# search_path = (ordr_templates, )
Form.set_zpt_renderer(search_path)