[website] [minor] moving to framework

This commit is contained in:
Anand Doshi
2013-09-10 18:29:39 +05:30
parent f2d0255031
commit b0d996ffb1
52 changed files with 606 additions and 199 deletions

View File

@@ -24,6 +24,9 @@ class DocType(TransactionBase):
if signature:
content += '<p>' + signature + '</p>'
return content
def get_portal_page(self):
return "ticket"
def validate(self):
self.update_status()

View File

@@ -4,6 +4,8 @@
from __future__ import unicode_literals
import webnotes
no_cache = True
def get_context():
bean = webnotes.bean("Support Ticket", webnotes.form_dict.name)
if bean.doc.raised_by != webnotes.session.user:

View File

@@ -5,6 +5,8 @@ from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, formatdate
no_cache = True
def get_context():
return {
"title": "My Tickets",