Re: [web2py] Re: Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
No, I have just found the issue, I am using record versioning in tables, 
and the child record was removed, this does not trigered the cascade, 
so, the parent record was not removed and the recursive select was 
failing when tries to access to a "deleted" record.


Greetings.

El 22/5/19 a las 11:51 a.m., Leonel Câmara escribió:

Are you using common filters?
--
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/d2596552-b707-4b80-8688-2ceedabbea51%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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/df89be08-f45d-8115-518d-a7cc08f00705%40cfg.jovenclub.cu.
For more options, visit https://groups.google.com/d/optout.


[web2py] Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
Hi guys, I have some weird issue here, I have a "Using a recursive 
select but encountered a broken reference" error in a field wish seems 
to have a valid reference. This is happening with a very specific record 
in a MySQL database.


Any Idea?

Greetings.

--
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/49a1a572-b2fd-1cb2-666a-3b7b77bbe707%40cfg.jovenclub.cu.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] bye bye T, welcome pluralize

2019-05-02 Thread Carlos Cesar Caballero Díaz
yes, I will think how to implement that, maybe as a bottle plugin or 
something, because right now move translation from one web2py 
application to another is one of that things that I think can improve in 
my workflow.


Greethings.

El 2/5/19 a las 3:02 a.m., Massimo Di Pierro escribió:
I would prefer not to go in that direction. The previous T suffered 
from scope creep and too many options. This would make the interface 
for editing the translations more complex. It would also break one of 
the use cases exposed in web3py/applications/_scaffold/controller.py 
which exposes the translations as json service.


If you want to divide translations in subfolders, maybe you can create 
simply a tool that aggregates mutliple files into one for each 
language and, for subfolders, it prepends the subfolder name to the 
original string. Example:


default/it.py = {'pizza':{0:'no pizza',1:'una pizza',2:'due pizze'}}
margherita/it.py {'pizza':{0:'no pizza',1:'una pizza 
margherita',2:'due pizze margherite'}}


it.py (merged) = {'pizza':{0:'no pizza',1:'una pizza',2:'due pizze'}, 
'margherita::pizza':{0:'no pizza',1:'una pizza margherita',2:'due 
pizze margherite'}}


T("pizza") % dict(n=2) -> "due pizze"
T("margherita::pizza") % dict(n=2) -> "due pizze margherite"

In this was you can achieve the same without changing the current code.

On Monday, 29 April 2019 06:59:24 UTC-7, Carlos Cesar Caballero wrote:

It looks good!! I can work to support categories if you think it
worth it. Allow something like T("string", "category") or
T("string", cat="category"). A category would map to an specific
folder of json internationalization files, if there is no category
specified, it will map to a default category. Something like this
would make the translations reutilization easier.

Greetings.

El 26/4/19 a las 1:53 a.m., Massimo Di Pierro escribió:

web3py now uses this:

https://pypi.org/project/pluralize/

https://github.com/web2py/pluralize


thoughts? comments?

-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] bye bye T, welcome pluralize

2019-04-29 Thread Carlos Cesar Caballero Díaz
It looks good!! I can work to support categories if you think it worth 
it. Allow something like T("string", "category") or T("string", 
cat="category"). A category would map to an specific folder of json 
internationalization files, if there is no category specified, it will 
map to a default category. Something like this would make the 
translations reutilization easier.


Greetings.

El 26/4/19 a las 1:53 a.m., Massimo Di Pierro escribió:

web3py now uses this:

https://pypi.org/project/pluralize/
https://github.com/web2py/pluralize

thoughts? comments?

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Well, that's a really fair concern, I was just mentioning, because I 
like ORMs and other popular projects like SQLAlchemy includes a DAL 
(they call it SQL abstraction toolkit) and an ORM on top of it, and if 
you look at popular web development full stack frameworks, almost all of 
them are relaying their models to ORMs.


Greetings

El 19/4/19 a las 4:22 p.m., Anthony escribió:
On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar 
Caballero wrote:


Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm
. I
think including something like this with pydal will be a really good
improvement.


My only concern is whether the benefits are worth having to adopt all 
that new code (and update it when changes are made to pyDAL). Maybe it 
should remain an external package rather than being folded into pyDAL.


Anthony
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the 
code organization and readability.


Greetings.

El 19/4/19 a las 4:17 p.m., Anthony escribió:
In the case of the weppy ORM in particular, though, I think it really 
is just alternative syntax for everything that can already be done via 
pyDAL, typically with the same number of lines of code (note, the 
above examples would have the same number of lines if you added the 
@rowattr('get_something_plus_age') decorator required by weppy to the 
instance method).


Anthony


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
As almost everything in our world ORMs has advantages and disadvantages. 
The main criticism about ORMs is that they are leaky abstractions, that 
means they leaks details that it is supposed to abstract away, because 
there are times when you just need to use, for example, SQL directly or 
work with raw rows when making complex queries or improving performance 
because that is one of the ORMs disadvantages, they include an extra 
logical layer that, depending on the implementation can affect 
performance more or less.


But there are lot of people out there using ORMs and this is because 
they have advantages, compared with PyDAL, mostly when you are using big 
models, for example, compare this PyDAL model:


    def _get_somethig_plus_age(row, extra):
    return row.person.age + extra

    db.define_table('person',
    Field('name')
        Field('age', 'integer')
    Field.Method('get_somethig_plus_age', _get_somethig_plus_age)
    )

against this ORM-style model:

    class Person(Model):
    name = Field()
        age = Field('integer')

        def get_somethig_plus_age(self, extra):
            return self.age + extra

In an ORM, a model class represents a table, and when you query the DB, 
you get the class instance objects representing rows. Using this 
approach you can directly benefit from the advantages of the OOP and the 
code readability and organization improves a lot, mostly when models 
starts grow big.


Greetings.


El 19/4/19 a las 2:44 a.m., Dave S escribió:
On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar 
Caballero wrote:


Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm
. I
think including something like this with pydal will be a really good
improvement.

Greetings.


As someone who had some SQL training (but not proficiency) before  
using Web2Py,
and who has rarely had an issue with using the DAL (but then, I don't 
have complicated projects, either),

I could use some info on what makes an ORM great.

I know that Massimo has said in the past that it was a deliberate 
choice to do the DAL instead of an ORM

(is the DAL a DAO?),
and I see the contributors to Wikipedia have listed some concerns
along with the advantages
(client code gets to stick with working with objects ++
 high level of abstraction obscures what is happening --
 heavy reliance on ORM cited as major factor in poorly designed DBs --)

The third approach appears to be OODBMS where the store actually is 
built around objects via ODMs

rather than translating tables.  This gets into NoSQL territory, it seems.

So, educate me!

/dps

El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió:
> Can you make it a module on pypi? Or should we include it in pydal?
>

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-18 Thread Carlos Cesar Caballero Díaz
Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I 
think including something like this with pydal will be a really good 
improvement.


Greetings.

El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió:

Can you make it a module on pypi? Or should we include it in pydal?



--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-12 Thread Carlos Cesar Caballero Díaz
I reaaly would like to use an ORM with web3py, in my opinion ORMs 
are better for organization when apps grow big and I like a lot the fat 
models and thin controllers approach, and it is some messy with pydal 
right now 
(https://github.com/Medisur/journalmanagement/blob/master/models/citation.py). 
I have isoleted the weppy ORM some days ago (as hobby), it's not fully 
tested, and will need some refactoring, but if you are interested I can 
share it.


Greetings.

El 12/4/19 a las 11:32 a.m., Massimo Di Pierro escribió:
May steel some ideas from weppy but I do not want an ORM. That can be 
optional if you like we can isolate it in a module.


On Friday, 12 April 2019 04:40:51 UTC-7, Kevin Keller wrote:

Any thoughts on merging / collaborating with weppy?

http://weppy.org/

Uses web2py dal and yatl..
and has some nifty things to make queries and modelling easier..



On Fri, Apr 12, 2019 at 6:03 AM Massimo Di Pierro
mailto:massimo.dipie...@gmail.com>>
wrote:

There is a lot to do but at this point it is moving fast and a
one way street.

On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:

I git installed web3py and quite enjoy it. I see its
updated regular too.

For those who don't know and maybe this is common sense ,
not sure.

once you *git clone https://github.com/web2py/web3py.git
 *do a *git pull*
*
*
2. reinstall requirements.txt (*pip3 install -r
requirements.txt*)
 - Changes:  module "reloader" was added

3. Launch web3py (should work just fine now)
* python3 web3py.py applications/todo/
*

4. open browser and type: * localhost:8000 or
127.0.0.1:8000 /todo/index*

-- 
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
.
For more options, visit https://groups.google.com/d/optout
.

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz

That's a typo :)

El 6/4/19 a las 8:24 p.m., Leonel Câmara escribió:

Possibly because you have require instead of requires?



--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz

Hi, I have this table definition:

db.define_table('organization',
    Field('name', 'string', require=[IS_ALPHANUMERIC(), IS_NOT_EMPTY(), 
IS_NOT_IN_DB(db, 'organization.name')], label=T('Name')),

    Field('description', 'text', label=T('Description')),
    Field('parent', 'reference organization', label=T('Parent 
Organization')),

    format='%(name)s' )

As you can see, an organization can include a parent organization.

My issue is that the generated create/edit form is not including the 
select for choosing the parent organization, any Idea about this?


Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web3py again....

2019-03-30 Thread Carlos Cesar Caballero Díaz
So far looks good, but I would prefer that the application include (or 
import) the framework instead of the framework include the application. 
With the first one, pip based deployments and CI/CD will be a lot easier.


I have being playing with bottle a lot recently, so if there is some 
web3py features list or guidelines, maybe I can give a hand.


Greetings.


El 28/3/19 a las 5:16 a.m., Massimo Di Pierro escribió:

I know this comes up once in a while but ...

    https://github.com/web2py/web3py

what do you think?

It is very preliminary but I will have an admin soon.
Backporting SQLFORM, grid and Auth, should not be that complicated, 
although I think we can do better.


Massimo

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-02-26 Thread Carlos Cesar Caballero Díaz
We still are not working in models, we want to treat some rough edges 
first with controllers overriding and views. But it should be included 
as an app component (just like cache and session).


Greetings.

El 26/2/19 a las 12:41 a.m., Massimo Di Pierro escribió:

nice work. Have you used it with pydal?

On Monday, 25 February 2019 10:04:43 UTC-8, Carlos Cesar Caballero wrote:

Hi Massimo,sorry about the delay in responding, I was really busy
last week. There is a small example of what we get right now (now
using yatl) https://github.com/daxslab/mojito


BTW the new helpers and refactored code looks much better.

Greetings.

El 18/2/19 a las 1:49 p.m., Massimo Di Pierro escribió:

I did some more refactoring. :-)
not sanitizer and helpers (similar to web2py ones) are part of yatl

can you provide an example of how to use
https://github.com/daxslab/ron


On Sunday, 17 February 2019 19:30:59 UTC-8, Carlos Cesar
Caballero wrote:

Awesome!! I will test it ASAP. A colleague and I have been
playing with your idea of a bottle-based framework and it has
became a quite good exercise. So far right now we got this
https://github.com/daxslab/ron

Greetings.

El 17/2/19 a las 9:52 p.m., Massimo Di Pierro escribió:

Thanks for all your help with templates.

So far I have posted this:
https://pypi.org/project/yatl/
and this:
https://github.com/web2py/yatl

I could use some more help with testing. if we are good we
can switch web2py to use this.
-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-02-25 Thread Carlos Cesar Caballero Díaz
Hi Massimo,sorry about the delay in responding, I was really busy last 
week. There is a small example of what we get right now (now using yatl) 
https://github.com/daxslab/mojito


BTW the new helpers and refactored code looks much better.

Greetings.

El 18/2/19 a las 1:49 p.m., Massimo Di Pierro escribió:

I did some more refactoring. :-)
not sanitizer and helpers (similar to web2py ones) are part of yatl

can you provide an example of how to use https://github.com/daxslab/ron


On Sunday, 17 February 2019 19:30:59 UTC-8, Carlos Cesar Caballero wrote:

Awesome!! I will test it ASAP. A colleague and I have been playing
with your idea of a bottle-based framework and it has became a
quite good exercise. So far right now we got this
https://github.com/daxslab/ron

Greetings.

El 17/2/19 a las 9:52 p.m., Massimo Di Pierro escribió:

Thanks for all your help with templates.

So far I have posted this:
https://pypi.org/project/yatl/
and this:
https://github.com/web2py/yatl

I could use some more help with testing. if we are good we can
switch web2py to use this.
-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-02-17 Thread Carlos Cesar Caballero Díaz
Awesome!! I will test it ASAP. A colleague and I have been playing with 
your idea of a bottle-based framework and it has became a quite good 
exercise. So far right now we got this https://github.com/daxslab/ron


Greetings.

El 17/2/19 a las 9:52 p.m., Massimo Di Pierro escribió:

Thanks for all your help with templates.

So far I have posted this:
https://pypi.org/project/yatl/
and this:
https://github.com/web2py/yatl

I could use some more help with testing. if we are good we can switch 
web2py to use this.

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Web2py Website seems like abandoned...

2019-01-30 Thread Carlos Cesar Caballero Díaz
Hi, a long time ago I built this material inspired proposal 
(https://github.com/cccaballero/web2py-examples-proposal), I am not sure 
if it's good right now, but indeed I think that the web2py site needs a 
new and modern look.


Greetings.

El 30/1/19 a las 6:52 a.m., António Ramos escribió:

hello all

Its like it is for a long time
It deserves a new layout.
Whos is in for a contest ?

Regards
António
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
Nothing, but I was looking for a way that the user could directly call 
render and pass his own arguments and render the template with some 
objects passed to the environment by default. But don't worry, now I 
have included the possibility to use more than one template engine, so I 
will make some kind of wrapper function and include the defaults.


Greetings.

El 28/1/19 a las 11:14 a.m., Anthony escribió:
On Monday, January 28, 2019 at 8:45:53 AM UTC-5, Carlos Cesar 
Caballero wrote:


Hi Antony, Thanks. I am experimenting with the Massimo idea of a
bottle based framework using web2py components, And I was looking
if there was an equivalent of the jinja2 "Environment.globals".
The code is in https://github.com/daxslab/ron


Looks like you're using the render() function, so what's wrong with 
using the "context" argument to add globals to the template execution 
environment?


Anthony
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Dont allow delete specific records in grid

2019-01-28 Thread Carlos Cesar Caballero Díaz

Thanks a lot Antony, that's exactly what I need.

Greetings.

El 28/1/19 a las 8:22 a.m., Anthony escribió:

You might find this helpful: https://stackoverflow.com/a/54200430/440323

Note, using the deletable argument in this case could be a bit 
inefficient because it will need to do a database select for each row 
in the grid to determine if there are any children. I suppose you 
could instead do a single join query before creating the grid to fetch 
the same set of records along with a count of any children and then 
just do a lookup in that local Rows object from the deletable function.


Anthony

On Sunday, January 27, 2019 at 12:55:04 PM UTC-5, Carlos Cesar 
Caballero wrote:


Hi, is possible to don't allow deleting specific records in the grid?

Basically, I have a one to many relation "parent has childs", but
it is
in cascade mode and I can't change it, so, I need to forbid
deleting of
parent records who has childs.


Greetings.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
Hi Antony, Thanks. I am experimenting with the Massimo idea of a bottle 
based framework using web2py components, And I was looking if there was 
an equivalent of the jinja2 "Environment.globals". The code is in 
https://github.com/daxslab/ron


Greetings.



El 28/1/19 a las 8:16 a.m., Anthony escribió:
Can you show some code or describe in more detail what you are trying 
to do?


If you are using the render() function from gluon.template, note that 
it takes a context argument, which is a dictionary used to generate an 
execution environment. You can do:


|
ENV ={
'var1':'value 1',
'var2':'value 2'
}

output =render(filename='mytemplate.html',context=ENV)
|

In the template, you can then reference var1 and var2 (e.g., {{=var1}}).

If you want to create an environment similar to the web2py 
environment, have a look 
at https://github.com/web2py/web2py/blob/cef31f127796c638753297235f4e886f6a9e5410/gluon/compileapp.py#L387-L450 
to see how web2py sets up its environment.


Anthony

On Wednesday, January 23, 2019 at 8:09:34 AM UTC-5, Carlos Cesar 
Caballero wrote:


Hi guys, I am using the web2py templates in a side project and I
want to
include some variables in the environment by default, something
like how
helpers, request and response are included in the framework, but I
can't
find how this is done. Any idea?

Greetings.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Dont allow delete specific records in grid

2019-01-27 Thread Carlos Cesar Caballero Díaz

Hi, is possible to don't allow deleting specific records in the grid?

Basically, I have a one to many relation "parent has childs", but it is 
in cascade mode and I can't change it, so, I need to forbid deleting of 
parent records who has childs.



Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: standalone templates

2019-01-27 Thread Carlos Cesar Caballero Díaz

Thanks a lot Leonel, I'm looking at it.

Greetings.


El 27/1/19 a las 6:11 a.m., Leonel Câmara escribió:

Carlos look at:

https://github.com/web2py/web2py/blob/master/gluon/compileapp.py

Specifically the funtion *run_view_in*
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
Basically web2py injects to the template things like html helpers and 
response or request objects, I just want to find how this is done, for 
example, the jinja2 templates has the Environment.globals list for 
include objects in the template context, I am looking for a 
functionality like that in the web2py templates.


Greetings.

El 23/1/19 a las 9:36 a.m., sandeep patel escribió:

Thanks for clarification @Carloas,
You can extend the template module classes. According to your need 
then you can inject whatever object you want as a default.

Please correct me if I am in the wrong direction

 Thanks
SP

On Wed, Jan 23, 2019 at 7:42 PM Carlos Cesar Caballero Díaz 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:


Hi sandeep patel, thanks for your answer.

In my use case I am using the template module outside web2py as a
standalone package, and I need to inject some objects in the
template by default. I am not using the whole web2py framework.

Greetings.

El 23/1/19 a las 8:58 a.m., sandeep patel escribió:

@ Carlos
I think you can use the current app modules folder. This executes
all the .py files on the top label of every request
For more information here

<http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object>

Thanks
SP

On Wed, Jan 23, 2019 at 6:39 PM Carlos Cesar Caballero Díaz
mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Hi guys, I am using the web2py templates in a side project
and I want to
include some variables in the environment by default,
something like how
helpers, request and response are included in the framework,
but I can't
find how this is done. Any idea?

Greetings.


-- 
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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

-- 
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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
-- 
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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz

Hi sandeep patel, thanks for your answer.

In my use case I am using the template module outside web2py as a 
standalone package, and I need to inject some objects in the template by 
default. I am not using the whole web2py framework.


Greetings.

El 23/1/19 a las 8:58 a.m., sandeep patel escribió:

@ Carlos
I think you can use the current app modules folder. This executes all 
the .py files on the top label of every request
For more information here 
<http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object>


Thanks
SP

On Wed, Jan 23, 2019 at 6:39 PM Carlos Cesar Caballero Díaz 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:


Hi guys, I am using the web2py templates in a side project and I
want to
include some variables in the environment by default, something
like how
helpers, request and response are included in the framework, but I
can't
find how this is done. Any idea?

Greetings.


-- 
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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
Hi guys, I am using the web2py templates in a side project and I want to 
include some variables in the environment by default, something like how 
helpers, request and response are included in the framework, but I can't 
find how this is done. Any idea?


Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz

I know it's not too much originality, but perhaps web2py-template?

Or perhaps something like insole or markings.

Greetings.

El 6/1/19 a las 11:56 a.m., Massimo Di Pierro escribió:

Fantastic! Thank you.
Will include and deploy today or tomorrow.

How should we call this package?

Massimo

On Sunday, 6 January 2019 08:15:58 UTC-8, Carlos Cesar Caballero wrote:

I have created a pydal-like structure for templates, including an
initial setup.py and tests (there is also a fix for python 3 when
running standalone), you can take a look at

https://github.com/cccaballero/web2py/tree/modular_templates/gluon/packages/template



Greetings.

El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió:

Anybody wants to help
1) moving the scheduler and validator tests into pydal.
2) moving the template tests into gluon/packages/template/tests
3) create a gluon/packages/template/setup.py

Massimo
-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I have created a pydal-like structure for templates, including an 
initial setup.py and tests (there is also a fix for python 3 when 
running standalone), you can take a look at 
https://github.com/cccaballero/web2py/tree/modular_templates/gluon/packages/template


Greetings.

El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió:

Anybody wants to help
1) moving the scheduler and validator tests into pydal.
2) moving the template tests into gluon/packages/template/tests
3) create a gluon/packages/template/setup.py

