Changeset 105

Show
Ignore:
Timestamp:
05/29/08 10:19:01 (4 months ago)
Author:
rgrp
Message:

[misc][s]: various bits of tidying up (mainly of docs) resulting from first deployment on eu0.okfn.org.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README.txt

    r55 r105  
    22===== 
    33 
    4 A web application for threading together 'factlets' into narratives organized by theme, time and space. 
     4A web application for threading together 'factlets' into narratives organized 
     5by theme, time and space. 
    56 
    67Copyright and License 
     
    4041    paster make-config microfacts config.ini 
    4142 
    42 Tweak the config file as appropriate and then setup the application: 
     43Tweak the config file as appropriate and then setup the application:: 
    4344 
    4445    paster setup-app config.ini 
    4546 
    46 Then you are ready to go. 
     47Then you are ready to start the web application:: 
    4748 
    4849    paster server config.ini 
     
    5354 
    5455You should copy the example environment files and customize them to your  
    55 liking: 
     56liking:: 
    5657 
    5758    cp test.ini.example test.ini 
     
    5960    vim development.ini 
    6061 
    61 You can then run a server like this: 
     62You can then run a server like this:: 
    6263 
    6364    paster server development.ini --reload & 
    6465 
    65 Then, the tests can be run with
     66The tests can be run with:
    6667 
    6768    nosetests microfacts/tests 
  • trunk/microfacts.egg-info/paste_deploy_config.ini_tmpl

    r2 r105  
    2929#beaker.session.data_dir = %(here)s/data/sessions 
    3030 
     31# Database uri for sqlalchemy. 
     32sqlalchemy.url = sqlite:///%(here)s/microfacts.db 
     33 
    3134# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* 
    3235# Debug mode will enable the interactive debugging tool, allowing ANYONE to 
  • trunk/microfacts/lib/cli.py

    r94 r105  
    44 
    55class MicrofactsCommand(paste.script.command.Command): 
    6     ''' 
    7     ''' 
    8  
    9     summary = __doc__.split('\n')[0] 
    10     usage = __doc__ 
    116    parser = paste.script.command.Command.standard_parser(verbose=True) 
    127    parser.add_option('-c', '--config', dest='config', 
     
    2621 
    2722class CleanDb(MicrofactsCommand): 
    28     '''Clean the DB. Should provide path to config file as only arg. 
     23    '''Clean the DB. 
    2924    ''' 
     25    summary = __doc__.split('\n')[0] 
     26    usage = __doc__ 
    3027 
    3128    def command(self): 
     
    4138 
    4239class WW2Data(MicrofactsCommand): 
    43     '''Put in WW2 Data extracted from DBPedia.''' 
     40    '''Load WW2 Data extracted from DBPedia.''' 
     41    summary = __doc__.split('\n')[0] 
     42    usage = __doc__ 
    4443 
    4544    max_args = None 
  • trunk/setup.py

    r104 r105  
    4242    [paste.paster_command] 
    4343    testdata = microfacts.tests:TestData 
    44     clean_db = microfacts.lib.cli:CleanDb 
    45     ww2data = microfacts.lib.cli:WW2Data 
     44    clean-db = microfacts.lib.cli:CleanDb 
     45    ww2-data = microfacts.lib.cli:WW2Data 
    4646    """, 
    4747)