Rushabh Mehta | 8fa3e6c | 2013-01-24 13:09:39 +0530 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | |
Rushabh Mehta | 3966f1d | 2012-02-23 12:35:32 +0530 | [diff] [blame] | 3 | # ERPNext - web based ERP (http://erpnext.com) |
| 4 | # Copyright (C) 2012 Web Notes Technologies Pvt Ltd |
| 5 | # |
| 6 | # This program is free software: you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation, either version 3 of the License, or |
| 9 | # (at your option) any later version. |
| 10 | # |
| 11 | # This program is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
Rushabh Mehta | 2eef40b | 2012-07-16 14:16:57 +0530 | [diff] [blame] | 19 | # default settings that can be made for a profile. |
Anand Doshi | 486f9df | 2012-07-19 13:40:31 +0530 | [diff] [blame] | 20 | from __future__ import unicode_literals |
Pratik Vyas | c1e6e4c | 2011-06-08 14:37:15 +0530 | [diff] [blame] | 21 | |
Anand Doshi | 19df188 | 2013-02-17 00:26:59 +0530 | [diff] [blame] | 22 | import webnotes |
| 23 | |
Rushabh Mehta | 2eef40b | 2012-07-16 14:16:57 +0530 | [diff] [blame] | 24 | product_name = "ERPNext" |
| 25 | profile_defaults = { |
| 26 | "Company": "company", |
| 27 | "Territory": "territory" |
| 28 | } |
Rushabh Mehta | 4b9827a | 2013-02-12 19:20:39 +0530 | [diff] [blame] | 29 | |
Pratik Vyas | c1e6e4c | 2011-06-08 14:37:15 +0530 | [diff] [blame] | 30 | # add startup propertes |
Rushabh Mehta | e598487 | 2012-08-03 14:15:07 +0530 | [diff] [blame] | 31 | mail_footer = """<div style="padding: 7px; text-align: right; color: #888"><small>Sent via |
Anand Doshi | cb72e01 | 2013-10-31 19:06:34 +0530 | [diff] [blame] | 32 | <a style="color: #888" href="http://erpnext.org">ERPNext</a></div>""" |
Rushabh Mehta | e598487 | 2012-08-03 14:15:07 +0530 | [diff] [blame] | 33 | |
| 34 | def get_monthly_bulk_mail_limit(): |
| 35 | import webnotes |
| 36 | # if global settings, then 500 or unlimited |
| 37 | if webnotes.conn.get_value('Email Settings', None, 'outgoing_mail_server'): |
| 38 | return 999999 |
| 39 | else: |
Rushabh Mehta | 49dc5da | 2012-08-03 16:02:24 +0530 | [diff] [blame] | 40 | return 500 |