2012-08-03 10:32:24 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-07-27 09:09:27 +00:00
|
|
|
def execute():
|
|
|
|
"""allocate read write permission to guest for doctype 'Blog'"""
|
|
|
|
import webnotes
|
|
|
|
webnotes.conn.sql("""delete from `tabDocPerm` where parent = 'Blog'""")
|
|
|
|
|
|
|
|
webnotes.conn.commit()
|
|
|
|
|
|
|
|
import webnotes.model.sync
|
|
|
|
webnotes.model.sync.sync('website', 'blog', 1)
|
|
|
|
|
|
|
|
webnotes.conn.begin()
|