MySQL support (rename columns names conflicting with MySQL reserved words)
darcs-hash:20070928184700-86b55-c9acce01326a0d0ae3c616d6e202ad9ebe6599ba.gz
This commit is contained in:
@@ -7,14 +7,18 @@ service_jid: jmc.localhost
|
|||||||
language: en
|
language: en
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
#type: mysql
|
#SQLite config
|
||||||
type: sqlite
|
type: sqlite
|
||||||
#host: root@localhost
|
|
||||||
host:
|
host:
|
||||||
name: /var/spool/jabber/jmc.db
|
name: /var/spool/jabber/jmc.db
|
||||||
#url: %(type)%(host)%(name)?debug=1&debugThreading=1
|
#Mysql config
|
||||||
|
#type: mysql
|
||||||
|
#host: root:pass@localhost
|
||||||
|
#name: /jmc
|
||||||
|
#db_url: %(type)s://%(host)s%(name)s?debug=1&debugThreading=1
|
||||||
db_url: %(type)s://%(host)s%(name)s
|
db_url: %(type)s://%(host)s%(name)s
|
||||||
|
|
||||||
|
|
||||||
[component]
|
[component]
|
||||||
pid_file: /var/run/jabber/jmc.pid
|
pid_file: /var/run/jabber/jmc.pid
|
||||||
#motd: "Message of the day"
|
#motd: "Message of the day"
|
||||||
|
|||||||
@@ -157,8 +157,9 @@ class MailAccount(PresenceAccount):
|
|||||||
password = StringCol(default=None)
|
password = StringCol(default=None)
|
||||||
host = StringCol(default="localhost")
|
host = StringCol(default="localhost")
|
||||||
port = IntCol(default=110)
|
port = IntCol(default=110)
|
||||||
ssl = BoolCol(default=False)
|
# explicitly set dbName to avoid MySQL reserved words
|
||||||
interval = IntCol(default=5)
|
ssl = BoolCol(default=False, dbName="_ssl")
|
||||||
|
interval = IntCol(default=5, dbName="_interval")
|
||||||
store_password = BoolCol(default=True)
|
store_password = BoolCol(default=True)
|
||||||
live_email_only = BoolCol(default=False)
|
live_email_only = BoolCol(default=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user