db().select(db.table.ALL, orderby=~db.table.desc) # the '~' makes the order
descending; see P.146 in the book;

On Thu, Dec 18, 2008 at 8:24 PM, Alexandre Miguel de Andrade Souza <
[email protected]> wrote:

> Massimo,
>
> I buy the pdf book, but dont found how orderby in descendent order in DAL
> In sql;
>
> selet * from table order by table.field desc
>
>
>
> On Thu, Dec 18, 2008 at 4:59 PM, mdipierro <[email protected]>wrote:
>
>>
>> simple way to block attackers on Linux
>>
>> 1) give sudo access to user running web2py to /sbin/iptables
>> 2) create a new app, let's call it "gatekeeper" with the following
>> default.py controller
>>
>>     def block():
>>         import os
>>         os.system('sudo iptables -I INPUT -s %s -j DROP' %
>> request.client)
>>
>> 3) create a web2py routes.py file that maps suspicious URLs into the
>> above action
>>
>>     routes_in=[
>>        ['.*\.\..*','/gatekeeper/default/block'], # block clients
>> attempting a directory traversal
>>        ['.*\.php','/gatekeeper/default/block'], # block clients
>> looking for php scripts
>>     ]
>>
>> you can add your own filters using regular expressions.
>>
>> Massimo
>>
>>
>>
>>
>
>
> --
> Atenciosamente
>
> --
> =========================
> Alexandre Miguel de Andrade Souza
> Diretoria de Otimização de Processos do SISEMA
> Secretaria de Estado de Meio Ambiente e Desenvolvimento Sustentável
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to