fix to blog and wnf backup does not backup files

This commit is contained in:
Rushabh Mehta 2013-03-08 11:56:52 +05:30
parent 981db7b561
commit 177226616a
3 changed files with 4 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class DocType:
self.create_email_digest()
webnotes.clear_cache()
msgprint("Company setup is complete")
msgprint("Company setup is complete. Please refresh the page before continuing.")
import webnotes.utils
user_fullname = (args.get('first_name') or '') + (args.get('last_name')

View File

@ -29,7 +29,8 @@ class DocType:
self.doc.name = page_name(self.doc.title)
def validate(self):
self.doc.blog_intro = self.doc.blog_intro[:140]
if self.doc.blog_intro:
self.doc.blog_intro = self.doc.blog_intro[:140]
def on_update(self):
from website.utils import update_page_name

View File

@ -13,6 +13,6 @@ class DocType:
for blog in webnotes.conn.sql_list("""select name from tabBlog where owner=%s
and ifnull(blogger,'')=''""", self.doc.profile):
b = webnotes.bean("Blog", blog)
b.blogger = self.doc.name
b.doc.blogger = self.doc.name
b.save()