blob: aace68bb648266ea4e5211ce911c754903415939 [file] [log] [blame]
Anand Doshi486f9df2012-07-19 13:40:31 +05301from __future__ import unicode_literals
Rushabh Mehtac01b7e92012-03-21 12:29:56 +05302install_docs = [
Anand Doshi24e18562012-04-17 11:45:35 +05303 {"doctype":"Role", "role_name":"Blogger", "name":"Blogger"},
4 {"doctype":"Role", "role_name":"Website Manager", "name":"Website Manager"},
5]
Rushabh Mehta389880d2012-04-27 18:39:14 +05306
7import webnotes
8
Anand Doshi7aedaec2012-10-16 10:47:18 +05309
10def get_site_address():
11 from webnotes.utils import get_request_site_address
12 url = get_request_site_address()
13
14 if not url or url=='http://localhost':
15 new_url = webnotes.conn.get_value('Website Settings', 'Website Settings',
16 'subdomain')
17 if new_url:
18 url = "http://" + new_url
19
20 return url