--- a/doc/install.rst Fri Aug 10 13:40:46 2012 +0200
+++ b/doc/install.rst Fri Aug 10 13:58:28 2012 +0200
@@ -5,7 +5,7 @@
Afterwards install the module via ``setup.py install`` und ran ``iro-install``. That will create a sample configuration file named ``iro.conf``.
Update the configuration file and run ``iro-install install`` afterwards. That will create the Database and Offers for you.
After that you have to :ref:`adding_user`.
-Now you are ready to start Iro ``twisted -ny extras/iro.tac``.
+Now you are ready to start Iro ``twisted iro``.
.. _adding_user:
@@ -24,12 +24,12 @@
or use python/ipython::
>>> import iro.model.schema
- >>> from iro.model import schema
+ >>> from iro.model.schema import *
>>> from sqlalchemy import create_engine
>>> from iro.model.utils import WithSession
>>> engine = create_engine(DBURL)
>>> with WithSession(engine) as session:
- ... u = schema.User(name="test",apikey="a1a2c3")
+ ... u = User(name="test",apikey="a1a2c3")
... session.add(u)
... o = session.query(Offer).filter_by(name=OFFERNAME).first()
... u.rights.append(Userright(o, default=None))