Rushabh Mehta | ad45e31 | 2013-11-20 12:59:58 +0530 | [diff] [blame] | 1 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors |
Rushabh Mehta | e67d1fb | 2013-08-05 14:59:54 +0530 | [diff] [blame] | 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
Anand Doshi | 486f9df | 2012-07-19 13:40:31 +0530 | [diff] [blame] | 4 | from __future__ import unicode_literals |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 5 | import frappe |
Anand Doshi | bedc62f | 2014-04-04 16:26:45 +0530 | [diff] [blame] | 6 | from frappe.utils import cint |
Rushabh Mehta | 12852e7 | 2012-02-29 15:11:06 +0530 | [diff] [blame] | 7 | |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 8 | @frappe.whitelist() |
Rushabh Mehta | 1d8f1a9 | 2014-04-16 09:32:51 +0530 | [diff] [blame] | 9 | def get_feed(limit_start, limit_page_length): |
Anand Doshi | bedc62f | 2014-04-04 16:26:45 +0530 | [diff] [blame] | 10 | """get feed""" |
Rushabh Mehta | 1d8f1a9 | 2014-04-16 09:32:51 +0530 | [diff] [blame] | 11 | return frappe.get_list("Feed", fields=["name", "feed_type", "doc_type", "subject", "owner", "modified"], |
| 12 | limit_start = limit_start, limit_page_length = limit_page_length) |