Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- ##----------------------------------------------------------------------
- ## sa.TEST application
- ##----------------------------------------------------------------------
- ## Copyright (C) 2007-2013 The NOC Project
- ## See LICENSE for details
- ##----------------------------------------------------------------------
- from django import forms
- ## NOC modules
- from noc.lib.app import ExtApplication, view
- class TESTAppplication(ExtApplication):
- """
- sa.TEST application
- """
- title = "TEST"
- menu = "TEST"
- @view(method=["GET"], url=r"^$", access="read", api=True)
- def api_list(self, a ,b):
- summ = a + b
- return {
- "summ": summ,
- "success" : 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement