[web2py] Re: github - please follow

2013-09-08 Thread Marcio Andrey Oliveira
done.

-- 

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


[web2py] Re: Invalid request with special chars in URL

2013-09-04 Thread Marcio Andrey Oliveira
Can't you send encoded parameters (say in Bas64 or hexadecimal) and decode 
them inside the methods?

Regards.

On Wednesday, September 4, 2013 8:24:26 PM UTC-3, Wonton wrote:
>
> Hello everyone!
>
> I've developed a web2py backend which is given me problems with special 
> chars in URLs. I'm a newbie with web2py so maybe I'm missing something very 
> easy, sorry if that is the case ;-).
>
> These are the details of my app.
>
> - I have no routes.py file.
>
> - In controllers/default.py I have this:
>
>
> ...
> public_services=Service()
> private_services=Service()
> ...
> def public_call(): 
> return public_services()
>
> @auth.requires_login()
> def private_call(): 
> return private_services()
> ...
> @public_services.json
> def public_function_1(var1, var2, var3):
> ...
> @private_services.json
> def private_function_1(var1, var2):
> ...
>
>
> - I call these methods this way:
>
> http://mydomain/myapp/default/public_call/json/
> public_function_1/var1/var2/var3
> http://mydomain/myapp/default/private_call/json/
> private_function_1/var1/var2
>
> - Everything is working except if my URL contains special chars, (var1, 
> var2 or var3 can contain 'ñ' or accents, coded with %...) then I get an 
> "invalid request" error.
>
> - After reading all posts related to this issue I'm a bit lost, sorry. 
> I've tried to create a routes.py and the only line inside it is this:
> routes_apps_raw=['myapp']
>
> But obviously this is not enough because I have the same problem yet.
>
> Besides this, I don't understand the "request.raw_args" thing, am I 
> supposed to do anything with that? I can't see any request.raw_args in my 
> code.
>
> Thank you very much and kind regards!
>
>

-- 

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


[web2py] Re: URL filter chain

2013-08-07 Thread Marcio Andrey Oliveira
Thank you all.

That will solve what I want to do.

Best regards.

On Monday, August 5, 2013 11:15:59 PM UTC-3, Marcio Andrey Oliveira wrote:
>
> Hi.
>
> In Java there is the concept of URL filter chain (implemented by one or 
> more servlets). These filters may intercept requests to a specif URL or a 
> bunch of them prior the request arrive to the controller(servlet) 
> responsible to handle it.
>
> Is there such concept on web2py?
>
> How could I implement it?
>
> Thank you in advance.
>

-- 

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




[web2py] Re: URL filter chain

2013-08-06 Thread Marcio Andrey Oliveira
So I don't know what to do. I was reading about the conditional models but 
it doesn't seem to be what I want.

I will try to explain (forgive my bad English):

>From my own application I want to be able to intercept requests to some / 
all URLs (it varies based on what I want to do) so that I could decide if I 
would log the incoming data, redirect or drop it it based in some criteria 
(is mobile, is from some country, and so on) or even change the request 
parameters prior it arrives to the target URL.

But I want to do these things without to incorporate this code into my 
controllers.

On Java this is done using servlet filters.

Any suggestion? A sampke or doc showing this kind of situation?

Thanks.

-- 

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




[web2py] Re: URL filter chain

2013-08-05 Thread Marcio Andrey Oliveira

Thank you both for replying.

It seems wsgi middleware fits better my needs.

Regards.


Em segunda-feira, 5 de agosto de 2013 23h15min59s UTC-3, Marcio Andrey 
Oliveira escreveu:
>
> Hi.
>
> In Java there is the concept of URL filter chain (implemented by one or 
> more servlets). These filters may intercept requests to a specif URL or a 
> bunch of them prior the request arrive to the controller(servlet) 
> responsible to handle it.
>
> Is there such concept on web2py?
>
> How could I implement it?
>
> Thank you in advance.
>

-- 

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




[web2py] URL filter chain

2013-08-05 Thread Marcio Andrey Oliveira
Hi.

In Java there is the concept of URL filter chain (implemented by one or 
more servlets). These filters may intercept requests to a specif URL or a 
bunch of them prior the request arrive to the controller(servlet) 
responsible to handle it.

Is there such concept on web2py?

How could I implement it?

Thank you in advance.

-- 

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




[web2py] Re: Mobile and Tablets detection

2013-07-20 Thread Marcio Andrey Oliveira
I have no idea how complete WURFL is but it it seems that 
request.user_agent()  will do the job.

Regards.

-- 

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




