doc/book/en/annexes/faq.rst
changeset 2476 1294a6bdf3bf
parent 2317 d559ea3102db
child 2533 07a744f64c2e
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
   139 
   139 
   140 What is `Error while publishing rest text ...` ?
   140 What is `Error while publishing rest text ...` ?
   141 ------------------------------------------------
   141 ------------------------------------------------
   142 
   142 
   143   While modifying the description of an entity, you get an error message in
   143   While modifying the description of an entity, you get an error message in
   144   the application `Error while publishing ...` for Rest text and plain text.
   144   the instance `Error while publishing ...` for Rest text and plain text.
   145   The server returns a traceback like as follows ::
   145   The server returns a traceback like as follows ::
   146 
   146 
   147       2008-10-06 15:05:08 - (cubicweb.rest) ERROR: error while publishing ReST text
   147       2008-10-06 15:05:08 - (cubicweb.rest) ERROR: error while publishing ReST text
   148       Traceback (most recent call last):
   148       Traceback (most recent call last):
   149       File "/home/user/src/blogdemo/cubicweb/common/rest.py", line 217, in rest_publish
   149       File "/home/user/src/blogdemo/cubicweb/common/rest.py", line 217, in rest_publish
   223     While creating a new instance, you can decide to allow access
   223     While creating a new instance, you can decide to allow access
   224     to anonymous user, which will automatically execute what is
   224     to anonymous user, which will automatically execute what is
   225     decribed above.
   225     decribed above.
   226 
   226 
   227 
   227 
   228 How to change the application logo ?
   228 How to change the instance logo ?
   229 ------------------------------------
   229 ------------------------------------
   230 
   230 
   231   There are two ways of changing the logo.
   231   There are two ways of changing the logo.
   232 
   232 
   233   1. The easiest way to use a different logo is to replace the existing
   233   1. The easiest way to use a different logo is to replace the existing
   234      ``logo.png`` in ``myapp/data`` by your prefered icon and refresh.
   234      ``logo.png`` in ``myapp/data`` by your prefered icon and refresh.
   235      By default all application will look for a ``logo.png`` to be
   235      By default all instance will look for a ``logo.png`` to be
   236      rendered in the logo section.
   236      rendered in the logo section.
   237 
   237 
   238      .. image:: ../images/lax-book.06-main-template-logo.en.png
   238      .. image:: ../images/lax-book.06-main-template-logo.en.png
   239 
   239 
   240   2. In your cube directory, you can specify which file to use for the logo.
   240   2. In your cube directory, you can specify which file to use for the logo.
   268     user-default-group=users
   268     user-default-group=users
   269     # map from ldap user attributes to cubicweb attributes
   269     # map from ldap user attributes to cubicweb attributes
   270     user-attrs-map=gecos:email,uid:login
   270     user-attrs-map=gecos:email,uid:login
   271 
   271 
   272   Any change applied to configuration file requires to restart your
   272   Any change applied to configuration file requires to restart your
   273   application.
   273   instance.
   274 
   274 
   275 I get NoSelectableObject exceptions, how do I debug selectors ?
   275 I get NoSelectableObject exceptions, how do I debug selectors ?
   276 ---------------------------------------------------------------
   276 ---------------------------------------------------------------
   277 
   277 
   278   You just need to put the appropriate context manager around view/component
   278   You just need to put the appropriate context manager around view/component
   314 ----------------------------------------------------------------
   314 ----------------------------------------------------------------
   315 
   315 
   316   If you have PostgreSQL set up to accept kerberos authentication, you can set
   316   If you have PostgreSQL set up to accept kerberos authentication, you can set
   317   the db-host, db-name and db-user parameters in the `sources` configuration
   317   the db-host, db-name and db-user parameters in the `sources` configuration
   318   file while leaving the password blank. It should be enough for your
   318   file while leaving the password blank. It should be enough for your
   319   application to connect to postgresql with a kerberos ticket.
   319   instance to connect to postgresql with a kerberos ticket.
   320 
   320 
   321 
   321 
   322 How to load data from a script ?
   322 How to load data from a script ?
   323 --------------------------------
   323 --------------------------------
   324 
   324 
   325   The following script aims at loading data within a script assuming pyro-nsd is
   325   The following script aims at loading data within a script assuming pyro-nsd is
   326   running and your application is configured with ``pyro-server=yes``, otherwise
   326   running and your instance is configured with ``pyro-server=yes``, otherwise
   327   you would not be able to use dbapi. ::
   327   you would not be able to use dbapi. ::
   328 
   328 
   329     from cubicweb import dbapi
   329     from cubicweb import dbapi
   330 
   330 
   331     cnx = dbapi.connection(database='instance-id', user='admin', password='admin')
   331     cnx = dbapi.connection(database='instance-id', user='admin', password='admin')
   335     cnx.commit()
   335     cnx.commit()
   336 
   336 
   337 What is the CubicWeb datatype corresponding to GAE datastore's UserProperty ?
   337 What is the CubicWeb datatype corresponding to GAE datastore's UserProperty ?
   338 -----------------------------------------------------------------------------
   338 -----------------------------------------------------------------------------
   339 
   339 
   340   If you take a look at your application schema and
   340   If you take a look at your instance schema and
   341   click on "display detailed view of metadata" you will see that there
   341   click on "display detailed view of metadata" you will see that there
   342   is a Euser entity in there. That's the one that is modeling users. The
   342   is a Euser entity in there. That's the one that is modeling users. The
   343   thing that corresponds to a UserProperty is a relationship between
   343   thing that corresponds to a UserProperty is a relationship between
   344   your entity and the Euser entity. As in ::
   344   your entity and the Euser entity. As in ::
   345 
   345