I will check this. Anyway, the warning is not a problem. It is just trying
to import some pluralization libraries and does not find them in path. They
are not used by the DAL anyway.
On Thursday, 20 December 2012 02:52:17 UTC-6, Kostas M wrote:
>
> The same warning appears:
>
> In [1]: from gluo
The same warning appears:
In [1]: from gluon.dal import DAL,Field
WARNING:root:Unable to import plural rules: No module named plural_rules
>>
>>
>>
--
The warning comes from the internationalization. By importing from gluon it
expects that you are in the web2py folder and it will try preload
pluralization rules.
Try instead:
from gluon.dal import DAL, Field
On Wednesday, 19 December 2012 09:27:51 UTC-6, Kostas M wrote:
>
> Thank you both, fo
Thank you both, for the heads up!
As Niphlod have said at:
https://groups.google.com/forum/#!searchin/web2py/auto_import=True/web2py/bwCYiQcE59I/D1IkGFC55eEJ
* Remember that DAL does NOT introspect databases.*
Any hints on the Warning?
--
In other words (concerning missing tables), you must have
define_table() calls or auto_import=True in your DAL instantiation.
Otherwise, your db object won't recognize your tables.
On Wed, Dec 19, 2012 at 12:43 PM, Niphlod wrote:
> if you don't define table and you don't have auto_import=True,
if you don't define table and you don't have auto_import=True, why are you
expecting db.tables to show something ?
Il giorno mercoledì 19 dicembre 2012 15:11:51 UTC+1, Kostas M ha scritto:
>
> Trying to use DAL in my functional_tests.py (sitting in the application
> directory), I get the followi
6 matches
Mail list logo