Changeset 5647

Show
Ignore:
Timestamp:
11/01/08 02:14:27 (2 months ago)
Author:
mramm
Message:

More wiki20 fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/2.0/docs/main/Wiki20/wiki20.rst

    r5646 r5647  
    311311The easiest way to do this is just to run a Python script. Create a file called 
    312312**initializeDB.py** in the ``Wiki-20`` directory containing the following: 
    313  
    314 .. code:: Wiki_root/trunk/wiki20/initializeDB.py 
     313  
     314 
     315.. code:: wiki_root/trunk/initializeDB.py 
    315316 
    316317Now run the program from the ``Wiki-20`` directory: 
     
    318319.. code-block:: bash 
    319320 
    320         $ python initializeDB.py 
     321    $ python initializeDB.py 
     322 
    321323 
    322324You'll see output, but you should not see error messages. At this point 
  • docs/2.0/docs/project_code/wiki_root/trunk/initializeDB.py

    r5347 r5647  
    11from wiki20.model import DBSession, Page, metadata 
    22from sqlalchemy import create_engine 
     3import transaction 
    34 
    45# Prepare the database connection 
     
    1516# Save the page object to the in memory DBSession 
    1617DBSession.save(page) 
     18transaction.commit() 
    1719