Rushabh Mehta | da512ba | 2013-03-22 12:45:44 +0530 | [diff] [blame] | 1 | import webnotes |
| 2 | |
| 3 | page_map = { |
| 4 | 'Web Page': webnotes._dict({ |
| 5 | "template": 'html/web_page.html', |
| 6 | "condition_field": "published" |
| 7 | }), |
| 8 | 'Blog Post': webnotes._dict({ |
| 9 | "template": 'html/blog_page.html', |
| 10 | "condition_field": "published", |
| 11 | }), |
| 12 | 'Item': webnotes._dict({ |
| 13 | "template": 'html/product_page.html', |
| 14 | "condition_field": "show_in_website", |
| 15 | }), |
| 16 | 'Item Group': webnotes._dict({ |
| 17 | "template": "html/product_group.html", |
| 18 | "condition_field": "show_in_website" |
| 19 | }) |
| 20 | } |
| 21 | |
| 22 | page_settings_map = { |
| 23 | "about": "website.doctype.about_us_settings.about_us_settings.get_args", |
| 24 | "contact": "Contact Us Settings", |
| 25 | "blog": "website.helpers.blog.get_blog_template_args", |
| 26 | "writers": "website.helpers.blog.get_writers_args", |
| 27 | "print": "core.doctype.print_format.print_format.get_args", |
| 28 | "orders": "selling.doctype.sales_order.sales_order.get_currency_and_number_format", |
| 29 | "order": "selling.doctype.sales_order.sales_order.get_website_args", |
| 30 | "ticket": "support.doctype.support_ticket.support_ticket.get_website_args" |
| 31 | } |
| 32 | |
| 33 | no_cache = ["message", "print"] |