2007-07-16 20:22:38 +00:00
|
|
|
import cherrypy
|
2008-10-29 21:26:22 +00:00
|
|
|
from controller.Session_storage import Session_storage
|
2007-07-16 20:22:38 +00:00
|
|
|
|
|
|
|
|
2007-09-20 20:36:19 +00:00
|
|
|
MEGABYTE = 1024 * 1024
|
|
|
|
|
|
|
|
|
2007-07-16 20:22:38 +00:00
|
|
|
settings = {
|
|
|
|
"global": {
|
2007-08-01 20:24:46 +00:00
|
|
|
"server.socket_port": 8081,
|
2007-07-16 20:22:38 +00:00
|
|
|
"server.environment": "production",
|
|
|
|
"session_filter.on": True,
|
2008-10-29 21:26:22 +00:00
|
|
|
"session_filter.storage_class": Session_storage,
|
2007-07-16 20:22:38 +00:00
|
|
|
"session_filter.timeout": 60 * 72, # 72 hours
|
|
|
|
"session_filter.clean_up_delay": 5,
|
|
|
|
"encoding_filter.on": True,
|
|
|
|
"encoding_filter.encoding": "utf-8",
|
|
|
|
"decoding_filter.on": True,
|
|
|
|
"decoding_filter.encoding": "utf-8",
|
2007-08-02 18:52:20 +00:00
|
|
|
"luminotes.http_url": "",
|
2007-08-02 04:01:11 +00:00
|
|
|
"luminotes.https_url": "",
|
2007-08-03 19:29:20 +00:00
|
|
|
"luminotes.http_proxy_ip": "127.0.0.1",
|
|
|
|
"luminotes.https_proxy_ip": "127.0.0.2",
|
2008-08-16 00:27:03 +00:00
|
|
|
"luminotes.db_host": "localhost", # hostname for PostgreSQL or None (no quotes) for SQLite
|
2008-05-16 21:12:01 +00:00
|
|
|
"luminotes.db_ssl_mode": "allow", # "disallow", "allow", "prefer", or "require"
|
2007-10-31 23:33:09 +00:00
|
|
|
"luminotes.support_email": "",
|
2008-01-22 20:31:36 +00:00
|
|
|
"luminotes.payment_email": "",
|
2007-09-20 20:36:19 +00:00
|
|
|
"luminotes.rate_plans": [
|
|
|
|
{
|
2007-12-11 01:15:03 +00:00
|
|
|
"name": "free",
|
2009-03-02 21:16:40 +00:00
|
|
|
"designed_for": "",
|
2007-09-20 20:36:19 +00:00
|
|
|
"storage_quota_bytes": 30 * MEGABYTE,
|
2008-05-28 23:06:57 +00:00
|
|
|
"included_users": 1,
|
2008-08-21 00:05:21 +00:00
|
|
|
"notebook_sharing": True,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": False,
|
2008-05-28 23:06:57 +00:00
|
|
|
"user_admin": False,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": None,
|
2008-05-08 18:39:46 +00:00
|
|
|
"yearly_fee": None,
|
2007-12-11 01:15:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "basic",
|
2008-05-28 23:29:57 +00:00
|
|
|
"designed_for": "home users",
|
2007-12-11 01:15:03 +00:00
|
|
|
"storage_quota_bytes": 250 * MEGABYTE,
|
2008-05-28 23:06:57 +00:00
|
|
|
"included_users": 1,
|
2008-08-21 00:05:21 +00:00
|
|
|
"notebook_sharing": True,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": True,
|
2008-05-28 23:06:57 +00:00
|
|
|
"user_admin": False,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": 5,
|
2008-05-08 18:39:46 +00:00
|
|
|
"yearly_fee": 50,
|
2008-01-10 08:33:19 +00:00
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
2008-05-08 18:39:46 +00:00
|
|
|
"yearly_button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-09-20 20:36:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "standard",
|
2008-05-28 23:06:57 +00:00
|
|
|
"designed_for": "professionals",
|
2007-12-11 01:15:03 +00:00
|
|
|
"storage_quota_bytes": 500 * MEGABYTE,
|
2008-05-28 23:06:57 +00:00
|
|
|
"included_users": 1,
|
2008-08-21 00:05:21 +00:00
|
|
|
"notebook_sharing": True,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": True,
|
2008-05-28 23:06:57 +00:00
|
|
|
"user_admin": False,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": 9,
|
2008-05-08 18:39:46 +00:00
|
|
|
"yearly_fee": 90,
|
2008-01-10 08:33:19 +00:00
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
2008-05-08 18:39:46 +00:00
|
|
|
"yearly_button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-09-20 20:36:19 +00:00
|
|
|
},
|
2008-05-28 23:06:57 +00:00
|
|
|
{
|
|
|
|
"name": "plus",
|
|
|
|
"designed_for": "small teams",
|
|
|
|
"storage_quota_bytes": 1000 * MEGABYTE,
|
2008-06-05 22:50:45 +00:00
|
|
|
"included_users": 5,
|
2008-08-21 00:05:21 +00:00
|
|
|
"notebook_sharing": True,
|
2008-05-28 23:06:57 +00:00
|
|
|
"notebook_collaboration": True,
|
|
|
|
"user_admin": True,
|
|
|
|
"fee": 19,
|
|
|
|
"yearly_fee": 190,
|
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
|
|
|
"yearly_button":
|
|
|
|
"""
|
|
|
|
""",
|
|
|
|
},
|
|
|
|
{
|
2008-06-03 04:16:26 +00:00
|
|
|
"name": "premium",
|
2008-05-28 23:06:57 +00:00
|
|
|
"designed_for": "organizations",
|
|
|
|
"storage_quota_bytes": 5000 * MEGABYTE,
|
2008-06-05 22:50:45 +00:00
|
|
|
"included_users": 30,
|
2008-08-21 00:05:21 +00:00
|
|
|
"notebook_sharing": True,
|
2008-05-28 23:06:57 +00:00
|
|
|
"notebook_collaboration": True,
|
|
|
|
"user_admin": True,
|
|
|
|
"fee": 99,
|
|
|
|
"yearly_fee": 990,
|
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
|
|
|
"yearly_button":
|
|
|
|
"""
|
|
|
|
""",
|
|
|
|
},
|
2007-09-20 20:36:19 +00:00
|
|
|
],
|
2008-09-11 07:36:12 +00:00
|
|
|
"luminotes.download_products": [
|
|
|
|
{
|
|
|
|
"name": "Luminotes Desktop",
|
|
|
|
"designed_for": "individuals",
|
|
|
|
"storage_quota_bytes": None,
|
|
|
|
"included_users": 1,
|
|
|
|
"notebook_sharing": False,
|
|
|
|
"notebook_collaboration": False,
|
|
|
|
"user_admin": False,
|
|
|
|
"fee": "20.00",
|
|
|
|
"item_number": "5000",
|
|
|
|
"filename": "luminotes.exe",
|
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
|
|
|
},
|
|
|
|
],
|
2008-01-10 23:15:37 +00:00
|
|
|
"luminotes.unsubscribe_button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-07-16 20:22:38 +00:00
|
|
|
},
|
2008-02-18 20:08:07 +00:00
|
|
|
"/files/download": {
|
|
|
|
"stream_response": True,
|
|
|
|
"encoding_filter.on": False,
|
|
|
|
},
|
2008-09-18 06:39:11 +00:00
|
|
|
"/files/download_product": {
|
|
|
|
"stream_response": True,
|
|
|
|
"encoding_filter.on": False,
|
|
|
|
},
|
|
|
|
"/files/thumbnail": {
|
|
|
|
"stream_response": True,
|
|
|
|
"encoding_filter.on": False,
|
|
|
|
},
|
|
|
|
"/files/image": {
|
|
|
|
"stream_response": True,
|
|
|
|
"encoding_filter.on": False,
|
|
|
|
},
|
2009-02-19 07:52:18 +00:00
|
|
|
"/notebooks/export": {
|
2008-09-18 06:39:11 +00:00
|
|
|
"stream_response": True,
|
|
|
|
"encoding_filter.on": False,
|
|
|
|
},
|
2008-02-24 00:31:07 +00:00
|
|
|
"/files/upload": {
|
|
|
|
"server.max_request_body_size": 505 * MEGABYTE, # maximum upload size
|
|
|
|
},
|
2008-02-18 20:08:07 +00:00
|
|
|
"/files/progress": {
|
2008-01-31 21:52:32 +00:00
|
|
|
"stream_response": True
|
|
|
|
},
|
2007-07-16 20:22:38 +00:00
|
|
|
}
|