naming fix in web page, list style

This commit is contained in:
Rushabh Mehta 2012-02-13 15:26:17 +05:30
parent ba746dfb2f
commit ff0946bbda
2 changed files with 6 additions and 3 deletions

View File

@ -10,8 +10,11 @@ class DocType:
self.doc.name = website.utils.page_name(self.doc.title)
def validate(self):
"""make page for this product"""
p = website.utils.add_page(self.doc.title)
"""make page for this product"""
if not self.doc.name:
self.doc.name = website.utils.page_name(self.doc.title)
p = website.utils.add_page(self.doc.name)
from jinja2 import Template
from webnotes.utils import global_date_format

View File

@ -1 +1 @@
384
385