Changeset 105
- Timestamp:
- 05/29/08 10:19:01 (4 months ago)
- Files:
-
- trunk/README.txt (modified) (4 diffs)
- trunk/microfacts.egg-info/paste_deploy_config.ini_tmpl (modified) (1 diff)
- trunk/microfacts.ini (added)
- trunk/microfacts/lib/cli.py (modified) (3 diffs)
- trunk/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/README.txt
r55 r105 2 2 ===== 3 3 4 A web application for threading together 'factlets' into narratives organized by theme, time and space. 4 A web application for threading together 'factlets' into narratives organized 5 by theme, time and space. 5 6 6 7 Copyright and License … … 40 41 paster make-config microfacts config.ini 41 42 42 Tweak the config file as appropriate and then setup the application: 43 Tweak the config file as appropriate and then setup the application:: 43 44 44 45 paster setup-app config.ini 45 46 46 Then you are ready to go.47 Then you are ready to start the web application:: 47 48 48 49 paster server config.ini … … 53 54 54 55 You should copy the example environment files and customize them to your 55 liking: 56 liking:: 56 57 57 58 cp test.ini.example test.ini … … 59 60 vim development.ini 60 61 61 You can then run a server like this: 62 You can then run a server like this:: 62 63 63 64 paster server development.ini --reload & 64 65 65 The n, the tests can be run with:66 The tests can be run with:: 66 67 67 68 nosetests microfacts/tests trunk/microfacts.egg-info/paste_deploy_config.ini_tmpl
r2 r105 29 29 #beaker.session.data_dir = %(here)s/data/sessions 30 30 31 # Database uri for sqlalchemy. 32 sqlalchemy.url = sqlite:///%(here)s/microfacts.db 33 31 34 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* 32 35 # Debug mode will enable the interactive debugging tool, allowing ANYONE to trunk/microfacts/lib/cli.py
r94 r105 4 4 5 5 class MicrofactsCommand(paste.script.command.Command): 6 '''7 '''8 9 summary = __doc__.split('\n')[0]10 usage = __doc__11 6 parser = paste.script.command.Command.standard_parser(verbose=True) 12 7 parser.add_option('-c', '--config', dest='config', … … 26 21 27 22 class CleanDb(MicrofactsCommand): 28 '''Clean the DB. Should provide path to config file as only arg.23 '''Clean the DB. 29 24 ''' 25 summary = __doc__.split('\n')[0] 26 usage = __doc__ 30 27 31 28 def command(self): … … 41 38 42 39 class 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__ 44 43 45 44 max_args = None trunk/setup.py
r104 r105 42 42 [paste.paster_command] 43 43 testdata = microfacts.tests:TestData 44 clean _db = microfacts.lib.cli:CleanDb45 ww2 data = microfacts.lib.cli:WW2Data44 clean-db = microfacts.lib.cli:CleanDb 45 ww2-data = microfacts.lib.cli:WW2Data 46 46 """, 47 47 )
