You can do
myrows = gaelike(db.().select(),text)
if you define:
def gaelike(rows,text):
def condition(row):
return len([k for k,v in row.items() if isinstance(v,str)
and text in v])>0
return rows.find(condition)
On Aug 3, 2:53 pm, Bruno Rocha wrote:
> 'Bad Engli
'Bad English'*2 ... I mean my english is worse than yours.
your method get_last_post_with_search() can be replaces with the solution
using .find() posted here,
now we have to find ways to port use the not operators ("!=" and "~") and
mixed queries (db.image.id==id)&(db.image.title=='').
Image
'Bad English '*2
2010/8/3 Martin.Mulone
> First my appologies for my bad english, spanish is my primary
> language. I was reading about GAE
> http://web2py.com/AlterEgo/default/show/248
> . Yes i have to transform many queries :P. I have many ideas, many of
> them i dont know how to implement li
Thanks Massimo!
I am learning a lot about the way you use lambda: in web2py.
now my search is really faster.
is there any chance to do:
myrows = db(..).select().GAELIKE('string') or
myrows = db(...).select().like(string) or may be
myrows = GAELIKE(db.().select(),'string')
p
No apologies. Your work is excellent.
On Aug 3, 1:48 pm, "Martin.Mulone" wrote:
> First my appologies for my bad english, spanish is my primary
> language. I was reading about GAEhttp://web2py.com/AlterEgo/default/show/248
> . Yes i have to transform many queries :P. I have many ideas, many of
>
First my appologies for my bad english, spanish is my primary
language. I was reading about GAE http://web2py.com/AlterEgo/default/show/248
. Yes i have to transform many queries :P. I have many ideas, many of
them i dont know how to implement like layouts system, layouts over
layouts, i dont think
Another necessary app:
Currently , there are so few python hosting providers especially for shared
hosting.
We need a Hosting Control panel for web2py.
Even Web2py admin modifcation with different admins for each projects should
work. But there may be security concern as web2py allows full pytho
Ok Back to Topic
Instant Press , looks good
With some work , that one could become a standard Blog for Web2py .
mulone martin , you should be branding it .
Get a domain for it as a dedicate site , and to some of us who want to
contribute , assign task at google code.
Prof Massimo , your reddit c
This code is equivalent to yours, also runs on GAE, and it is faster:
@staticmethod
def searchPages(string=None,nfmessage='Nothing found with %s'):
pages = db(db.plugin_wiki_page.id>0).select().find(lambda row:
\
string and (string in row.slug or string in
row.bod
+1
+1
On Aug 2, 12:16 pm, Phyo Arkar wrote:
> Web2py is Great, Greatest framework that i had ever tried and stick onto it.
>
> But what it is lacking is publicity and lack of KILLER web-apps like those
> Made PHP most popular web-development platform.
> Here are some , what that had made PHP Popular
Thats the way I found to perform LIKE() search in GAE, it is ugly (I know)
but works.. I am waiting for any feature to replace this.
@staticmethod
def searchPages(string=None,nfmessage='Nothing found with %s'):
"""
string: string to be found
"""
found = set()
I use like() to search, but in a near future this could be disabled.
On Aug 2, 1:23 pm, Bruno Rocha wrote:
> Running locally InstantPress looks awesome, quickly, beauty/clean layout and
> I loved the way you treat Admin Buttons.
>
> Congratulations!
>
> But, this could not works on GAE, I saw a l
I am using cube2py(plugin_wiki) as a CMS, for my site I am using markmin to
write in, it is a quite difficult and needs some improvement, I like markin
syntax and I will keep markmin to the site.
besides, is it easy to turn plugin_wiki in to a Simple CMS ( able to run on
GAE).
In Model:
change pl
+1 KPAX
An CMS is essential for adoption of web2py. If you have a small
project for a small customer. You simple can't write an app from
scratch -
even if you use web2py. This is where php really shines.
I would really like to help with the information and interaction
design of kpax.
On Aug 2, 1
The screenshots look really cool. Please keep us posted about
progress. This is better other blogging system I have seen for web2py.
Massimo
On Aug 2, 7:11 am, "Martin.Mulone" wrote:
> I am working in a cms *blog style* the idea is to be simple, ready to
> work, looking professional, and use aja
Running locally InstantPress looks awesome, quickly, beauty/clean layout and
I loved the way you treat Admin Buttons.
Congratulations!
But, this could not works on GAE, I saw a lot of code that is not allowed on
GAE, you are using .like() in get_lats_pots_with_search()
Today I will try to run it
I don know I think yes, but I dont test it.
On Aug 2, 9:45 am, Bruno Rocha wrote:
> Martin, is it able to work on GAE ?
>
> 2010/8/2 Martin.Mulone
>
>
>
>
>
> > I am working in a cms *blog style* the idea is to be simple, ready to
> > work, looking professional, and use ajax and effect in admin
Martin, is it able to work on GAE ?
2010/8/2 Martin.Mulone
> I am working in a cms *blog style* the idea is to be simple, ready to
> work, looking professional, and use ajax and effect in admin panel at
> least. You can see here: http://code.google.com/p/instant-press/ It is
> in developing stat
I am working in a cms *blog style* the idea is to be simple, ready to
work, looking professional, and use ajax and effect in admin panel at
least. You can see here: http://code.google.com/p/instant-press/ It is
in developing state but many things are working. I am working on it in
the last 2 or 3 w
I forgot links
http://noosfero.org/Site
http://radiantcms.org/
Sent from my iPhone
On 02/08/2010, at 07:57, rochacbruno wrote:
> I would like to add another app in that list.This one I am working hard to
> create.
>
> Social Network platform podered by web2py
> Inspired in noosfero app
>
I would like to add another app in that list.This one I am working hard to
create.
Social Network platform podered by web2py
Inspired in noosfero app
RadiantCMS is a great app to use as example
Sent from my iPhone
On 02/08/2010, at 07:35, mdipierro wrote:
> +1
>
> next on todo list new
+1
next on todo list new KPAX
On Aug 2, 5:16 am, Phyo Arkar wrote:
> Web2py is Great, Greatest framework that i had ever tried and stick onto it.
>
> But what it is lacking is publicity and lack of KILLER web-apps like those
> Made PHP most popular web-development platform.
> Here are some , wha
23 matches
Mail list logo