Changeset 41

Show
Ignore:
Timestamp:
07/31/06 22:32:34 (2 years ago)
Author:
David Rousselie <dax@happycoders.org>
Message:

some other refactoring

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/jmc.py

    r39 r41  
    3030sys.setdefaultencoding('utf-8') 
    3131del sys.setdefaultencoding 
    32  
    33 from jmc import mailconnection 
    34 from jmc.component import MailComponent, ComponentFatalError 
    35 from jmc.config import Config 
     32from jmc.email import mailconnection 
     33from jmc.jabber.component import MailComponent, ComponentFatalError 
     34from jmc.utils.config import Config 
    3635 
    3736def main(config_file = "jmc.xml", isDebug = 0): 
  • README

    r13 r41  
    1010                             [{password, "secret"}]}]} 
    1111 
    12 - then run python jmc.py -c jmc.xml (-D to get debug) 
     12- then run (in src directory): 
     13$ python jmc.py -c jmc.xml (-D to get debug) 
    1314 
    1415Usage : 
     
    2324Send me feedback and comments to dax at happycoders dot org 
    2425 
    25 Utils
    26 - backend_converter.py convert from one storage type to another. 
     26Utils (in src/utils directory)
     27- jmc_converter.py convert from one storage type to another. 
    2728 
    28 $ python utils/backend_converter.py  
     29$ python jmc_converter.py  
    2930 
    30 give you the list of supported types. 
    31 example of usage : 
     31-> give you the list of supported types. 
    3232 
    33 $ python utils/backend_converter.py \ 
     33Example of usage : 
     34 
     35$ python jmc_converter.py \ 
    3436  DBM \ 
    3537  registered.db \ 
     
    3739  registered.sqlite 
    3840 
    39 converts a DBM file (registered.db) to a SQLite file 
     41-> converts a DBM file (registered.db) to a SQLite file 
    4042(registered.sqlite). Once converted, the new file copied in 
    4143${spool_dir}/${service}/registered.db where ${spool_dir} and 
    4244${service} are defined in jmc.xml configuration file. 
    4345 
    44 - backend_dump.py dump a db file. example : 
     46- jmc_dump.py dump a db file. example : 
    4547 
    46 $ python utils/backend_dump.py DBM registered.db 
     48$ python jmc_dump.py DBM registered.db 
    4749 
    4850 
  • jmc.xml

    r37 r41  
    66     <service>jmc.localhost</service> 
    77     <connectsleep>5</connectsleep> 
    8      <!-- check jabber/lang.py for available languages --> 
     8     <!-- check jmc/utils/lang.py for available languages --> 
    99     <language>fr</language> 
    1010     <vCard> 
  • src/jmc/jabber/component.py

    r39 r41  
    3333import traceback 
    3434 
     35import jmc.email.mailconnection as mailconnection 
    3536from jmc.email.mailconnection import * 
    3637from jmc.jabber.x import *