Removed controller.py

This commit is contained in:
Anand Doshi 2014-04-21 15:12:46 +05:30
parent 80f1ef6268
commit b4e37af66c
2 changed files with 4 additions and 4 deletions

View file

@ -5,10 +5,10 @@ from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import get_request_site_address, encode
from frappe.model.controller import DocListController
from frappe.model.document import Document
from urllib import quote
class WebsiteSettings(DocListController):
class WebsiteSettings(Document):
def validate(self):
self.validate_top_bar_items()
self.validate_footer_items()

View file

@ -3,14 +3,14 @@
from __future__ import unicode_literals
import frappe
from frappe.model.controller import DocListController
from frappe.model.document import Document
from frappe.model.naming import append_number_if_name_exists
from frappe.website.utils import cleanup_page_name
from frappe.utils import now
from frappe.website.doctype.website_route.website_route import add_to_sitemap, update_sitemap, remove_sitemap
class WebsiteGenerator(DocListController):
class WebsiteGenerator(Document):
def autoname(self):
self.setup_generator()
if not self.website_template: return