[web2py] Re: MSSQL connection error

2013-07-18 Thread Marcio Andrey Oliveira
Hi.

I have no experience with web2py but it seems it's not able to read some 
file.

Try to use strace command to determine what file is missing then you can 
search on the net which package contains the missing file.

You can try something like 

strace  -o output.txt

or 

strace -p  -o output.txt

Hope it helps.


-- 

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




[web2py] Re: Mobile and Tablets detection

2013-07-18 Thread Marcio Andrey Oliveira
vince, thank you for answering me.

Regards.

On Wednesday, July 17, 2013 3:12:47 PM UTC-3, Marcio Andrey Oliveira wrote:
>
> Hi.
>
> I'm wondering whether exists a python project that detect mobiles and 
> tables that be as good and as up to date as http://mobiledetect.net/
>
> Thanks.
>

-- 

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




Re: [web2py] Re: Mobile and Tablets detection

2013-07-18 Thread Marcio Andrey Oliveira
Niphlod, I'm fairly new to web2py (I'm reading the official book but I'm
still on page #160 of 614 pages) and I'm trying to collect the most
possible information that I think relevant for what I'm planning to do.

Even if I had read entirely book I believe that not all information about
web2py will be there. That's why I'm asking.

All information I gather will help me decide which framework better fits my
needs.

I understood from your last email that I could call
request.user_agent()and then I should figure out by myself whether
it's a mobile user agent or
not what I don't think feasible. The mobile detect library has methods like
*is_mobile()*, ? and *is_android()* that make life easier.

Thank you for taking your time to answer my post. I really appreciate that.



Angelo, I'm glad to hear that.

Could you please show me a snippet on how to test if a browser is mobile?

Thank you a lot.

-- 

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




[web2py] Re: Mobile and Tablets detection

2013-07-17 Thread Marcio Andrey Oliveira
Hi.

Thank you for replying.

I really don't know all user agents and I prefer to rely on a library that 
automatically detects whether the users is browsing from a regular 
computer, a mobile or a tablet. The greatest benefit (IMHO) from 
mobiledetect is that it's regularly updated to incorporate new devices.

If you take a look at mobile detect source code you will see that are 
around 1,300 devices up to now.

I tough I could try to convert its code from PHP to python but as I'm not 
that good on python I wondered if someone in python community have made a 
similar library / module.

Regards.

On Wednesday, July 17, 2013 3:12:47 PM UTC-3, Marcio Andrey Oliveira wrote:
>
> Hi.
>
> I'm wondering whether exists a python project that detect mobiles and 
> tables that be as good and as up to date as http://mobiledetect.net/
>
> Thanks.
>

-- 

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




[web2py] Mobile and Tablets detection

2013-07-17 Thread Marcio Andrey Oliveira
Hi.

I'm wondering whether exists a python project that detect mobiles and 
tables that be as good and as up to date as http://mobiledetect.net/

Thanks.

-- 

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




[web2py] Re: How to handle multiple domains with the same application

2013-07-16 Thread Marcio Andrey Oliveira
Derek is right. He explained exactly what I want (sorry my bad English).

Massimo, thanks for the solution.

I started studying web2py these days and it seems the right tool for the 
work.

Thank all.

On Sunday, July 14, 2013 8:22:31 PM UTC-3, Marcio Andrey Oliveira wrote:
>
> Hi.
>
> Currently I have 3 arcade sites: 1 with all kinds of games, 1 with only 
> girls games and another one with only escaping games.
>
> Each site is running in a separated script, and worst than that is that I 
> have some games in girls game site and on escaping games sites that exist 
> on general arcade site. It means I'm expending database and disk space with 
> duplicated date.
>
> I want to make one application that will receive requests from all domains 
> and according to the domain, it will show a different look and feel with 
> its respective games.
>
> How do I do it in web2py? I mean, how do I handle resources based in the 
> domain user typed in browser? 
>
> Regards.
>

-- 

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




[web2py] How to handle multiple domains with the same application

2013-07-14 Thread Marcio Andrey Oliveira
Hi.

Currently I have 3 arcade sites: 1 with all kinds of games, 1 with only 
girls games and another one with only escaping games.

Each site is running in a separated script, and worst than that is that I 
have some games in girls game site and on escaping games sites that exist 
on general arcade site. It means I'm expending database and disk space with 
duplicated date.

I want to make one application that will receive requests from all domains 
and according to the domain, it will show a different look and feel with 
its respective games.

How do I do it in web2py? I mean, how do I handle resources based in the 
domain user typed in browser? 

Regards.

-- 

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