more recent changes
This commit is contained in:
11
contrib/frontends/py/nntpchan/config.py
Normal file
11
contrib/frontends/py/nntpchan/config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# please edit this file to contain the required information
|
||||
#
|
||||
|
||||
|
||||
""" path to article storage directory """
|
||||
storage = '/path/to/storage/'
|
||||
|
||||
""" database connector url """
|
||||
dburl = 'postgresql://user:password@localhost/database'
|
||||
#dburl = 'sqlite:///path/to/nntpchan.sqlite3'
|
16
contrib/frontends/py/nntpchan/db.py
Normal file
16
contrib/frontends/py/nntpchan/db.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from nntpchan import config
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
def allowsMessage(msgid):
|
||||
return True
|
||||
|
||||
def allowsNewsgroup(group):
|
||||
return True
|
||||
|
||||
|
||||
|
||||
def init():
|
||||
"""
|
||||
initialize db backend
|
||||
"""
|
Reference in New Issue
Block a user