Massimo
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
Hi Massimo, there is already a package called template in pypi, how 
should we name the new template module?


Greetings.

El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió:

Anybody wants to help
1) moving the scheduler and validator tests into pydal.
2) moving the template tests into gluon/packages/template/tests
3) create a gluon/packages/template/setup.py

Massimo
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread Carlos Cesar Caballero Díaz
Hi, most of the compatibility imports where moved from gluon to pydal 
compat module, so, if web2py does not find the 'Cookie' module, is 
because it either is not imported in gluon or pydal, so, I think that 
you are not using the modular branch of pydal. Start the steps again as 
@sitfan post in his last message.


Greetings.

El 3/1/19 a las 12:33 a.m., sandeep patel escribió:

@Carlos Cesar Caballero,
I have taken the same steps as you suggested but I am getting the 
same error.



Robodia@DESKTOP-E4IOU2U MINGW64
/d/TestingWeb3py/web2py/gluon/packages/dal (modular)
$ python ../../../setup.py
Traceback (most recent call last):
File "../../../setup.py", line 4, in 
  from gluon.fileutils import tar, untar, read_file, write_file
File "D:\TestingWeb3py\web2py\gluon\__init__.py", line 35, in 
  from .globals import current
File "D:\TestingWeb3py\web2py\gluon\globals.py", line 16, in 
  from gluon._compat import pickle, StringIO, copyreg, Cookie,
urlparse, PY2,iteritems, to_unicode, to_native, \
ImportError: cannot import name 'Cookie'

Thanks
SP




On Thu, Jan 3, 2019 at 8:54 AM 黄祥 > wrote:


yes, you r right, previous error before is due to the lack of step
i took
- git checkout must run twice in web2py folder and
web2py/gluon/packages/dal
- execute python (setup.py) must be in web2py folder can't be from
another path e.g. web2py/gluon/packages/dal then python
../../../setup.py will produce an error

|
git clone --recursive https://github.com/web2py/web2py.git

cd web2py
git checkout modular
cd gluon/packages/dal/
git checkout modular
cd ../../../
python setup.py
python web2py.py
|

thx n best regards,
stifan
-- 
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
.
For more options, visit https://groups.google.com/d/optout.

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz

Hi, this is working for me:

git clone --recursive https://github.com/web2py/web2py.git
git checkout modular
cd web2py/gluon/packages/dal/
git checkout modular
cd ../../../


Greetings.


El 2/1/19 a las 9:24 p.m., 黄祥 escribió:

thx carlos, here is the steps i took
|
git clone --recursive https://github.com/web2py/web2py.git
cd web2py/gluon/packages/dal/
git checkout modular
|

|
$ python -V
Python3.7.1
$ python ../../../setup.py
Traceback(most recent call last):
File"../../../setup.py",line 85,in
    start()
File"../../../setup.py",line 32,instart
    version=read_file("VERSION").split()[1],
File"/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py",line 
112,inread_file

    f =open_file(filename,mode)
File"/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py",line 
104,inopen_file

    f =open(filename,mode,encoding="utf8")
FileNotFoundError:[Errno2]Nosuch file ordirectory:'VERSION'
$ python ../../../web2py.py
$ open http://localhost:8000
|$ open http://localhost:8000/admin/default/site

on http://localhost:8000/admin/default/site
*Version*
2.17.2-stable+timestamp.2018.10.06.11.34.06
(Running on Rocket 1.2.6, Python 3.7.1)

*suggestion*
why the upgrade now to version 2.17.2 is active, just a suggestion 
think the button for upgrade now should be disable if the version is 
same or same like behaviour in previous version :

the button for upgrade is shown (Check for upgrades)
see below for test in python 2.7

|
$ python -V
Python2.7.15::Anaconda,Inc.
$ python ../../../setup.py
/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/site-packages/psycopg2/__init__.py:144:UserWarning:Thepsycopg2 
wheel packagewill be renamed fromrelease 2.8;inorder to keep 
installing frombinary please use"pip install 
psycopg2-binary"instead.Fordetails 
see:.

