2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-03-21 12:29:56 +05:30
|
|
|
install_docs = [
|
2012-04-17 11:45:35 +05:30
|
|
|
{"doctype":"Role", "role_name":"Blogger", "name":"Blogger"},
|
|
|
|
{"doctype":"Role", "role_name":"Website Manager", "name":"Website Manager"},
|
|
|
|
]
|
2012-04-27 18:39:14 +05:30
|
|
|
|
|
|
|
import webnotes
|
|
|
|
|
2012-10-16 10:47:18 +05:30
|
|
|
|
|
|
|
def get_site_address():
|
|
|
|
from webnotes.utils import get_request_site_address
|
|
|
|
url = get_request_site_address()
|
|
|
|
|
|
|
|
if not url or url=='http://localhost':
|
|
|
|
new_url = webnotes.conn.get_value('Website Settings', 'Website Settings',
|
|
|
|
'subdomain')
|
|
|
|
if new_url:
|
|
|
|
url = "http://" + new_url
|
|
|
|
|
|
|
|
return url
|