diff options
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -62,14 +62,13 @@ config = ConfigParser.RawConfigParser() config.read("./cfg/pyAggr3g470r.cfg") path = os.path.abspath(".") sqlite_base = os.path.abspath(config.get('global', 'sqlitebase')) +MAX_NB_ARTICLES = int(config.get('global', 'max_nb_articles')) mail_from = config.get('mail','mail_from') mail_to = config.get('mail','mail_to') smtp_server = config.get('mail','smtp') username = config.get('mail','username') password = config.get('mail','password') -MAX_NB_ARTICLES = -1 - # regular expression to chech URL url_finders = [ \ re.compile("([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\!\\*\\(\\),;:@&=\\?/~\\#\\%]*[^]'\\.}>\\),\\\"]"), \ |