[web2py] Re: Social network plug-in

2011-06-18 Thread niknok
Can someone post this somewhere where resume download is supported? I got a crappy connection right now... On Jun 12, 12:09 am, Massimo Di Pierro wrote: > Here is the source of the facebook clone > >  web2py.app.friends.w2p > 1002KViewDownload

[web2py] Re: relational database example app

2011-06-18 Thread niknok
Google Translate thinks it's Swahili... On Jun 19, 1:40 pm, Vineet wrote: > What is this tongue? (wewe andeya kuja nikufundishe web2py na ubebe > nyama :D) > > It is my sincere thought that web2py group is for sharing the > knowledge within the community. > Kindly write something which others can

[web2py] Re: relational database example app

2011-06-18 Thread Vineet
What is this tongue? (wewe andeya kuja nikufundishe web2py na ubebe nyama :D) It is my sincere thought that web2py group is for sharing the knowledge within the community. Kindly write something which others can understand. For any personal matter, one can use emails. On Jun 18, 11:26 am, kesh

[web2py] Re: help: how can I select from list:string

2011-06-18 Thread Anthony
db(db.testtable.name.contains('kate')).select() See http://web2py.com/book/default/chapter/06#Many-to-Many,-list:,-and-contains . Anthony On Sunday, June 19, 2011 12:10:14 AM UTC-4, hywang wrote: > db.define_table("testtable", > Field("name", "list:string") > ) > > table contents are

[web2py] help: how can I select from list:string

2011-06-18 Thread hywang
db.define_table("testtable", Field("name", "list:string") ) table contents are as following: idname 1 ["jim", "kate"] --- 2 ["tim", "kate"] ---

[web2py] Re: How hard it is to do Non-WebSocket Comet (Long Polling)

2011-06-18 Thread Gregory Hellings
Shouldn't take too much work. In my blog post you can see (and download) a version of comet_messaging.py that works with tornadio. If you want to read in from the Socket.io you'll need to modify it accordingly, but it sounds like it should be straightforward for what you're doing (receiving bursts

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread Mengu
sorry, i have send out the wrong patch. the correct one is here: diff -r c92b70ebb0b9 gluon/dal.py --- a/gluon/dal.py Fri Jun 17 23:40:28 2011 -0500 +++ b/gluon/dal.py Sun Jun 19 04:11:28 2011 +0300 @@ -5476,7 +5476,11 @@ return self for row in self.records:

Re: [web2py] Recognizing and suggesting names

2011-06-18 Thread Pierre Thibault
2011/6/18 Dwayne > Dear all, > > When I type an email address on hotmail or gmail, the email address is > recognized if it exists and also hotmail and gmail make some > suggestions. > The same system exists for tags on Stackoverflow. Suggestions are made > and existing tags are recognized. > > Do

[web2py] Re: Recognizing and suggesting names

2011-06-18 Thread Anthony
There's the autocomplete widget: http://web2py.com/book/default/chapter/07#Autocomplete-Widget -- though, unfortunately it appears not to work in IE. It won't make suggestions but will display items from the db that match what you type. Anthony On Saturday, June 18, 2011 8:36:39 PM UTC-4, Dwa

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread Mengu
hi szimszon and massimo, i have found out what is the problem. when you append the new virtualfield with "db.product.virtualfields.append(MyVirtualFields())" you instantiate it and apply it so for every lazy property, it uses the same MyVirtualFields class pointing to same object in the memory. i

[web2py] Recognizing and suggesting names

2011-06-18 Thread Dwayne
Dear all, When I type an email address on hotmail or gmail, the email address is recognized if it exists and also hotmail and gmail make some suggestions. The same system exists for tags on Stackoverflow. Suggestions are made and existing tags are recognized. Does a similar system exist in web2py

[web2py] Re: Social network plug-in

2011-06-18 Thread François
Thank you Massimo ! François On 11 juin, 18:09, Massimo Di Pierro wrote: > Here is the source of the facebook clone > >  web2py.app.friends.w2p > 1002KAfficherTélécharger

[web2py] About back-references in the google datastore API

2011-06-18 Thread dorasan
Hello dear teachers. I'm a new to web2py and this community. I would like to know that how to write "back-references" using datastore API. Although I'm actually new to datastore API too, I know that there is a way to get entities which refer to the particular entity like this way. ---

[web2py] Re: double insert.

2011-06-18 Thread Massimo Di Pierro
Lots of people are having problems with google code this way. Yet it was answered. ;-) On Jun 18, 3:28 pm, Nils Olofsson wrote: > Hi, > Yes, that was me, sorry, I never got an email stating that it was > posted :( or a response. > Thanks for the quick response. > > BTW, web2py is great, only lear

[web2py] Re: double insert.

2011-06-18 Thread Nils Olofsson
Hi, Yes, that was me, sorry, I never got an email stating that it was posted :( or a response. Thanks for the quick response. BTW, web2py is great, only learning at the moment:) Nils

[web2py] Re: double insert.

2011-06-18 Thread Massimo Di Pierro
Didn't you post this already two days go? Perhaps somebody else did. if form.accepts(request.vars, session,keepvalues=True): db.events.insert(**db.events._filter_fields(form.vars)) is the problem. form.accepts already does insert. remove the second line or do if form.accepts(requ

[web2py] Re: Edit in place vulnerable to injection attack?

2011-06-18 Thread Massimo Di Pierro
There are two types of injections attacks and they are mixed up in this thread. - SQL Injection. DAL prevents those. Period. (unless you are on old version of postgresql) - XSS Injections. {{=anything}} prevents those. Caveats about XSS. If you use a WYSIWYG/HTML editor you are forced to do {{=X

[web2py] double insert.

2011-06-18 Thread Nils Olofsson
Hi, I'm having a problem: web2py: Version 1.96.4 (2011-06-07 21:08:15) Running on Rocket 1.2.2 Database is mysql. I have this code: form =SQLFORM(db.events,fields=['title','venue','starttime','startdate','endtime','enddate','location','image','cost','website','booking','latlng','information'])

[web2py] Edit in place vulnerable to injection attack?

2011-06-18 Thread weheh
.

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread szimszon
OK. I just do not know if creating an issue is enough or should I mention it here... Take time :)

[web2py] Re: edit in place

2011-06-18 Thread weheh
Y On Jun 18, 1:51 pm, Anthony wrote: > Unless you're writing you're own raw SQL, I think the DAL is supposed to > protect against SQL injection attacks. And if you're returning code to any > views, the template engine should escape it properly before rendering. Have > you successfully executed an

[web2py] Re: edit in place

2011-06-18 Thread Anthony
Unless you're writing you're own raw SQL, I think the DAL is supposed to protect against SQL injection attacks. And if you're returning code to any views, the template engine should escape it properly before rendering. Have you successfully executed an actual attack? On Saturday, June 18, 2011

[web2py] Re: Multiple uploads in single form?

2011-06-18 Thread Al Velin
Thank you, I know about him. But I could not get it to work.

[web2py] Edit in place subject to injection attack?

2011-06-18 Thread weheh
changed subject

[web2py] Re: Multiple uploads in single form?

2011-06-18 Thread weheh
Check out these recipes: http://web2pyslices.com/main/default/search?query=file+upload&criteria=title On Jun 18, 12:39 pm, Al Velin wrote: > I was hoping to find some recipe like django tabularinline or other > ready-made widgets...

[web2py] Re: Multiple uploads in single form?

2011-06-18 Thread Al Velin
I was hoping to find some recipe like django tabularinline or other ready-made widgets...

[web2py] edit in place

2011-06-18 Thread weheh
Not exactly a web2py issue, but related. I'm using the jQuery edit in place function http://code.google.com/p/jquery-in-place-editor/ along with a web2py backend. During testing I was able to simulate what I think is called an injection attack, by placing a alert("hello world"); in the replacement

[web2py] Re: Multiple uploads in single form?

2011-06-18 Thread weheh
This can be done with one of the jquery ajax widgets. I believe there's a web2py slice on this. I haven't used it myself ... just recall seeing a thread on it. On Jun 18, 2:35 am, Al Velin wrote: > Hello, I'm new to web2py, and I do not know how to do multiple file > uploads in a single form. For

[web2py] Re: For Massimo: which version of book to buy?

2011-06-18 Thread Massimo Di Pierro
On Jun 18, 7:21 am, "Sebastian E. Ovide" wrote: > On Sat, Jun 18, 2011 at 3:33 AM, Massimo Di Pierro < > > massimo.dipie...@gmail.com> wrote: > > . Books on paper count. Books online do not. > > wow  what about if we contribute to the online version and then you > repackage it in a paper ver

[web2py] Re: How hard it is to do Non-WebSocket Comet (Long Polling)

2011-06-18 Thread Massimo Di Pierro
You can get them to work on any browser using a flash plugin. On Jun 18, 4:59 am, Phyo Arkar wrote: > Thanks a lot all. > > I am looking intohttps://github.com/kmike/tornadio, quite interesting . > > Main reason i dont want to use websocket due to not standardsized yet and > all browsers working

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread Massimo Di Pierro
not yet. will do this week-end On Jun 18, 4:43 am, szimszon wrote: > Has somebody looked at > it:http://code.google.com/p/web2py/issues/detail?id=292?

[web2py] Multiple uploads in single form?

2011-06-18 Thread Al Velin
Hello, I'm new to web2py, and I do not know how to do multiple file uploads in a single form. For example, the loading of multiple images. If a simple model of the following fields: db.define_table ('img', Field ('title'), Field ('img', 'upload'), ) What exactly should I write in the controller a

[web2py] Re: relational database example app

2011-06-18 Thread kesh
wewe andeya kuja nikufundishe web2py na ubebe nyama :D On May 24, 11:46 pm, Markandeya wrote: > Ok i found some appliances on the Appliances web page and that is very > helpful. Which ones are considered good coding standards/practices to > follow?? Which would you advise to get started with?? >

Re: [web2py] Re: acting upon anchor text post login

2011-06-18 Thread Carl Roach
Ah, that's the fact I feared :) I perhaps can pass in parameters as 'args' as a work around and create the _next hyperlink by converting args to anchor text. I'm using browser history management so anchors have to be used 'eventually'. On 18 Jun 2011, at 13:08, Anthony wrote: > As I unders

Re: [web2py] Re: For Massimo: which version of book to buy?

2011-06-18 Thread Sebastian E. Ovide
On Sat, Jun 18, 2011 at 3:33 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > . Books on paper count. Books online do not. > > wow what about if we contribute to the online version and then you repackage it in a paper version ? > On Jun 17, 6:47 pm, mikech wrote: > > Wouldn't

[web2py] Re: acting upon anchor text post login

2011-06-18 Thread Anthony
As I understand it, browsers do not send anchors (i.e., "fragment identifiers") to the server, so if a user clicks on http://127.0.0.1:8000/init/default/account#Invite, the http request sent to web2py will not include the "#Invite" part of the URL, and web2py will therefore not be able to inclu

Re: [web2py] Re: How hard it is to do Non-WebSocket Comet (Long Polling)

2011-06-18 Thread Phyo Arkar
Thanks a lot all. I am looking into https://github.com/kmike/tornadio , quite interesting . Main reason i dont want to use websocket due to not standardsized yet and all browsers working (and i can't tell them not to use this browser only this browser) . Yes the problem of only 2 ports can be so

Re: [web2py] Re: How hard it is to do Non-WebSocket Comet (Long Polling)

2011-06-18 Thread Phyo Arkar
Thanks a lot massimo , i see the limitation of wsgi now. Thats why Rocket can't do. On Sun, Jun 12, 2011 at 9:04 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > If you want to do long-polling you need an async server, not rocket > because wsgi does not support async. Look into web2py

[web2py] Re: acting upon anchor text post login

2011-06-18 Thread Carl
further investigation... away from CAS... in default.py: def one(): redirect(URL(f='two', anchor='anchor987654321')) def two(): redirect(URL(f='three')) def three(): return dict(message='three!') when I enter http://127.0.0.1:8000/init/default/one the function two() is called and I'

[web2py] normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread szimszon
Has somebody looked at it: http://code.google.com/p/web2py/issues/detail?id=292 ?

[web2py] Re: acting upon anchor text post login

2011-06-18 Thread Carl
an example: if a user, not yet logged in, clicks the link http://127.0.0.1:8000/init/default/account#Invite they are asked to log in and then redirected to http://127.0.0.1:8000/init/default/accountd note that the hash (#Invite) is lost. I'm using CAS in my app. Has anyone encountered this?

[web2py] Re: sum(decimal field) comes back as float

2011-06-18 Thread apple
yes sqlite On Jun 18, 3:30 am, Massimo Di Pierro wrote: > I need to think about this. The sum(...) is performed at the db level > and therefore - on sqlite -  it is computed as float. The result > should be converted back to decimal anyway. > > You are using sqlite, correct? > > On Jun 17, 6:15 p