|
@@ -5,11 +5,9 @@ from __future__ import unicode_literals |
|
|
import webnotes |
|
|
import webnotes |
|
|
from webnotes.webutils import WebsiteGenerator |
|
|
from webnotes.webutils import WebsiteGenerator |
|
|
from webnotes import _ |
|
|
from webnotes import _ |
|
|
|
|
|
from webnotes.model.controller import DocListController |
|
|
|
|
|
|
|
|
class DocType(WebsiteGenerator): |
|
|
|
|
|
def __init__(self, d, dl): |
|
|
|
|
|
self.doc, self.doclist = d, dl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DocType(DocListController, WebsiteGenerator): |
|
|
def autoname(self): |
|
|
def autoname(self): |
|
|
from webnotes.webutils import cleanup_page_name |
|
|
from webnotes.webutils import cleanup_page_name |
|
|
self.doc.name = cleanup_page_name(self.doc.title) |
|
|
self.doc.name = cleanup_page_name(self.doc.title) |
|
|