From fe665d78a214fa8fa6fdcbd0cdcd59676ceca7bb Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 18 Nov 2013 19:27:57 +0530 Subject: [PATCH] [website] [sitemap] cleanup --- website/doctype/website_sitemap/__init__.py | 0 .../website_sitemap/website_sitemap.py | 11 +++ .../website_sitemap/website_sitemap.txt | 62 ++++++++++++++ .../website_sitemap_config/__init__.py | 0 .../website_sitemap_config.py | 11 +++ .../website_sitemap_config.txt | 85 +++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 website/doctype/website_sitemap/__init__.py create mode 100644 website/doctype/website_sitemap/website_sitemap.py create mode 100644 website/doctype/website_sitemap/website_sitemap.txt create mode 100644 website/doctype/website_sitemap_config/__init__.py create mode 100644 website/doctype/website_sitemap_config/website_sitemap_config.py create mode 100644 website/doctype/website_sitemap_config/website_sitemap_config.txt diff --git a/website/doctype/website_sitemap/__init__.py b/website/doctype/website_sitemap/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website/doctype/website_sitemap/website_sitemap.py b/website/doctype/website_sitemap/website_sitemap.py new file mode 100644 index 0000000000..3256c80d42 --- /dev/null +++ b/website/doctype/website_sitemap/website_sitemap.py @@ -0,0 +1,11 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. +# MIT License. See license.txt + +# For license information, please see license.txt + +from __future__ import unicode_literals +import webnotes + +class DocType: + def __init__(self, d, dl): + self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/website/doctype/website_sitemap/website_sitemap.txt b/website/doctype/website_sitemap/website_sitemap.txt new file mode 100644 index 0000000000..88888606aa --- /dev/null +++ b/website/doctype/website_sitemap/website_sitemap.txt @@ -0,0 +1,62 @@ +[ + { + "creation": "2013-11-18 15:38:40", + "docstatus": 0, + "modified": "2013-11-18 18:37:30", + "modified_by": "Administrator", + "owner": "Administrator" + }, + { + "autoname": "field:page_name", + "doctype": "DocType", + "module": "Website", + "name": "__common__" + }, + { + "doctype": "DocField", + "name": "__common__", + "parent": "Website Sitemap", + "parentfield": "fields", + "parenttype": "DocType", + "permlevel": 0 + }, + { + "doctype": "DocType", + "name": "Website Sitemap" + }, + { + "doctype": "DocField", + "fieldname": "page_or_generator", + "fieldtype": "Select", + "label": "Page or Generator", + "options": "Page\nGenerator", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "page_name", + "fieldtype": "Data", + "label": "Page Name", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "docname", + "fieldtype": "Data", + "label": "Docname", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "lastmod", + "fieldtype": "Data", + "label": "Lastmod" + }, + { + "doctype": "DocField", + "fieldname": "website_sitemap_config", + "fieldtype": "Link", + "label": "Website Sitemap Config", + "options": "Website Sitemap Config" + } +] \ No newline at end of file diff --git a/website/doctype/website_sitemap_config/__init__.py b/website/doctype/website_sitemap_config/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website/doctype/website_sitemap_config/website_sitemap_config.py b/website/doctype/website_sitemap_config/website_sitemap_config.py new file mode 100644 index 0000000000..3256c80d42 --- /dev/null +++ b/website/doctype/website_sitemap_config/website_sitemap_config.py @@ -0,0 +1,11 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. +# MIT License. See license.txt + +# For license information, please see license.txt + +from __future__ import unicode_literals +import webnotes + +class DocType: + def __init__(self, d, dl): + self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/website/doctype/website_sitemap_config/website_sitemap_config.txt b/website/doctype/website_sitemap_config/website_sitemap_config.txt new file mode 100644 index 0000000000..bc9a022a02 --- /dev/null +++ b/website/doctype/website_sitemap_config/website_sitemap_config.txt @@ -0,0 +1,85 @@ +[ + { + "creation": "2013-11-18 15:35:00", + "docstatus": 0, + "modified": "2013-11-18 18:36:01", + "modified_by": "Administrator", + "owner": "Administrator" + }, + { + "autoname": "field:link_name", + "doctype": "DocType", + "document_type": "System", + "module": "Website", + "name": "__common__" + }, + { + "doctype": "DocField", + "name": "__common__", + "parent": "Website Sitemap Config", + "parentfield": "fields", + "parenttype": "DocType", + "permlevel": 0 + }, + { + "doctype": "DocType", + "name": "Website Sitemap Config" + }, + { + "doctype": "DocField", + "fieldname": "page_or_generator", + "fieldtype": "Select", + "label": "Page or Generator", + "options": "Page\nGenerator", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "ref_doctype", + "fieldtype": "Link", + "label": "Ref DocType", + "options": "DocType", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "link_name", + "fieldtype": "Data", + "label": "Link Name", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "template_path", + "fieldtype": "Data", + "label": "Template Path", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "controller", + "fieldtype": "Data", + "label": "Controller", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "lastmod", + "fieldtype": "Data", + "label": "Lastmod" + }, + { + "doctype": "DocField", + "fieldname": "no_cache", + "fieldtype": "Check", + "label": "No Cache", + "read_only": 1 + }, + { + "doctype": "DocField", + "fieldname": "no_sitemap", + "fieldtype": "Check", + "label": "No Sitemap", + "read_only": 1 + } +] \ No newline at end of file