added permissions for server side print
diff --git a/website/templates/pages/print.html b/website/templates/pages/print.html
index fc7174d..b684dfe 100644
--- a/website/templates/pages/print.html
+++ b/website/templates/pages/print.html
@@ -12,4 +12,7 @@
<body>
{{ body }}
</body>
+{%- if comment -%}
+<!-- {{ comment }} -->
+{%- endif -%}
</html>
\ No newline at end of file
diff --git a/website/utils.py b/website/utils.py
index 811a40d..b059bea 100644
--- a/website/utils.py
+++ b/website/utils.py
@@ -76,7 +76,10 @@
from_cache = True
if not html:
- webnotes.connect()
+ from webnotes.auth import HTTPRequest
+ webnotes.http_request = HTTPRequest()
+
+ #webnotes.connect()
html = load_into_cache(page_name)
from_cache = False