mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
[new] Codacy fixed
This commit is contained in:
@@ -13,7 +13,7 @@ class GrantApplication(WebsiteGenerator):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
if not self.route:
|
if not self.route: #pylint: disable=E0203
|
||||||
self.route = 'grant-application/' + self.scrub(self.name)
|
self.route = 'grant-application/' + self.scrub(self.name)
|
||||||
|
|
||||||
def onload(self):
|
def onload(self):
|
||||||
@@ -21,16 +21,9 @@ class GrantApplication(WebsiteGenerator):
|
|||||||
load_address_and_contact(self)
|
load_address_and_contact(self)
|
||||||
|
|
||||||
|
|
||||||
def get_context(self, context):
|
|
||||||
context.no_cache = True
|
|
||||||
context.parents = [dict(label='View All ',
|
|
||||||
route='grant-application', title='View All')]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_list_context(context):
|
def get_list_context(context):
|
||||||
context.allow_guest = True
|
context.allow_guest = True
|
||||||
context.no_cache = True
|
context.no_cache = True
|
||||||
context.no_breadcrumbs = True
|
context.no_breadcrumbs = True
|
||||||
context.order_by = 'creation desc'
|
context.order_by = 'creation desc'
|
||||||
context.introduction ='<div>Grant Application List</div><br><a class="btn btn-primary" href="/my-jobs?new=1">Apply for new Grant Application</a>'
|
context.introduction ='<div>Grant Application List</div><br><a class="btn btn-primary" href="/my-grant?new=1">Apply for new Grant Application</a>'
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
frappe.ready(function() {
|
frappe.ready(function() {
|
||||||
// bind events here
|
// bind events here
|
||||||
})
|
});
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import frappe
|
|
||||||
|
|
||||||
def get_context(context):
|
def get_context(context):
|
||||||
# do your magic here
|
context.no_cache = True
|
||||||
pass
|
context.parents = [dict(label='View All ',
|
||||||
|
route='grant-application', title='View All')]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user