""")
Traceback (most recent call last):
  File "../../../setup.py", line 85, in 
    start()
  File "../../../setup.py", line 32, in start
    version=read_file("VERSION").split()[1],
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 
112, in read_file

    f = open_file(filename, mode)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 
102, in open_file

    f = open(filename, mode)
IOError: [Errno 2] No such file or directory: 'VERSION'
$ python ../../../web2py.py
$ open http://localhost:8000/admin/default/site
$ open http://localhost:8000
Traceback (most recent call last):
  File "/Users/sugizo/Downloads/learn/web2py/gluon/restricted.py", 
line 219, in restricted

    exec(ccode, environment)
  File 
"/Users/sugizo/Downloads/learn/web2py/applications/welcome/models/db.py", 
line 95, in 

    auth.define_tables(username=False, signature=False)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/tools.py", line 
2091, in define_tables
    super(Auth, self).define_tables(username, signature, migrate, 
fake_migrate)._table_signature_list
  File "/Users/sugizo/Downloads/learn/web2py/gluon/authapi.py", line 
350, in define_tables

    format='%(first_name)s %(last_name)s (%(id)s)'))
  File 
"/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/base.py", 
line 590, in define_table

    table = self.lazy_define_table(tablename, *fields, **kwargs)
  File 
"/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/base.py", 
line 624, in lazy_define_table

    polymodel=polymodel)
  File 
"/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 798, in create_table

    return self.migrator.create_table(*args, **kwargs)
  File 
"/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/migrator.py", 
line 296, in create_table

    sql_fields_old = pickle.load(tfile)
  File 
"/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 1384, in load

    return Unpickler(file).load()
  File 
"/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 864, in load

    dispatch[key](self)
  File 
"/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 892, in load_proto

    raise ValueError, "unsupported pickle protocol:%d" % proto
ValueError: unsupported pickle protocol: 3
|

using python 2.7 can run admin but not for welcome app
*Version*
2.17.2-stable+timestamp.2018.10.06.11.34.06
(Running on Rocket 1.2.6, Python 2.7.15)
the button for upgrade is shown (Check for upgrades)

best regards,
stifan
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
Resources:
- http://web2py.com
- http://web2py.com/book 

Re: [web2py] Happy New Year

2019-01-02 Thread Carlos Cesar Caballero Díaz

Happy new year!!

I have answered this in other thread because for some reason I have 
missed this one, and many of my wishes match yours 
https://groups.google.com/d/msg/web2py/BskHaFZkVEI/sudO0jdsFgAJ


First a question (mostly for curiosity). Why using Bottle instead (for 
example) Flask or werkzeug or one of the new async microframeworks? I 
assume because bottle is really small and we can include it without 
dependencies, and less verbose than werkzeug, but I have never used it, 
so I have no idea.


We can look in weppy most of the features that I really would like to 
have in web2py/web3py, it is in my opinion a great mix of flask and 
web2py styles. One of the things that I most like is the pydal based 
ORM. I know that there are a lot of people that like to work directly 
with the DAL, but in my opinion a ORM helps when we need to use 
inheritance and reuse code, and eases a lot the code reading in complex 
models. I really like the concept of "fat models and thin controllers", 
but my models looks really weird right now in web2py when I need to 
declare virtual fields or methods with complex logic.


I think that Weppy migrations are really useful in deployments and 
CI/CD, mostly when we need to make complex changes in database or 
update  old versions of our applications, because is easy to define an 
exact behavior of migrations and data.


Now some comments about your wishes:


4) the scheduler were part of pydal
I am not sure about this, of course you know the web2py API a lot better 
than me, and this have a reason, but I see the scheduler and the DAL as 
two completely different things, with different responsibilities, so I 
don't see why the scheduler should be part of pydal, instead of a 
standalone module.

6) we could remove every filesystem IO (errors, sessions, uploads)
But there should be an easy way for users to handle uploads, because is 
a common task.
8) auth logic were simpler and not tied to the current 
cookie/session/form logic.
I know that auth logic is a PITA, but still a lot of users use it. Even 
when use 3rd party services, is common to use some kind of authorization 
mechanism, so, I think that the framework should, at least, build some 
basic logic and an interface for extend or completely replace with 3rd 
party modules or custom auth logic.

9) SQLFORM and Grid were JS libraries that use Ajax for communication
That's good, but grid should be flexible enough, in my opinion, the main 
issue with the grid right now, is that customization is very limited or 
complex.
Then web2py -> web3py would be a thin layer using bottle and the above 
libs.


I think that there is a niche among Python web frameworks right now, and 
web2py -> web3py can fill it. There are a lot of microframeworks which 
are good, and fast, but need a lot of code and 3rd party integrations 
for building an application, there are others like django that include a 
lot of things, but still needs a lot of coding for building things like 
grids and forms or even a more classic app structure (that's why there 
are people making money with code generators), and there is web2py, 
which needs really little code for building applications, but is not 
"pythonic" or "flexible" enough fortake off between the developers. So 
in my opinion there is space for a framework which makes the developer 
life easier, and be "pythonic" and flexible, something like Yii2 or 
Laravel in the PHP world.


So, I think that, for really make a boost among python web developers, 
web2py -> web3py should aim to offer most of the features that web2py 
have right now, but with the flexibility that it lacks:


- It should be pip installable (and this is a must).

- Apps should be completely independents of the framework in the 
filesystem (no framework with applications folder, applications 
importing the framework instead).


- The framework should contain some pip compatible 
modules/component/plugin system which could extend the framework and be 
extended by the framework apps.


- There should be a recommended and documented way to write application 
tests.


- All framework components (or at least the public API) should be able 
to extended or replace.


Greetings.

PS: We should not drop off the current components. Really, is an awesome 
feature!! We should improve them.





--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- 

Re: [web2py] modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
I like a LOT the idea, my initial tests seems to work ok in Python 3.6.7 
on Ubuntu except the test_web ones are failing.


Tell me please, that one of the new year resolution is to have web2py in 
pypi :) That's something I would love to help make a reality.


This are my wishes:

1- pypi

2- The ability to:

pip install web2py
cd /home/myuser
git clone http://github.com/myuser/myapp.git
cd myapp
web2py run

And start my app. Something like this will make distributing web2py apps 
a lot easier (even using pip)


3- An advanced welcome app template, including .gitignores, tests, and 
environment configurations for development and production.


4- A more flexible grid:
There will be awesome if we could pass to the grid the template for 
rendering forms, or rendering buttons, cells etc... and define the logic 
for ordering fields (including virtual ones)


5- A CLI for applications, maybe using @cli decorators in controllers 
and maybe running them like "web2py --cli app/controller/function 
--param1=value1 --param2=value2"


6- A router that balances ease of use and power, maybe something in the 
middle of the two we have right now (I like the Yii2 framework routes 
style).


7- A more friendly error tickets for views (there can be difficult to 
find an error in a large view file), and maybe for reading them outside 
web2py (right now is really difficult to read errors accessing directly 
to the ticket files).


8- Some kind of "Modules system" that could make a lot easier the code 
reutilization.


With some guidance, I can use some hours/week and maybe include another 
dev for make this kind of features a reality. Even thougt I like the 
"web3py" idea, and I think that this kind of effort should be redirected 
to the new framework.


Greetings.


El 1/1/19 a las 7:04 p.m., Massimo Di Pierro escribió:

Based on my new years resolution:

- I posted a new web2py branch called modular.
- I moved template.py into its own folder planning to make its own package
- I refactored validators.py and scheduler.py and moved them into 
pydal (also branch modula)


Thoughts?
Can you help testing that nothing broke in web2py?

Massimo
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz

Guys, I think you need to include the "modular" branch of pydal too:

cd gluon/packages/dal/
git checkout modular

Greetings.


El 2/1/19 a las 4:32 a.m., 黄祥 escribió:

same here test using conda
|
$ uname
Darwin

$ python -V
Python3.7.1

$ git clone --recursive https://github.com/web2py/web2py.git
$ cd web2py
$ git checkout modular

$ python setup.py
Traceback(most recent call last):
File"setup.py",line 4,in
fromgluon.fileutils importtar,untar,read_file,write_file
File"/Users/sugizo/Downloads/learn/web2py/gluon/__init__.py",line 
35,in

from.globals importcurrent
File"/Users/sugizo/Downloads/learn/web2py/gluon/globals.py",line 
16,in
fromgluon._compat 
importpickle,StringIO,copyreg,Cookie,urlparse,PY2,iteritems,to_unicode,to_native,\
ImportError:cannot importname 
'Cookie'from'gluon._compat'(/Users/sugizo/Downloads/learn/web2py/gluon/_compat.py)


$ python web2py.py
Traceback(most recent call last):
File"web2py.py",line 21,in
importgluon.widget
File"/Users/sugizo/Downloads/learn/web2py/gluon/__init__.py",line 
35,in

from.globals importcurrent
File"/Users/sugizo/Downloads/learn/web2py/gluon/globals.py",line 
16,in
fromgluon._compat 
importpickle,StringIO,copyreg,Cookie,urlparse,PY2,iteritems,to_unicode,to_native,\
ImportError:cannot importname 
'Cookie'from'gluon._compat'(/Users/sugizo/Downloads/learn/web2py/gluon/_compat.py)

|

best regards,
stifan
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] CAS error

2018-12-30 Thread Carlos Cesar Caballero Díaz
Well, actually I have being not able to replicate the issue, maybe was 
something related to sessions or the browser cache, but right now I am 
not sure what was wrong.


Greetings.

El 30/12/18 a las 4:45 p.m., Massimo Di Pierro escribió:

Thanks

On Friday, 7 December 2018 07:15:33 UTC-8, Carlos Cesar Caballero wrote:

Hi Massimo, I am working on a fix, hopefully I will submit a PR soon.

Greetings.

El 7/12/18 a las 3:03 a.m., Massimo Di Pierro escribió:

can you please open an issue about this?

On Thursday, 29 November 2018 13:51:14 UTC-8, Carlos Cesar
Caballero wrote:

Hi guys, after some clean tests, the issue is not happening
with Python
2.7, so it seems to be a Python 3 issue.

Greetings.


El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz
escribió:
> Hi, I am using the web2py version
> 2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu
Linux, and I am
> not able to use CAS. I have a web2py app as server, an
another as
> client, and when client try to log in, the browser starts a
redirect
> loop and returns a ERR_TOO_MANY_REDIRECTS error. There are
no error
> tickets in client or server apps, and the behavior is
happening using
> python 2.7 and 3.6.
>
> I have configured the client just using:
>
> auth = Auth(db, cas_provider =
> 'http://127.0.0.1:8000/welcome/default/user/cas
<http://127.0.0.1:8000/welcome/default/user/cas>')
>
> I want to authenticate against the welcome app as I have
being doing
> with past web2py versions.
>
> Any idea how to fix this?
>
>
> Greetings.
>

-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] synchronizing / backing up my code between local web2py & PythonAnywhere web2py

2018-12-27 Thread Carlos Cesar Caballero Díaz

Maybe this can help:

https://blog.pythonanywhere.com/87/

Greetings.


El 23/12/18 a las 1:45 p.m., Vlad escribió:

What do you guys generally do as far an syncing / backup?

I mean, right now I am going back and forth local web2py <-> 
PythonAnywhere web2py


So it's tedious to keep track what the latest thing is - I pack up my 
app locally and upload it to PA, and then pack up on PA and upload to 
local.


Are there some common solutions for this? I would definitely enjoy 
some kind of synchronization which would also take care of  both - 
sync and a backup for me -

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Greetings

2018-12-26 Thread Carlos Cesar Caballero Díaz

Thanks! Merry Christmas to everybody too.


El 25/12/18 a las 1:10 p.m., Massimo DiPierro escribió:

Merry Christmas everybody
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] CAS error

2018-12-07 Thread Carlos Cesar Caballero Díaz

Hi Massimo, I am working on a fix, hopefully I will submit a PR soon.

Greetings.

El 7/12/18 a las 3:03 a.m., Massimo Di Pierro escribió:

can you please open an issue about this?

On Thursday, 29 November 2018 13:51:14 UTC-8, Carlos Cesar Caballero 
wrote:


Hi guys, after some clean tests, the issue is not happening with
Python
2.7, so it seems to be a Python 3 issue.

Greetings.


El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz escribió:
> Hi, I am using the web2py version
> 2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and
I am
> not able to use CAS. I have a web2py app as server, an another as
> client, and when client try to log in, the browser starts a
redirect
> loop and returns a ERR_TOO_MANY_REDIRECTS error. There are no error
> tickets in client or server apps, and the behavior is happening
using
> python 2.7 and 3.6.
>
> I have configured the client just using:
>
> auth = Auth(db, cas_provider =
> 'http://127.0.0.1:8000/welcome/default/user/cas
<http://127.0.0.1:8000/welcome/default/user/cas>')
>
> I want to authenticate against the welcome app as I have being
doing
> with past web2py versions.
>
> Any idea how to fix this?
>
>
> Greetings.
>

--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] CAS error

2018-11-29 Thread Carlos Cesar Caballero Díaz
Hi guys, after some clean tests, the issue is not happening with Python 
2.7, so it seems to be a Python 3 issue.


Greetings.


El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz escribió:
Hi, I am using the web2py version 
2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and I am 
not able to use CAS. I have a web2py app as server, an another as 
client, and when client try to log in, the browser starts a redirect 
loop and returns a ERR_TOO_MANY_REDIRECTS error. There are no error 
tickets in client or server apps, and the behavior is happening using 
python 2.7 and 3.6.


I have configured the client just using:

auth = Auth(db, cas_provider = 
'http://127.0.0.1:8000/welcome/default/user/cas')


I want to authenticate against the welcome app as I have being doing 
with past web2py versions.


Any idea how to fix this?


Greetings.



--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] CAS error

2018-11-29 Thread Carlos Cesar Caballero Díaz
Hi, I am using the web2py version 
2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and I am 
not able to use CAS. I have a web2py app as server, an another as 
client, and when client try to log in, the browser starts a redirect 
loop and returns a ERR_TOO_MANY_REDIRECTS error. There are no error 
tickets in client or server apps, and the behavior is happening using 
python 2.7 and 3.6.


I have configured the client just using:

auth = Auth(db, cas_provider = 
'http://127.0.0.1:8000/welcome/default/user/cas')


I want to authenticate against the welcome app as I have being doing 
with past web2py versions.


Any idea how to fix this?


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Issue between 2.14.5 and 2.17.2

2018-10-25 Thread Carlos Cesar Caballero Díaz

Seems you are using os.path.join() without import the os module.

Greetings.


El 25/10/18 a las 11:56 a.m., 'Annet' via web2py-users escribió:
After upgrading from web2py 2.14.5 to 2.17.2 and editing a model file 
I got the following error:


Traceback(most recent call last): 
File"/Users/iannet/web2py/gluon/restricted.py", line219, in restricted
 exec(ccode, environment) 
File"/Users/iannet/web2py/applications/adminmodel/models/01_education_db.py", line19, 
in  Field('image', type='upload', default=None, 
requires=IS_EMPTY_OR(IS_IMAGE(extensions=('gif', 'jpg', 'jpeg', 'png'),
maxsize=(320, 518)), IS_LENGTH(128*1024)), autodelete=True,
uploadfolder=os.path.join(UPLOADFOLDER, 'vertexID%s' % 
session.back_end_vertexID)), NameError: name'os' is not defined

What has changed between these versions that's causing this error? As 
far as I can see 0_imports .py still imports os



Kind regards,

Annet

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Vue + web2py + Vuetify

2018-09-11 Thread Carlos Cesar Caballero Díaz

Hi António, the link is referencing an empty project.

Greetings.


El 11/09/18 a las 06:08, António Ramos escribió:

here is the correct link
https://codepen.io/pen/?=101

2018-09-03 1:48 GMT+01:00 黄祥 >:


perhaps you can give some example about that (git link or *.w2p),
follow the link provided, just found an emptiness

best regards,
stifan
-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Stats from Jetbrains

2018-09-04 Thread Carlos Cesar Caballero Díaz
Hi, there are some interesting stats published by Jetbrains 
https://www.jetbrains.com/research/devecosystem-2018/python/



Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] pydal metadata in db

2018-09-02 Thread Carlos Cesar Caballero Díaz

I like it.

Greetings.


El 02/09/18 a las 14:08, Massimo Di Pierro escribió:

We you may know web2py has the ability to store table metadata in DB:

from gluon.dal import InDBMigrator
db = DAL(myconf.get('db.uri'), adapter_args=dict(migrator=InDBMigrator))

This is better for scalability as there is no filsystem IO.

How do people feel with the following:
- make the above the default behavior (no more metadata/*.table)
- eliminate logging in databases/sql.log as use log.info instead
- make migration always on on localhost and appadmin and always off 
otherwise
- create a script and an appadmin endpoint for fake_migration (partial 
database repair)


This can be done with a change to the welcome app in a backward 
compatible manner.

Hardest part is update the docs.

Massimo
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz
Ok, tested in Ubuntu 18.04 (simply using "2/0" in the index function of 
default controller) using Python 3.6 and Python 3.7 and the issue is 
still present.



El 01/09/18 a las 12:28, Carlos Cesar Caballero Díaz escribió:


maybe is related with Python version, let me test


El 01/09/18 a las 11:44, Alex escribió:

Hi Carlos,

thanks for your response. On a Mac with Python 3.7 this does not seem 
to happen. Does anyone know if it is related to the OS or Python version?


Alex

On Saturday, September 1, 2018 at 5:32:24 PM UTC+2, Carlos Cesar 
Caballero wrote:


Hi Alex, seems a bug with Python 3, I have created an issue for
this a couple days ago
https://github.com/web2py/web2py/issues/1998
<https://github.com/web2py/web2py/issues/1998>

Greetings.


El 01/09/18 a las 11:22, Alex escribió:

Hi,
I created a new application on the admin page and added a simple
error in the default/index controller, e.g.
a = 10 / 0

an error ticket is created but contains no useful stack trace.
This only happens when I use Python 3.5, with Python 2.7 the
stack trace is fine. I'm on Ubuntu and using the latest web2py
2.17.1, anyone got an idea what's wrong?

Traceback(most recent call last): 
File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", line219, in 
restricted
 exec(ccode, environment) ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred: Traceback(most 
recent call last): File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", 
line141, in __init__
 self.traceback= traceback.format_exc() AttributeError: 'NoneType' 
object has no attribute'strip'
-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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+un...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz

maybe is related with Python version, let me test


El 01/09/18 a las 11:44, Alex escribió:

Hi Carlos,

thanks for your response. On a Mac with Python 3.7 this does not seem 
to happen. Does anyone know if it is related to the OS or Python version?


Alex

On Saturday, September 1, 2018 at 5:32:24 PM UTC+2, Carlos Cesar 
Caballero wrote:


Hi Alex, seems a bug with Python 3, I have created an issue for
this a couple days ago
https://github.com/web2py/web2py/issues/1998


Greetings.


El 01/09/18 a las 11:22, Alex escribió:

Hi,
I created a new application on the admin page and added a simple
error in the default/index controller, e.g.
a = 10 / 0

an error ticket is created but contains no useful stack trace.
This only happens when I use Python 3.5, with Python 2.7 the
stack trace is fine. I'm on Ubuntu and using the latest web2py
2.17.1, anyone got an idea what's wrong?

Traceback(most recent call last): 
File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", line219, in 
restricted
 exec(ccode, environment) ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred: Traceback(most 
recent call last): File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", 
line141, in __init__
 self.traceback= traceback.format_exc() AttributeError: 'NoneType' 
object has no attribute'strip'
-- 
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+un...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz
Hi Alex, seems a bug with Python 3, I have created an issue for this a 
couple days ago https://github.com/web2py/web2py/issues/1998


Greetings.


El 01/09/18 a las 11:22, Alex escribió:

Hi,
I created a new application on the admin page and added a simple error 
in the default/index controller, e.g.

a = 10 / 0

an error ticket is created but contains no useful stack trace. This 
only happens when I use Python 3.5, with Python 2.7 the stack trace is 
fine. I'm on Ubuntu and using the latest web2py 2.17.1, anyone got an 
idea what's wrong?


Traceback(most recent call last): 
File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", line219, in 
restricted
 exec(ccode, environment) ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred: Traceback(most recent 
call last): File"/home/alex/web2py/web2py_2.17.1/gluon/restricted.py", line141, 
in __init__
 self.traceback= traceback.format_exc() AttributeError: 'NoneType' object 
has no attribute'strip'
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py hangs uploading file

2018-08-29 Thread Carlos Cesar Caballero Díaz
I have found the issue, there was a typo (that's the bad ting about 
copying and pasting) in my "resource" field of "dar_resource_file" 
table, is was declared as:


    Field("file", "list:refrence dar_resource")

instead of:

    Field("file", "refrence dar_resource")

Anyway, I think that it should rise an exception instead of the current 
behavior.



Greetings.


El 29/08/18 a las 13:45, Carlos Cesar Caballero Díaz escribió:

Hi guys, I am trying to manually upload a file, but this code:

    file_store = 
db.dar_resource_file.file.store(request.vars.file.file, 
request.vars.file.filename)


db.dar_resource_file.update_or_insert(db.dar_resource_file.resorce=resource_id, 
resource=resource_id, name=resource_name, file=file_store)


completely hangs web2py, when update_or_insert is called, some kind of 
infinite loop starts, and the cpu usage goes to 100% and never finish.


I am using the last web2py version and Python 3.5

Greetings.





--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py hangs uploading file

2018-08-29 Thread Carlos Cesar Caballero Díaz

Hi guys, I am trying to manually upload a file, but this code:

    file_store = 
db.dar_resource_file.file.store(request.vars.file.file, 
request.vars.file.filename)


db.dar_resource_file.update_or_insert(db.dar_resource_file.resorce=resource_id, 
resource=resource_id, name=resource_name, file=file_store)


completely hangs web2py, when update_or_insert is called, some kind of 
infinite loop starts, and the cpu usage goes to 100% and never finish.


I am using the last web2py version and Python 3.5

Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: DAL MySQL text type

2018-08-21 Thread Carlos Cesar Caballero Díaz

Great, Thanks!!


El 20/08/18 a las 15:49, Anthony escribió:
On Monday, August 20, 2018 at 2:41:22 PM UTC-4, Carlos Cesar Caballero 
wrote:


Thanks Anthony, LONGTEXT is exactly what I need. But in case of
necessity, how "experimental" is that feature? Should I be worried
about unnoticed API changes?.


It's not really experimental (been there for years) -- it's just that 
no one ever updated that heading in the book. I just pushed a commit 
to the book repo removing "experimental".


Anthony
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: DAL MySQL text type

2018-08-20 Thread Carlos Cesar Caballero Díaz
Thanks Anthony, LONGTEXT is exactly what I need. But in case of 
necessity, how "experimental" is that feature? Should I be worried about 
unnoticed API changes?.


Greetings.


El 18/08/18 a las 17:48, Anthony escribió:
The DAL uses LONGTEXT for text fields in MySQL. If you'd like to use 
an alternative, you can create a custom type via 
SQLCustomType: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Custom-Field-types-experimental-. 



Anthony

On Saturday, August 18, 2018 at 3:49:35 PM UTC-4, Carlos Cesar 
Caballero wrote:


Hi, Erick, thanks for your answer, there are the DAL types and the
default validators, but there are no mention about the adapters
field types, for example, in MySQL text can be stored in fields of
types TEXT, MEDIUMTEXT or LONGTEXT. I am asking for the type used
in the MySQL DB, and if is possible to set a different one.

Greetings.


El 17/08/18 a las 23:35, Erik escribió:

This section has the types:

http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-types





On Thursday, August 16, 2018 at 9:59:13 AM UTC-7, Carlos Cesar
Caballero wrote:

Hi guys, what kind of data type uses pydal in MySQL for
"text" type?, if
it is TEXT, is possible to set it for using MEDIUMTEXT or
LONGTEXT?


Greetings.


-- 
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
.
For more options, visit https://groups.google.com/d/optout
.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: DAL MySQL text type

2018-08-18 Thread Carlos Cesar Caballero Díaz
Hi, Erick, thanks for your answer, there are the DAL types and the 
default validators, but there are no mention about the adapters field 
types, for example, in MySQL text can be stored in fields of types TEXT, 
MEDIUMTEXT or LONGTEXT. I am asking for the type used in the MySQL DB, 
and if is possible to set a different one.


Greetings.


El 17/08/18 a las 23:35, Erik escribió:
This section has the types: 
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-types




On Thursday, August 16, 2018 at 9:59:13 AM UTC-7, Carlos Cesar 
Caballero wrote:


Hi guys, what kind of data type uses pydal in MySQL for "text"
type?, if
it is TEXT, is possible to set it for using MEDIUMTEXT or LONGTEXT?


Greetings.


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] DAL MySQL text type

2018-08-16 Thread Carlos Cesar Caballero Díaz
Hi guys, what kind of data type uses pydal in MySQL for "text" type?, if 
it is TEXT, is possible to set it for using MEDIUMTEXT or LONGTEXT?



Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Infinite loading

2018-06-29 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, I am trying to build a generic solution, if everything 
goes fine I will share.


Greetings.


El 28/06/18 a las 13:40, Leonel Câmara escribió:
You should probably use the intersection observer now but here's a 
particularly stupid way to do it (also because it fires for every scroll).


|
varscroll_threshold =500;// make sure you leave enough for any 
elements after the one where you are loading elements such as a footer


document.onscroll=function(){
    let scrollerBottom,listBottom;
    scrollerBottom =$(window).scrollTop()+$(window).height()
    listBottom =$(document).height();
if(listBottom -scrollerBottom // Then you request the next page of results using ajax e.g. see 
jquery $.get or $.web2py.page


}
};
|


--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Infinite loading

2018-06-28 Thread Carlos Cesar Caballero Díaz

Thanks Dave, I'm looking.

Greetings.


El 27/06/18 a las 16:11, Dave S escribió:



On Wednesday, June 27, 2018 at 6:33:28 AM UTC-7, Leonel Câmara wrote:

Do you mean that as you scroll more results are loaded? This isn't
really a web2py problem, it's a matter of implementing it in
javascript. On the web2py side it's a matter of paging the results
and the javascript increases the page number it requests from
web2py each time it needs more results.


In this group, the search term I had the most success with is 
"infinite scrolling", from which the most interesting post was

https://groups.google.com/d/msg/web2py/B3ZG8wUH_rc/VNdg1qi5ozEJ>
(recommends datatables).

Other articles focusing on web2py's grid involve javascript to handle 
the end-of-page (or scroll-to-end) events but don't quite have examples.


Controllers need to use LIMIT_BY(x,y) in their queries.

/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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Infinite loading

2018-06-28 Thread Carlos Cesar Caballero Díaz
Hi Leonel, thanks for your answer, I know that's not a web2py problem, I 
was asking if someone has built a plugin or something including that 
feature, for example, I work also with the Yii2 PHP framework, and there 
is: https://github.com/kop/yii2-scroll-pager


Greetings.


El 27/06/18 a las 09:33, Leonel Câmara escribió:
Do you mean that as you scroll more results are loaded? This isn't 
really a web2py problem, it's a matter of implementing it in 
javascript. On the web2py side it's a matter of paging the results and 
the javascript increases the page number it requests from web2py each 
time it needs more results.

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Infinite loading

2018-06-26 Thread Carlos Cesar Caballero Díaz

Hi guys, there is some infinite loading implementation for web2py out there?

Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz

Thank you so much!!

Greetings.


El 18/06/18 a las 11:28, Richard Vézina escribió:

And previous version was : 2.14.6

On Mon, Jun 18, 2018 at 11:27 AM, Richard Vézina 
mailto:ml.richard.vez...@gmail.com>> wrote:


Changelog file in web2py folder :

*## 2.15.1-4*
- pydal 17.08
*- dropped support for python 2.6*
- dropped web shell
- experimental python 3 support
- experimental authapi for service login
- allow ajax file uploads
- more tests
- more pep8 compliance
- d3.js model visulization
- improved scheduler
- is_email support for internationalized Domain Names
- improved used of cookies with CookieJar
- SQLFORM.grid(showblobs=True)
- import JS events (added w2p.componentBegin event)
- added support for CASv3
- allow first_name and last_name placeholders in verify_email message
- added three-quote support in markmin
- updated pg8000 driver (but we still recommend psycopg2)
- compiled views use . separator not _ separator (must recompile code)
- better serbian, french, and catalan translations
- speed improvements (refactor of compileapp and pyc caching)
- removed web shell (never worked as intended)
- allow Expose(..., follow_symlink_out=False).
- Updated fpdf to latest version
- JWT support
- import fabfile for remote deployment
- scheduler new feature: you can now specify intervals with cron
- gluon/* removed from sys.path. Applications relying on
statements like e.g.
  "from storage import Storage"
  will need to be rewritten with
  "from gluon.storage import Storage"
- tests can only be run with the usual web2py.py
--run_system_tests OR with
  python -m unittest -v gluon.tests on the root dir
- jQuery 3.2.1
- PyDAL 17.07 including:
  allow jsonb support for postgres
  correctly configure adapters that need connection for configuration
  better caching
  updated IMAP adapter methods to new API
  experimental suport for joinable subselects
  improved Teradata support
  improved mongodb support
  overall refactoring
  experimental support for Google Cloud SQL v2
  new pymysql driver

On Mon, Jun 18, 2018 at 10:48 AM, Carlos Cesar Caballero Díaz
mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Hi guys, what was the last web2py version supporting Python 2.6?

Greetings.


-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.



--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz

Hi guys, what was the last web2py version supporting Python 2.6?

Greetings.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Improve HTML page load

2018-06-11 Thread Carlos Cesar Caballero Díaz
The first thing is identifying the reason of the slow load. Is the 
render of the view, the controller, or the data access? you can debug or 
strip parts of your code to find that.


By example, if your code loads too many questions and/or answers it will 
be really slow because there will be too many objects in memory.


Greetings.


El 11/06/18 a las 08:22, Maurice Waka escribió:
I have an HTML page that take long to load,about 60 to 60 seconds 
sometimes. This is the code.

|
{{extend "layout.html"}}






    
        
        
        {{for reply in replies:}}
        
        
        {{=prettydate(reply.modified_on)}}
        

{{=XML(reply.quest,sanitize=True)}}

        


{{=prettydate(reply.modified_on)}}

        
        {{=XML(reply.message, sanitize=True)}}

        
{{pass}}

        
        
        
        {{=form.custom.begin}}
        

send
        {{=form.custom.end}}
        

        

        
        
        



        

    
|

the controller code is as follows:
|
replies =db(db.answers.author 
==auth.user.id).select(db.answers.ALL)[-7:-1]#:-1]##if getting upto 
the last record, it appears twice when posting on view
    question =db(db.answers.author 
==auth.user.id).select(orderby=~db.answers.created_on,limitby=(2,0))
    answer =db(db.answers.author 
==auth.user.id).select(orderby=~db.answers.created_on,limitby=(2,0))

    q =''
    a =''
forq inquestion:
        q =XML(q.quest,sanitize=True)
fora inanswer:
        a =XML(a.message,sanitize=True)
returndict(form=form,q=q,a=a,replies=replies)


|
How can I make it load faster?
KInd regards
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Carlos Cesar Caballero Díaz

I think we should check if the file exists before try to delete it.

or move the unlik() function to a new "try-except" block, something like:

if welcome.w2p is correctly created:

    try:

    os.unlink('NEWINSTALL')

    except FileNotFoundError:

    nothing to do

    except:

    error removing 'NEWINSTALL' file


Greetings.


El 23/04/18 a las 13:33, Richard Vézina escribió:
Actually it already inside a try... And it only logging an error... 
Should this be an error or a warning?? I guess this is done for the 
appadmin to allow it to create new app as it base on welcome... The 
welcome template is provision at first web2py run once install and 
derived from the welcome app...


I guess it wouldn't be a good solution to track this NEWINSTALL file 
in the repo, as it could trigger some other issue... But at the same 
time, if you manage your web2py install with git, it might just make 
sens that whenever you update your local repo, that this file get 
recreated and the template being updated??


Richard

On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina 
<ml.richard.vez...@gmail.com <mailto:ml.richard.vez...@gmail.com>> wrote:


I guess we could had a simple "try" there...

Richard

On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina
<ml.richard.vez...@gmail.com <mailto:ml.richard.vez...@gmail.com>>
wrote:

Yeah this file is not there when we clone web2py... But I just
check and it's there when you download web2py build from
web2py.com...

What's weird is that I didn't have the issue...

Richard

    On Mon, Apr 23, 2018 at 12:39 PM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Ok, I have found the issue:


Traceback (most recent call last):
  File
"/home/carlos.caballero/test/w2ptest/gluon/fileutils.py",
line 270, in create_welcome_w2p
    os.unlink('NEWINSTALL')
FileNotFoundError: [Errno 2] No such file or directory:
'NEWINSTALL'


El 23/04/18 a las 11:48, Richard Vézina escribió:

In gluon/fileutil.py

Richard

On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina
<ml.richard.vez...@gmail.com
<mailto:ml.richard.vez...@gmail.com>> wrote:

The python3 welcome.w2p creation issue??

I think it a dependency issue that might be
obufuscated by _compat.py

You can try to replace this line :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

        Richard

    On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar
Caballero Díaz <carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

I have the same issue, using the current master
branch in Ubuntu.

Greetings.


El 21/04/18 a las 08:21, Richard Vézina escribió:

Actually I can't reproduced... It could it be a
permission error??

Try to clone it fresh some where you have full
access with this command :

git clone --recursive
https://github.com/web2py/web2py.git
<https://github.com/web2py/web2py.git>

Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
<ml.richard.vez...@gmail.com
<mailto:ml.richard.vez...@gmail.com>> wrote:

Can you open an issue?

I think it related to this :

https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269

<https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269>

Path string that has to be manipulated
differently in python 3

Explanation

https://www.scivision.co/python-idiomatic-pathlib-use/
<https://www.scivision.co/python-idiomatic-pathlib-use/>

On Fri, Apr 20, 2018 at 9:15 PM, lyn2py
   

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz

Ok, I have found the issue:


Traceback (most recent call last):
  File "/home/carlos.caballero/test/w2ptest/gluon/fileutils.py", line 
270, in create_welcome_w2p

    os.unlink('NEWINSTALL')
FileNotFoundError: [Errno 2] No such file or directory: 'NEWINSTALL'


El 23/04/18 a las 11:48, Richard Vézina escribió:

In gluon/fileutil.py

Richard

On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina 
<ml.richard.vez...@gmail.com <mailto:ml.richard.vez...@gmail.com>> wrote:


The python3 welcome.w2p creation issue??

I think it a dependency issue that might be obufuscated by _compat.py

You can try to replace this line :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

Richard

On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

I have the same issue, using the current master branch in Ubuntu.

Greetings.


El 21/04/18 a las 08:21, Richard Vézina escribió:

Actually I can't reproduced... It could it be a permission
error??

Try to clone it fresh some where you have full access with
this command :

git clone --recursive https://github.com/web2py/web2py.git
<https://github.com/web2py/web2py.git>

Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
<ml.richard.vez...@gmail.com
<mailto:ml.richard.vez...@gmail.com>> wrote:

Can you open an issue?

I think it related to this :

https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269

<https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269>

Path string that has to be manipulated differently in
python 3

Explanation

https://www.scivision.co/python-idiomatic-pathlib-use/
<https://www.scivision.co/python-idiomatic-pathlib-use/>

On Fri, Apr 20, 2018 at 9:15 PM, lyn2py <lyn...@gmail.com
<mailto:lyn...@gmail.com>> wrote:

I just git cloned the latest web2py and started it up
with *python3*
|
Version 2.16.1-stable+timestamp.2018.03.08.10.23.01
Database drivers available: sqlite3, imaplib,
pymysql, pyodbc
|

I got this error in console
|
ERROR:root:Newinstallation error:unable to create
welcome.w2p file
|

When I quit the python server and restart with
python2 or python3, the error does not come up anymore.




On Tuesday, November 14, 2017 at 1:59:52 PM UTC+8,
Massimo Di Pierro wrote:

web2py 2.16.1 is OUT

Lots of bugs fixes contributed by the community.
Thanks Leonel, Paolo, Giovanni, and all those who
contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new
examples in default.py
- simplified layout.html

Massimo



-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit
https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.



-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz

Hi, after replacing there are no changes, the message appears again.

I have also noted that in my system is happening with python 2.7 too.


El 23/04/18 a las 11:48, Richard Vézina escribió:

In gluon/fileutil.py

Richard

On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina 
<ml.richard.vez...@gmail.com <mailto:ml.richard.vez...@gmail.com>> wrote:


The python3 welcome.w2p creation issue??

I think it a dependency issue that might be obufuscated by _compat.py

You can try to replace this line :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

Richard

On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

I have the same issue, using the current master branch in Ubuntu.

Greetings.


El 21/04/18 a las 08:21, Richard Vézina escribió:

Actually I can't reproduced... It could it be a permission
error??

Try to clone it fresh some where you have full access with
this command :

git clone --recursive https://github.com/web2py/web2py.git
<https://github.com/web2py/web2py.git>

Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
<ml.richard.vez...@gmail.com
<mailto:ml.richard.vez...@gmail.com>> wrote:

Can you open an issue?

I think it related to this :

https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269

<https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269>

Path string that has to be manipulated differently in
python 3

Explanation

https://www.scivision.co/python-idiomatic-pathlib-use/
<https://www.scivision.co/python-idiomatic-pathlib-use/>

On Fri, Apr 20, 2018 at 9:15 PM, lyn2py <lyn...@gmail.com
<mailto:lyn...@gmail.com>> wrote:

I just git cloned the latest web2py and started it up
with *python3*
|
Version 2.16.1-stable+timestamp.2018.03.08.10.23.01
Database drivers available: sqlite3, imaplib,
pymysql, pyodbc
|

I got this error in console
|
ERROR:root:Newinstallation error:unable to create
welcome.w2p file
|

When I quit the python server and restart with
python2 or python3, the error does not come up anymore.




On Tuesday, November 14, 2017 at 1:59:52 PM UTC+8,
Massimo Di Pierro wrote:

web2py 2.16.1 is OUT

Lots of bugs fixes contributed by the community.
Thanks Leonel, Paolo, Giovanni, and all those who
contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new
examples in default.py
- simplified layout.html

Massimo



-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit
https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.



-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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 u

Re: [web2py] Re: Get rows by id list keeping the order

2018-04-23 Thread Carlos Cesar Caballero Díaz

Thanks Leonel, that sounds interesting, I will take a look.

Greetings.


El 23/04/18 a las 11:30, Leonel Câmara escribió:
I would make a function that automatically generated case statements 
for the orderby


|
defmake_orderby(idlist):
    result="CASE"
fori,el inenumerate(idlist):
        result +=" WHEN id = %d THEN '%d' "%(el,i)
    result +=" ELSE id END ASC"
returnresult
|




I have not tested this...
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz

I have the same issue, using the current master branch in Ubuntu.

Greetings.


El 21/04/18 a las 08:21, Richard Vézina escribió:

Actually I can't reproduced... It could it be a permission error??

Try to clone it fresh some where you have full access with this command :

git clone --recursive https://github.com/web2py/web2py.git

Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina 
> wrote:


Can you open an issue?

I think it related to this :

https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269



Path string that has to be manipulated differently in python 3

Explanation

https://www.scivision.co/python-idiomatic-pathlib-use/


On Fri, Apr 20, 2018 at 9:15 PM, lyn2py > wrote:

I just git cloned the latest web2py and started it up with
*python3*
|
Version 2.16.1-stable+timestamp.2018.03.08.10.23.01
Database drivers available: sqlite3, imaplib, pymysql, pyodbc
|

I got this error in console
|
ERROR:root:Newinstallation error:unable to create welcome.w2p file
|

When I quit the python server and restart with python2 or
python3, the error does not come up anymore.




On Tuesday, November 14, 2017 at 1:59:52 PM UTC+8, Massimo Di
Pierro wrote:

web2py 2.16.1 is OUT

Lots of bugs fixes contributed by the community. Thanks
Leonel, Paolo, Giovanni, and all those who contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new examples in
default.py
- simplified layout.html

Massimo



-- 
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
.
For more options, visit https://groups.google.com/d/optout
.



--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-22 Thread Carlos Cesar Caballero Díaz
Yes, I usually use a newer bootstrap version, and make some fixes in the 
layout bar.


Testing the trunk I can see that is fixed, but there are some responsive 
issues. Is there some issue open about this? If there is no one working 
I can send some fixes.


Greetings.

El 22/04/18 a las 15:54, Andrea Fae' escribió:
If you try to use welcome application on web2py 2.16.1 login menu 
(hamburger icon) is not working. Clicking on it nothing 
happens...it's a bug.

Am I right?
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] please help us test trunk web2py

2018-04-22 Thread Carlos Cesar Caballero Díaz
Hi, I was testing and there are some issues with the DAL parse_as_rest 
and Python 3. There are also some style issues with the welcome app navbar.


I can work in the navbar if no one is working.

Greetings.


El 24/02/18 a las 21:44, Massimo Di Pierro escribió:

Please help us test the version of web2py which is posted on github.

I would like to release a new stable version and I would like to know 
if any of the changes has broken backward compatibility.

Also the icons are back in the latest welcome but use font-awesome.

Please check it. Thanks.

Massimo

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Get rows by id list keeping the order

2018-04-22 Thread Carlos Cesar Caballero Díaz
Thanks Anthony, I will go with the first option and guess how to adapt 
it to postgress too.


Greetings.


El 22/04/18 a las 12:12, Anthony escribió:
On Sunday, April 22, 2018 at 11:46:13 AM UTC-4, Carlos Cesar Caballero 
wrote:


Hi guys, I have a list of ids, and I need to obtain the records
keeping
the list order. In MySQL I can use FIELD() in the "order by" for
that.
Can I get the ordered records using the DAL?


The DAL doesn't have anything built in that will work across database 
backends, but if you are using MySQL, you should be able to do:


|
db(query).select(orderby='Field(id, %s)'%', '.join(str(id)forid 
inlist_of_ids))

|

Alternatively, if the list is not too long, you can just do the 
sorting in Python after selection:


|
db(query).select().sort(lambdar:list_of_ids.index(r.id))
|

Anthony

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Get rows by id list keeping the order

2018-04-22 Thread Carlos Cesar Caballero Díaz
Hi guys, I have a list of ids, and I need to obtain the records keeping 
the list order. In MySQL I can use FIELD() in the "order by" for that. 
Can I get the ordered records using the DAL?


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py, nginx and big files

2018-04-22 Thread Carlos Cesar Caballero Díaz

Thanks Richard, I will take a look.

Greetings.


El 20/04/18 a las 14:56, Richard Vézina escribió:

You seems to have found good information...

I don't have much time to investigate that subject and realize it 
could be quite complexe...


And involve security issue : 
https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/



Although, I thought that you might have a read that code base of apps 
like these listing :


https://opensource.com/life/15/12/5-open-source-web-apps-self-hosted

This kind of apps surely had to workaround large file issue that you 
have...


Richard

On Fri, Apr 20, 2018 at 10:39 AM, Carlos Cesar Caballero Díaz 
<carlos.caball...@cfg.jovenclub.cu 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:



El 19/04/18 a las 16:21, Richard Vézina escribió:

Ah ok, make sens then. Are you storing the file in database or on
file system at web2py level??



In the file system, I think that storing big (or so many) files in
the database can overload it.



There is surely a way to make the copy only once at the right
place, but I am pretty sure it mean writting some customization
at uwsgi level and most probably some conf in nginx to bypass it
usual mechanism.


I have being reading and found this
https://stackoverflow.com/a/44751210/1818267
<https://stackoverflow.com/a/44751210/1818267> its interesting,
besides it carries some new issues to solve.



I try to make some research and get back to you if I can fin
anything that could help.

Good luck


Thanks, I'll be very grateful (more grateful :D).

Greetings



Richard

On Wed, Apr 18, 2018 at 10:37 PM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:


El 18/04/18 a las 13:54, Richard Vézina escribió:

That big... Hope it could work for you...


Well, right now is working with your suggestion, but not
perfect, is really slow because nginx uploads the file to a
tmp file, next seems to copy the file to another place (I
assume to uwsgi) and next is copied to web2py uploads, really
annoying. I think that there should be a better way to do that.



Are you trying to make El packet transiting the island
faster or what...

:D


Not exactly, but I like how you think :D

I am working with Joven Club, a "company" that provides
technical and learning services throughout the country, and I
am building a tool for helping with the software installation
service, it's really simple, basically a software installers
repository where people can search and download (and certain
people upload the files, of course).




Richard

    On Wed, Apr 18, 2018 at 1:45 PM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Thanks Richard, It seems to be working now. The files
can be several Gigabytes.


Greetings.


El 17/04/18 a las 13:10, Richard Vézina escribió:

How big?

https://www.bookstackapp.com/docs/admin/upload-limits/
<https://www.bookstackapp.com/docs/admin/upload-limits/>


https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size

<https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size>

Quote from the above link:
For “hard” limit client_max_body_size directive must be
used. The value of zero for this directive specifies
that no restrictions on file size should be applied.


Have a look at your nginx config upload_max_file_size
and client_max_body_size

I can't find the default nginx limit, but I think
upload are around 5 mg, I recall having issue long time
ago about upload limit and the attachement was a little
over 5 meg, so...

In the link you provide there not seems to have limit
overriding default, so my guess is that your file is
bigger than the client_max_body_size

Good luck

        Richard

    On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar
Caballero Díaz <carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Hi, I have a web2py + nginx setup

(https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh

<https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh>)
and I need to upload big files to my application,
the app is working ok 

Re: [web2py] web2py, nginx and big files

2018-04-20 Thread Carlos Cesar Caballero Díaz


El 19/04/18 a las 16:21, Richard Vézina escribió:
Ah ok, make sens then. Are you storing the file in database or on file 
system at web2py level??



In the file system, I think that storing big (or so many) files in the 
database can overload it.




There is surely a way to make the copy only once at the right place, 
but I am pretty sure it mean writting some customization at uwsgi 
level and most probably some conf in nginx to bypass it usual mechanism.


I have being reading and found this 
https://stackoverflow.com/a/44751210/1818267 its interesting, besides it 
carries some new issues to solve.




I try to make some research and get back to you if I can fin anything 
that could help.


Good luck


Thanks, I'll be very grateful (more grateful :D).

Greetings



Richard

On Wed, Apr 18, 2018 at 10:37 PM, Carlos Cesar Caballero Díaz 
<carlos.caball...@cfg.jovenclub.cu 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:



El 18/04/18 a las 13:54, Richard Vézina escribió:

That big... Hope it could work for you...


Well, right now is working with your suggestion, but not perfect,
is really slow because nginx uploads the file to a tmp file, next
seems to copy the file to another place (I assume to uwsgi) and
next is copied to web2py uploads, really annoying. I think that
there should be a better way to do that.



Are you trying to make El packet transiting the island faster or
what...

:D


Not exactly, but I like how you think :D

I am working with Joven Club, a "company" that provides technical
and learning services throughout the country, and I am building a
tool for helping with the software installation service, it's
really simple, basically a software installers repository where
people can search and download (and certain people upload the
files, of course).




Richard

On Wed, Apr 18, 2018 at 1:45 PM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Thanks Richard, It seems to be working now. The files can be
several Gigabytes.


Greetings.


El 17/04/18 a las 13:10, Richard Vézina escribió:

How big?

https://www.bookstackapp.com/docs/admin/upload-limits/
<https://www.bookstackapp.com/docs/admin/upload-limits/>


https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size

<https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size>

Quote from the above link:
For “hard” limit client_max_body_size directive must be
used. The value of zero for this directive specifies that no
restrictions on file size should be applied.


Have a look at your nginx config upload_max_file_size and
client_max_body_size

I can't find the default nginx limit, but I think upload are
around 5 mg, I recall having issue long time ago about
upload limit and the attachement was a little over 5 meg, so...

In the link you provide there not seems to have limit
overriding default, so my guess is that your file is bigger
than the client_max_body_size

Good luck

Richard

    On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar Caballero
Díaz <carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Hi, I have a web2py + nginx setup

(https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh

<https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh>)
and I need to upload big files to my application, the
app is working ok with the built in server, but with
nginx the form submission fails with no response when
there are big files.

Any tip for solving this?


Greetings.

-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit
https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
Resources:

- htt

{Disarmed} Re: [web2py] Re: Exception while handling exception at gluon/streamer.py (python 3)

2018-04-19 Thread Carlos Cesar Caballero Díaz
With Python 3 there are definitely issues with the error traces. 
Sometimes is difficult to find what is failing.


Greetings.


El 19/04/18 a las 13:50, Antonio Salazar escribió:
Is anyone running into this issue? It's happening both in Windows and 
Linux.

Should I postpone migrating to python3?

On Wednesday, April 18, 2018 at 4:04:57 PM UTC-5, Antonio Salazar wrote:

The bug is very easy to reproduce:

  * Clone the repository from GitHub
  * Run python3 web2py.py
  * Browse to http://127.0.0.1:8000/welcome/favicon.ico


It seems only *base/streamer.py* and *contrib/gateways/fcgi.py*
handle exceptions in this way.


On Wednesday, April 18, 2018 at 12:00:43 PM UTC-5, Antonio Salazar
wrote:

Now that web2py supports python 3, I just went on and migrated
my website. All works fine, except for a crash which I'm not
sure how to handle.

I get this when the browser looks for /favicon.ico (a
non-existent file because it's in /images/favicon.ico)
|
Traceback(most recent call last):
File"R:\Website Extranet\Fuentes\web2py\gluon\main.py",line
329,inwsgibase
    response.stream(static_file,request=request)
File"R:\Website Extranet\Fuentes\web2py\gluon\globals.py",line
617,instream
    status=self.status)
File"R:\Website
Extranet\Fuentes\web2py\gluon\streamer.py",line
66,instream_file_or_304_or_206
ife[0]==errno.EISDIR:
TypeError:'FileNotFoundError'objectisnotsubscriptable
|

The problem is the handling of exceptions in base/streamer.py
|
exceptIOErrorase:
ife[0]==errno.EISDIR:
raiseHTTP(403,error_message,web2py_error='file is a directory')
elife[0]==errno.EACCES:
raiseHTTP(403,error_message,web2py_error='inaccessible file')
else:
raiseHTTP(404,error_message,web2py_error='invalid file')

|

e[0] crashes because e is not indexable, it expects e.errno
instead.

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py, nginx and big files

2018-04-18 Thread Carlos Cesar Caballero Díaz


El 18/04/18 a las 13:54, Richard Vézina escribió:

That big... Hope it could work for you...


Well, right now is working with your suggestion, but not perfect, is 
really slow because nginx uploads the file to a tmp file, next seems to 
copy the file to another place (I assume to uwsgi) and next is copied to 
web2py uploads, really annoying. I think that there should be a better 
way to do that.




Are you trying to make El packet transiting the island faster or what...

:D


Not exactly, but I like how you think :D

I am working with Joven Club, a "company" that provides technical and 
learning services throughout the country, and I am building a tool for 
helping with the software installation service, it's really simple, 
basically a software installers repository where people can search and 
download (and certain people upload the files, of course).




Richard

On Wed, Apr 18, 2018 at 1:45 PM, Carlos Cesar Caballero Díaz 
<carlos.caball...@cfg.jovenclub.cu 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:


Thanks Richard, It seems to be working now. The files can be
several Gigabytes.


Greetings.


El 17/04/18 a las 13:10, Richard Vézina escribió:

How big?

https://www.bookstackapp.com/docs/admin/upload-limits/
<https://www.bookstackapp.com/docs/admin/upload-limits/>

https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size
<https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size>

Quote from the above link:
For “hard” limit client_max_body_size directive must be used. The
value of zero for this directive specifies that no restrictions
on file size should be applied.


Have a look at your nginx config upload_max_file_size and
client_max_body_size

I can't find the default nginx limit, but I think upload are
around 5 mg, I recall having issue long time ago about upload
limit and the attachement was a little over 5 meg, so...

In the link you provide there not seems to have limit overriding
default, so my guess is that your file is bigger than the
client_max_body_size

Good luck

Richard

On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar Caballero Díaz
<carlos.caball...@cfg.jovenclub.cu
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:

Hi, I have a web2py + nginx setup

(https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh

<https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh>)
and I need to upload big files to my application, the app is
working ok with the built in server, but with nginx the form
submission fails with no response when there are big files.

Any tip for solving this?


Greetings.

-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py+unsub

Re: [web2py] web2py, nginx and big files

2018-04-18 Thread Carlos Cesar Caballero Díaz
Thanks Richard, It seems to be working now. The files can be several 
Gigabytes.



Greetings.


El 17/04/18 a las 13:10, Richard Vézina escribió:

How big?

https://www.bookstackapp.com/docs/admin/upload-limits/

https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size

Quote from the above link:
For “hard” limit client_max_body_size directive must be used. The 
value of zero for this directive specifies that no restrictions on 
file size should be applied.



Have a look at your nginx config upload_max_file_size and 
client_max_body_size


I can't find the default nginx limit, but I think upload are around 5 
mg, I recall having issue long time ago about upload limit and the 
attachement was a little over 5 meg, so...


In the link you provide there not seems to have limit overriding 
default, so my guess is that your file is bigger than the 
client_max_body_size


Good luck

Richard

On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar Caballero Díaz 
<carlos.caball...@cfg.jovenclub.cu 
<mailto:carlos.caball...@cfg.jovenclub.cu>> wrote:


Hi, I have a web2py + nginx setup

(https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh

<https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh>)
and I need to upload big files to my application, the app is
working ok with the built in server, but with nginx the form
submission fails with no response when there are big files.

Any tip for solving this?


Greetings.

-- 
Resources:

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
<http://github.com/web2py/web2py> (Source code)
- https://code.google.com/p/web2py/issues/list
<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
<mailto:web2py%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py, nginx and big files

2018-04-17 Thread Carlos Cesar Caballero Díaz
Hi, I have a web2py + nginx setup 
(https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh) 
and I need to upload big files to my application, the app is working ok 
with the built in server, but with nginx the form submission fails with 
no response when there are big files.


Any tip for solving this?


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Off Topic:Pony

2018-03-15 Thread Carlos Cesar Caballero Díaz
Personally I will only see PonyORM as a viable tool if they finally 
implement a working migrations tool.


Greetings.


El 16/03/18 a las 00:22, Massimo Di Pierro escribió:
yes this it nice. We should take the time to determine which features 
of pydal are missing in ponyorm if any. If not maybe web3py should be 
based on ponyorm.


On Thursday, 8 March 2018 17:47:39 UTC-6, greenpoise wrote:

Nice indeed. Thanks

On Wednesday, March 7, 2018 at 3:19:14 AM UTC-8, Ramos wrote:

Nice ...
https://ponyorm.com/

--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-11 Thread Carlos Cesar Caballero Díaz



PS: For the love of all that's holy,  please don't name it web3py.

:)


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] POST api return 405

2018-02-01 Thread Carlos Cesar Caballero Díaz
Hi, is a little difficult to get an idea of the issue without some code 
to reproduce it.


Greetings.


El 01/02/18 a las 14:04, yogeshwar khalkar escribió:
I have POST api in web2py I am accessing it using angular httpclient 
post service but, it returns 405(method not allow) error.


can anybody give me solution for it

Thanks
--
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 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: [web2py] Date widget seems boroken on 2.16.1

2018-01-04 Thread Carlos Cesar Caballero Díaz
Thanks Yoel, the issue is in the Welcome app Spanish translation, in the 
released 2.16.1 version and in the master branch, I will try to submit a 
PR with the fix asap.


Greetings.


El 04/01/18 a las 13:14, Yoel Benítez Fonseca escribió:
Go to the languages/*.py and search for a translatión of the date 
format. Also edit


web2py_ajax.html


It is posible have being edited/modified.

On Wed, Jan 3, 2018 at 12:20 PM, Carlos Cesar Caballero Díaz 
<carlos.caball...@cfg.jovenclub.cu> wrote:
Hi guys, is just me, or the date widget seems broken on 2.16.1 (see 
attached image)? Greetings.

--
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 
<mailto:web2py+unsubscr...@googlegroups.com>. For more options, visit 
*MailScanner ha detectado un intento de fraude en la siguiente p�gina 
web "groups.google.com". /No/ conf�e en esta p�gina web:* 
https://groups.google.com/d/optout <https://groups.google.com/d/optout>.

--
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 
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
<https://groups.google.com/d/optout>.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Date widget seems boroken on 2.16.1

2018-01-03 Thread Carlos Cesar Caballero Díaz
Hi guys, is just me, or the date widget seems broken on 2.16.1 (see 
attached image)?



Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} [web2py] Showing images or thumbnails in grid view

2017-12-27 Thread Carlos Cesar Caballero Díaz
Hi Jason, take a look at the represent param in the field constructor 
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-constructor


Greetings.


El 27/12/17 a las 11:13, jcrowe escribió:
I am using grids as a photo manager of sorts. I am looking for a way 
to show the image inline in the grid, rather than needing to click the 
view button to see the images. I have searched around but I didn't 
find anything. I figure it's either very simple and I'm the only one 
that doesn't know how to do it or I am not using the right 
terminology. :D


Thanks,
Jason
--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Cropper.js plugin

2017-12-27 Thread Carlos Cesar Caballero Díaz
Hi guys, I have been working in some applications in this days and I 
have been working in a plugin for integrating Cropper.js 
(https://fengyuanchen.github.io/cropperjs/) in web2py, you can find it 
here https://github.com/cccaballero/web2py-cropperjs


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} Re: {Disarmed} Re: {Disarmed} [web2py] Re: Get reference format representation on dal callbacks

2017-12-22 Thread Carlos Cesar Caballero Díaz

Thank you so much!!!

Greetings.


El 19/12/17 a las 11:49, Anthony escribió:
On Tuesday, December 19, 2017 at 8:48:15 AM UTC-5, Carlos Cesar 
Caballero wrote:


Hi Massimo, thanks for your answer, basically I need the row
object instead of the set in the after update callback, I have
managed to do this passing the table object to my plugin and
making a query. But there is a way to know the table that belongs
an after update callback without passing explicitly the table object?

Let's say something like:

model:

from mymoduleimport my_after_update_callback

db.mytable._after_update.append(my_after_update_callback)

mymodule:

def my_after_update_callback(s,f): row = get_callback_row()

 table = get_callback_table()



Updates do not involve fetching the updated records from the database, 
so the DAL does not have any Row objects to provide to the callback. 
If you need the updated records, you'll have to fetch them yourself 
within the callback based on the Set:


|
rows =set.select()
|

Regarding the tablename, you can extract it from the Set as well. In 
most cases, something like the following should work:


|
table =set.query.first.table
|

Note, that will be the actual DAL Table object -- if you want the 
name, you can do set.query.first.tablename.


Anthony
--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} [web2py] Re: Get reference format representation on dal callbacks

2017-12-19 Thread Carlos Cesar Caballero Díaz
Hi Massimo, thanks for your answer, basically I need the row object 
instead of the set in the after update callback, I have managed to do 
this passing the table object to my plugin and making a query. But there 
is a way to know the table that belongs an after update callback without 
passing explicitly the table object?


Let's say something like:

model:

from mymoduleimport my_after_update_callback

db.mytable._after_update.append(my_after_update_callback)

mymodule:

def my_after_update_callback(s,f): row = get_callback_row()

table = get_callback_table()


There is another thing:

Related to this, I am working with the experimental haystack plugin for 
whoosh, but I have made some changes (for using the whoosh backend with 
python3 and other things), but I look that the Github project page has 
no updates and there are unattended pull requests. Is the haystack 
plugin dead?


Greetings.

El 16/12/17 a las 16:44, Massimo Di Pierro escribió:
Can you please provide a complete example of what you want using 
pseudocode?


On Wednesday, 6 December 2017 10:31:57 UTC-6, Carlos Cesar Caballero 
wrote:


Hi, I am building a module (plugin) that is using some "after insert"
and "after uptade" dal callbacks. The tables has references
(relations)
and I need to obtain the referenced table string format instead of
it's
id in the callback, and I need it to be generic. How can I achieve
that?

Greetings.

--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: grid IS_IMAGE validator behavior

2017-12-07 Thread Carlos Cesar Caballero Díaz
Yes, first I crete the entry using the grid add form without problems, 
when I open the edit form, the image is in the field, but when I submit 
the form without changes, the validator says that there is no image.



El 06/12/17 a las 14:32, Dave S escribió:



On Wednesday, December 6, 2017 at 11:06:02 AM UTC-8, Carlos Cesar 
Caballero wrote:


That's the issue, I don't want null values, the user shouldn't
remove the image without upload a new one, but when I use the
grid's edit form, the validation error is triggered if the user
edit another field, so the form can't be submitted without
uploading a new image.



Does the edit form ... and that field in particular ... get 
pre-populated?  If so, the existing value should be what is submitted.


But I'm a bit vague about SQLFORM.grid(), so I'm not going to be much 
help.


/dps

El 06/12/17 a las 13:06, Val K escribió:

yes, if you want to allow null-value  - use IS_EMPTY_OR wrapper
IS_EMPTY_OR(IS_IMAGE(...))

On Wednesday, December 6, 2017 at 8:48:06 PM UTC+3, Carlos Cesar
Caballero wrote:

Hi, I have being using web2py for some time, but I don't use
files too
often, now I am using the IS_IMAGE, but using the grid on
edit it's
throwing a validation error if the user don't set a new image.

It's a bug or is the default behavior?

-- 
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+un...@googlegroups.com .
For more options, visit *MailScanner ha detectado un intento de
fraude en la siguiente p�gina web "groups.google.com". /No/
conf�e en esta p�gina web:* *MailScanner ha detectado un intento
de fraude en la siguiente página web "groups.google.com". /No/
confíe en esta página web:* *MailScanner ha detectado un intento
de fraude en la siguiente p�gina web "groups.google.com". /No/
conf�e en esta p�gina web:* https://groups.google.com/d/optout
.


--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} [web2py] Re: grid IS_IMAGE validator behavior

2017-12-06 Thread Carlos Cesar Caballero Díaz
That's the issue, I don't want null values, the user shouldn't remove 
the image without upload a new one, but when I use the grid's edit form, 
the validation error is triggered if the user edit another field, so the 
form can't be submitted without uploading a new image.



El 06/12/17 a las 13:06, Val K escribió:

yes, if you want to allow null-value  - use IS_EMPTY_OR wrapper
IS_EMPTY_OR(IS_IMAGE(...))

On Wednesday, December 6, 2017 at 8:48:06 PM UTC+3, Carlos Cesar 
Caballero wrote:


Hi, I have being using web2py for some time, but I don't use files
too
often, now I am using the IS_IMAGE, but using the grid on edit it's
throwing a validation error if the user don't set a new image.

It's a bug or is the default behavior?

--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] grid IS_IMAGE validator behavior

2017-12-06 Thread Carlos Cesar Caballero Díaz
Hi, I have being using web2py for some time, but I don't use files too 
often, now I am using the IS_IMAGE, but using the grid on edit it's 
throwing a validation error if the user don't set a new image.


It's a bug or is the default behavior?

--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Get reference format representation on dal callbacks

2017-12-06 Thread Carlos Cesar Caballero Díaz
Hi, I am building a module (plugin) that is using some "after insert" 
and "after uptade" dal callbacks. The tables has references (relations) 
and I need to obtain the referenced table string format instead of it's 
id in the callback, and I need it to be generic. How can I achieve that?


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2017-12-05 Thread Carlos Cesar Caballero Díaz
Thanks for your answer Massimo, I will study if is feasible to implement 
that for this project, or I will use a 3rd party provider.


Greetings.


El 02/12/17 a las 15:22, Massimo Di Pierro escribió:
web2py can be used as Oauth/Open ID consumer but I do not believe 
anybody has written a provider app.


On Wednesday, 29 November 2017 11:13:57 UTC-6, Carlos Cesar Caballero 
wrote:


Hi, is out there a working web2py Oauth2 or OpenID provider
implementation? The Idea is to use an intranet web2py-bassed
application
as a auth provider for other services. I know that web2py comes
with CAS
integrated, but there are not too many software with CAS support.

Greetings.

--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py OpenID or Oauth2 provider

2017-11-29 Thread Carlos Cesar Caballero Díaz
Hi, is out there a working web2py Oauth2 or OpenID provider 
implementation? The Idea is to use an intranet web2py-bassed application 
as a auth provider for other services. I know that web2py comes with CAS 
integrated, but there are not too many software with CAS support.


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} [web2py] Re: Future of web2py

2017-11-11 Thread Carlos Cesar Caballero Díaz
Golang is a restrictive technology, we can't use it from countries like 
Cuba. From my point of view, it's not a good idea.


Greetings.


El 04/11/17 a las 12:09, Vinhthuy escribió:
Here's a radical and possibly stupid idea for Massimo to think about 
on a Saturday morning.


Forget web3py.  Think about web2go.

There's lots of promise today for a good full-stack Golang framework.  
The Golang folks eschew the notion of full-stack frameworks, but I 
don't think many of them get it.  If you have an intuitive, 
easy-to-use, and relatively performant CRUD, full-stack framework in 
Golang, I guarantee you it's going to be a hit.


My lightweight web/networking apps these days are written in Golang.  
The beauty of it is that it's so easy to get deployed. Golang's 
builtin http handling is rock solid. There's no need for gunicorn, 
uwgsi, etc.


About Python, I know many people are still on Python 2, but to me it's 
legacy.  Many people completely moved on to Python 3.  That makes 
web2py very outdated.


The notion of Web3py is still a good idea *right now*.  But by the 
time you can deliver Web3py, it is likely that it will be 
technologically outdated.



So, there it is.  Web2Go.  You've learned many lessons from having 
built web2py.  These experience will make your CRUD full-stack 
framework very meaningful.



--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] parse_as_rest represent

2017-10-05 Thread Carlos Cesar Caballero Díaz

Ok guys, I have solved it using:

    def GET(*args, **vars):
    patterns = 'auto'
    parser = db.parse_as_rest(patterns, args, vars)
    if parser.status == 200:
    return dict(content=list(parser.response.render()))
    else:
    raise HTTP(parser.status, parser.error)

There is a better way to do it?


Greetings.


El 04/10/17 a las 13:26, Carlos Cesar Caballero Díaz escribió:
Hi, can I use the represent feature (or some alternative) for specify 
how some specific data should be exposed in my parse_as_rest() rest api?


Let's say by example, that I have some field wich use uppercase, but 
for some reason I need it at lowercase in the rest api.


Greetings.



--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] parse_as_rest represent

2017-10-04 Thread Carlos Cesar Caballero Díaz
Hi, can I use the represent feature (or some alternative) for specify 
how some specific data should be exposed in my parse_as_rest() rest api?


Let's say by example, that I have some field wich use uppercase, but for 
some reason I need it at lowercase in the rest api.


Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-31 Thread Carlos Cesar Caballero Díaz
Thank you all you guys, right now I am a little busy with other 
projects, but I will follow your suggestions, and will post my results.



Greetings.


El 22/08/17 a las 09:57, Richard Vézina escribió:
Will try to wrapp up my stuff... It base on web2py.test, but I add a 
test launcher and extract save pytest output into a text file to be 
consulted after the ending of the test... I do include this file as a 
test report into my app for the client to see that all tests passed... 
It works with selenium/splinter, so test are write with splinter 
API... So it kind of "merge" of web2py.test and welcome_augmented 
because of splinter usage... It use chromedriver or geckodriver (both 
tested).


I can share that with you...

I will create a dummy app and a basic test case...

Richard

On Mon, Aug 21, 2017 at 5:26 PM, Dave S > wrote:




On Monday, August 21, 2017 at 1:53:51 PM UTC-7, Dave S wrote:



On Friday, August 18, 2017 at 10:35:01 AM UTC-7, Carlos Cesar
Caballero wrote:

I have been facing with that issue too, the error is
because there are no logged in user, and the redirect is
raised, the main problem with this approach is that I have
been not able to correctly log in a user...

Being honest, I haven't found a satisfactory way for
testing web2py applications.

Greetings.



If you're using the webclient tool, as in the book examples,
there is provision for logging in clients.  In one of his
posts answering a test question, Massimo recommends putting
the test code in modules rather than controllers to avoid
exposing the test interface.


(no anchor on the subheader)


If you need some end-to-end testing using different environments,
there's browserling.com :

[clipped from one of my old posts] if you need to do testing of
your website in a lot of browsers, but don't have that many in
your own lab,
>
might be helpful.  They have an array of target machines with
different OS/browser combinations and give you a virtual window to
them.

To access all the combinations requires subscribing, but the
prices aren't too bad.  Certainly less than buying 10 used
laptops.  For free access, the choices are limited and you only
get a 3 minute session each try, but even that might be helpful. 
Additional features include their Bug Hunter tool, but maybe

you've already been testing with Selenium or another tool. There
are also tools for recording and sharing and screenshots.

/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
.
For more options, visit *MailScanner ha detectado un intento de
fraude en la siguiente p�gina web "groups.google.com". /No/ conf�e
en esta p�gina web:* https://groups.google.com/d/optout
.


--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread Carlos Cesar Caballero Díaz
I have been facing with that issue too, the error is because there are 
no logged in user, and the redirect is raised, the main problem with 
this approach is that I have been not able to correctly log in a user...


Being honest, I haven't found a satisfactory way for testing web2py 
applications.


Greetings.


El 18/08/17 a las 13:11, António Ramos escribió:

anybody help  please ?
regards

2017-08-18 15:20 GMT+01:00 António Ramos >:


this does not work.
*
*
*@auth.requires(True, requires_login=  request.is_local)*
def execdal():
return dict(ret=1)


my pytest function
def test_execdal(web2py):
result = web2py.run('default', 'execdal', web2py)


i get an error about redirected
Imagem inline 1

2017-08-18 12:46 GMT+01:00 António Ramos >:

Hello i+m testing a controller with pytest

if my controller is protected like

@auth.requires.login or @auth.requires_membership how can i
test it ?


def test_controller(client):


client.get('/default/controller')
...
...


Regards




--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: custom filter in grid

2017-08-15 Thread Carlos Cesar Caballero Díaz

Thanks Leonel, I will go with this.


Greetings.


El 14/08/17 a las 11:34, Leonel Câmara escribió:
Here's one way to do it. Note that when I start having this kind of 
problems I usually stop using the grid and make a custom solution.
In the grid, the searchable argument, can be a function. In that case 
it gets the fields and keywords and its responsibility is to generate 
and return a query. You can disable advanced_search and then only have 
a search field. Then you will have a searchable function which will 
detect if one of the keywords entered in the search is a date, if that 
is the case then you will make a query where only records from that 
date are acceptable.


Your controller function would be something like this:

|
defmygrid():
importdatetime


defsearchable(fields,keywords):
query =db.my_table.id >0:
forkeyword inkeywords:
date =None
try:
date =datetime.datetime.strptime(keyword,'%Y-%m-%d')
exceptValueError:
pass
ifdate:
query &=db.my_table.created_on ==date
else:
# this is just an example
query &=db.my_table.name.like('%'+keyword 
+'%',case_sensitive=False)

returnquery


return{'grid':SQLFORM.grid(db.my_table,searchable=searchable,advanced_search=False)}
|


--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: custom filter in grid

2017-08-14 Thread Carlos Cesar Caballero Díaz
Yes, that's a possible solution, but I don't want to duplicate 
information that is already there, I just want to find a way to use it 
in the way I need.


Greetings.


El 11/08/17 a las 16:07, 黄祥 escribió:
just an idea why not create the new field with the date type with 
default value = request.now? so that user can search through the new 
date field


best regards,
stifan
--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} [web2py] Re: custom filter in grid

2017-08-11 Thread Carlos Cesar Caballero Díaz
Sitfan, thanks for your answer, I know about that, but is annoying for 
the users to put datetime values twice and they are asking about use 
only the day, they don't need to filter in that grid by date and time, 
just by date.


Greetings.

El 10/08/17 a las 20:15, 黄祥 escribió:

in grid search form field you can use :

table.table_datetime >= "2017-04-04 00:00:00" and table.table_datetime 
<= "2017-04-04 24:00:00"
table.table_datetime >= "2017-04-04 00:00" and table.table_datetime <= 
"2017-04-04 24:00"
table.table_datetime >= "2017-04-04 00" and table.table_datetime <= 
"2017-04-04 24"


or

table.table_datetime >= "2017-04-04 00:00:00" and table.table_datetime 
< "2017-04-05 00:00:00"
table.table_datetime >= "2017-04-04 00:00" and table.table_datetime < 
"2017-04-05 00:00"
table.table_datetime >= "2017-04-04 00" and table.table_datetime < 
"2017-04-05 00"


best regards,
stifan
--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] custom filter in grid

2017-08-10 Thread Carlos Cesar Caballero Díaz
Hi guys, I have a datetime field but I need (using the grid) filter it 
as a date field, so, if I put something like:


mydatetime = 2017-04-04

I need to show all records with datetimes that belongs to this day.

Greetings.

--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} Re: [web2py] Re: web2py and SEO

2017-06-15 Thread Carlos Cesar Caballero Díaz
Hi, it seems to be working in my apps, can you share how are you using 
it, and the web2py version?


Greetings.


El 14/06/17 a las 15:21, rajjmatt...@gmail.com escribió:
Did anyone had any success on inserting metadata on layout or SEO 
( http://www.web2pyslices.com/slice/show/2048/simple-seo) plugins? It 
doesn't seem to work at all.



On Friday, January 3, 2014 at 9:25:14 AM UTC-5, Gael Princivalle wrote:

Hi Bruno.

In a same page where you make translations, how can you manage
meta informations for all languages ?
With a if T.accepted_language you can set different values, but
when you give your site to a tool like that :
http://www.seoutility.com/it/tools/google/sitemap_generator.aspx

it see only meta informations in default language.

|
page title (response.meta.title)
page keywords (response.meta.keywords)
page description (response.meta.description)
|

How do you manage this argument ?

Thanks.


Il giorno venerdì 6 agosto 2010 15:13:58 UTC+2, rochacbruno ha
scritto:

SEO is basically done through:

page title (response.meta.title)
page keywords ( response.meta.keywords)
page description ( response.meta.description)

plus:
the robots.txt file under website root directory,
good practices for creating links and inserting images,
Semantic html markup ( I mean always including "name" , "alt",
"title" for relevant tags),
and also using correctly the most relevant tags (h1,h2,h...,
,  etc )

And one of the most important thing: Build a sitemap [1]

web2py is ready to do all that, but we need to do it all from
the scratch, what we need now is a helper or a mechanism to
make it more user friendly.As is done by the plugin
ALL-IN-ONE-PACK-SEO on wordpress for example.


[1] http://en.wikipedia.org/wiki/Site_map






2010/8/6 mdipierro 

web2py does not care. I do not think there is any
difference between
frameworks about this. The issue how you use them.

web2py provides response.meta that combined with the
default layout
allows you to set

response.meta.keywords
response.meta.description
response.meta.author

If you have recommendations about specific features that
need to be
implemented at the framework level, let us know.






On Aug 6, 6:13 am, puercoespin

wrote:
> Is web2py designed for a good practices about SEO? Are
some frameworks
> SEO-friends and others no SEO-friends and, if this is
true, are web2py
> SEO-friend?
>
> Thanks




-- 


http://rochacbruno.com.br

--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


{Disarmed} Re: {Disarmed} Re: [web2py] Re: btw: great job

2017-04-26 Thread Carlos Cesar Caballero Díaz

+1, even better, +100 :)

Greetings.


El 26/04/17 a las 15:53, Alfonso Serra escribió:

Great initiative, Lucas.

My thanks to Massimo, Anthony, Niphlod and everybody helping and 
collaborating in the past, present and future of this wonderful framework.


--
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 
.
For more options, visit *MailScanner ha detectado un intento de fraude 
en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta 
p�gina web:* https://groups.google.com/d/optout 
.


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] testing applications

2017-04-16 Thread Carlos Cesar Caballero Díaz
Hi, there is no problem using the webclient approach, the problem is 
when I am using the web2pyenv approach ( simulating web2py shell 
environment), I find it very useful in some cases, but I can't use it 
with pages that requires registered users.


Greetings.

El 15/04/17 a las 20:54, Marlysson Silva escribió:

You tried use the client web programatically of web2py to submit a post to 
users/login using your credentials?



--
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.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >