[web2py] Re: Py4web - DB legacy db

2019-10-02 Thread Massimo Di Pierro
It should work the same as in web2py. It is the same database abstraction 
layer. Do you have the model copied (or imported) your py4web app? Can you 
provide more info?

On Wednesday, 2 October 2019 11:11:01 UTC-7, Ari Lion BR Sp wrote:
>
> Hi Massimo,
>
> Great evolution this new framework.
> Wanted to load legacy DataBase - and Dont Know how to load an old table 
> as  we use to do in web2py.
>
> I have tryed to put migrate=True , fake_migrate=True 
> But no success.
>
>
>
> Thank you so much
> Best regards
> Ari - Brazil
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2a7084d1-cbeb-44db-b511-1dcac2e9aecb%40googlegroups.com.


[web2py] RuntimeError: No driver of supported ones ('pymongo',) is available

2019-10-02 Thread gb
import pymongo

works fine from the python shell.

However, I'm getting this error


 Failure to connect, tried 5 times: 
> Traceback (most recent call last): File 
> "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 457, in 
> __init__ self._adapter = adapter(**kwargs) File 
> "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 
> 39, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) 
> File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 50, in __init__ self.find_driver() File 
> "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/mongo.py", line 
> 29, in find_driver super(Mongo, self).find_driver() File 
> "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
> 101, in find_driver str(self.drivers)) RuntimeError: No driver of supported 
> ones ('pymongo',) is available
>

I've installed pymongo via pip locally, in site-packages, in addition to 
globally, any other ideas why python sees the package, but web2py (pydal) 
can't?
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/402eeef9-dc03-41df-8e8d-cd6e8b65c3bc%40googlegroups.com.


[web2py] Re: py4web T examples

2019-10-02 Thread greenpoise
In the Grid Example if I was to type anything on the search bar but clicked 
Create, it allows you to create the object but goes on a loop and does not 
finalize




On Tuesday, October 1, 2019 at 10:35:07 PM UTC-7, Massimo Di Pierro wrote:
>
> Posted a couple of pluralization and internationalization examples:
> https://github.com/web2py/py4web/blob/master/apps/examples/__init__.py#L45
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/404c3669-fca6-4be5-aad6-c9e2e5819c14%40googlegroups.com.


[web2py] Py4web - DB legacy db

2019-10-02 Thread Ari Lion BR Sp
Hi Massimo,

Great evolution this new framework.
Wanted to load legacy DataBase - and Dont Know how to load an old table as  
we use to do in web2py.

I have tryed to put migrate=True , fake_migrate=True 
But no success.



Thank you so much
Best regards
Ari - Brazil



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3f87f694-ae12-4624-b320-b184d6ab215e%40googlegroups.com.


[web2py] Dropzone app thumbnail error in web2py appliances

2019-10-02 Thread dirman
 'utf8' codec can't decode byte 0xb7 
in position 0: invalid start byte

Getting the above error as thumbnails are not showing. what could be the 
issue?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/bab46106-7a92-4d6e-8170-c03db4d0b9d6%40googlegroups.com.


[web2py] Re: Prevent multiple logins from the same user using the same login credentials

2019-10-02 Thread Dave S


On Monday, September 30, 2019 at 2:12:13 AM UTC-7, Accessorize Withwah 
wrote:
>
> Is there a way to prevent a user from logging into my application multiple 
> times maybe using different devices or from different locations?
> I came across some information somewhere that one could use* 
> check_client=True*, I'm just not sure how it works & if it can help me 
> achieve my task.
>
> Thank you
>
> WaH
>


I think that the last time this came up, it was recommended to set a flag 
in an auth extra field., and to check that flag.  It sounds like you only 
need to check on login, unless you want to prevent multiple tabs from one 
browser, which would require the post to include more information.

The  check_client setting doesn't ring any bells. and there doesn't seem to 
be anything in the book about it.  However, search the archives of the 
group.  (I would be skeptical of any post from before 2016, though, because 
of the evolution of web2py).

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1598abbf-25a7-4ea8-933f-85f827c50093%40googlegroups.com.