[web2py] help, how to validate a form in this situation?

2010-02-05 Thread hywang
there is a table db.define_table('class_student', Field('class_name'), Field('student_name')) class_name + student_name should be unique in this table. How can validate the submitted data when user update or insert a record ? Thanks :-) -- You received this message because you are subscribed t

[web2py] Login form

2010-02-05 Thread sveinh
Hi all I would like to include a username+pw field and login button on all pages if the user is not already logged in. I would like to use the built-in functions of web2py to validate the login. What would be the best approach for this? I tried to create the fields (as default/user/login would pr

[web2py] example of image manipulation

2010-02-05 Thread Pepe
Hello! have somebody an example of image manipulation using PIL + web2py ?? i need to create different versions of an image when i upload it (different sizes). thanks a lot! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py] Re: generate pdf example

2010-02-05 Thread ceriox
thanks for help!! but i need reportlab ? how can install it? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googleg

Re: [web2py] help, how to validate a form in this situation?

2010-02-05 Thread tiago almeida
I asked about this a while ago here . Hope it helps. On Fri, Feb 5, 2010 at 8:46 AM, hywang wrote: > there is a table > db.define_table('class_student', Field('cla

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-02-05 Thread Ivan P
Sorry for the delayed response. I think that usually means that your permissions are not set. Make sure that uwsgi is running under the same user that owns your web2py directory. The error is unknown cause web2py cannot open the error file, because it cannot write it to disc. On Jan 27, 3:56 pm, A

[web2py] Populate field based no other fields

2010-02-05 Thread Adi
Hi, I have a table with 3 fields: db.define_table('mytable', Field('in_time','datetime'), Field('duration', 'integer'), Field('end_time','datetime')) The user enters in_time and duration (in hours) in SQLFORM, but now I want to calculate and store end_time using end_time = in_time + timeinterval

[web2py] Re: Populate field based on other fields

2010-02-05 Thread Adi
I meant datetime.timedelta not timeinterval. Sorry. On Feb 5, 3:51 pm, Adi wrote: > Hi, > > I have a table with 3 fields: > > db.define_table('mytable', Field('in_time','datetime'), > Field('duration', 'integer'), Field('end_time','datetime')) > > The user enters in_time and duration (in hours) i

[web2py] Re: help, how to validate a form in this situation?

2010-02-05 Thread hywang
thanks , works well On Feb 5, 6:11 pm, tiago almeida wrote: > I asked about this a while ago > here > . > Hope it helps. > > On Fri, Feb 5, 2010 at 8:46 AM, hywang wrote: > > there is a table > > db.define_table('class_stu

[web2py] Re: Populate field based no other fields

2010-02-05 Thread hywang
something like this def _compute(): return request.vars.in_time + request.vars.duration## db.define_table('mytable', Field('in_time','datetime'), Field('duration', 'integer'), Field('end_time','datetime', compute = _compute)) On Feb 5, 6:51 pm, Adi wrote: > Hi, > > I have a table with 3 fie

[web2py] improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread kralin
Hi, In the last days I've been trying to use the web2py DAL to access a public DB shema widely used in bioinformatics (BioSQL, www.biosql.org). this schema does not follow web2py constraints, however most of the tables have a primarykey that can be set as the 'id' fields. howver web2py DAL as i

[web2py] Re: The state of the wiki and documentation in general

2010-02-05 Thread villas
Hi Massimo, As you say, producing documentation is a massive task and does not happen easily, or soon. Your annual book is the only reason that I am able to use Web2py today and is *by far* the best source of documentation. There is therefore an obvious benefit in having all the updates, comment

[web2py] [CLOSED] Re: Populate field based no other fields

2010-02-05 Thread Adi
Awesome, works as expected. Only change is that the request variables were strings and had to be converted into respective data types. Thanks a lot. On Feb 5, 4:19 pm, hywang wrote: > something like this > def _compute(): >      return request.vars.in_time + request.vars.duration## > > db.define

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread kralin
since in the same schema there are many to many tables with no primary key, a further improvement to the one described above can permitt the DAL to write also this table with the side effect of returning None on an insert instead of the inserted record id (since there is no one) this write to all

[web2py] Re: DAL migration problem

2010-02-05 Thread villas
On 5 Feb, 03:19, Thadeus Burgess wrote: > A quick question, what is your opinion on non-reserved keywords ? > Should they be included, excluded, separated ? non-reserved words are > acceptable and do not get in the way of your queries. Re: "Non-reserved": It seems that the definition of non-rese

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread Iceberg
I believe you can run response.flash = "smoething" from view, although I never try that. Lucky that all my views are simple enough, all my codes are in controller. The MVC approach. When talking about showing "Analyzing ..." and then "Successful done", I think you need AJAX. But there is no ready

[web2py] Re: format zero IS_IN_DB

2010-02-05 Thread Iceberg
I also support zero=None, and it is not difficult for me to decide. 1. From the logical point of view, when saying IS_IN_DB(...) or IS_IN_SET(...), it should generate a list that actually is in the set/ db, and nothing more. Besides, this is the way it worked before zero=something is initially inv

[web2py] Re: format zero IS_IN_DB

2010-02-05 Thread villas
If I've understood the arguments correctly, I think there are 3 good reasons to keep as-is: 1. We should assume the average user to be as lazy as possible and make as few clicks as they can. This means that with default=None the first option will often be passively selected. i.e. many of your u

[web2py] DAL connect string

2010-02-05 Thread leone
I need to resume the connect string from db object. There is a way? Thanks L -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsu

[web2py] web based editor lost functionalities

2010-02-05 Thread aure
Hi everyone, I am new to web2py. I have started to make an application a few days ago and I was using the web based editor and it worked just fine. Yesterday I lost some functionalities of the web based editor like shortcuts (e.g CTR-s to save) and highlighting. Anybody knows how to fix it or w

[web2py] Re: Login form

2010-02-05 Thread mdipierro
in layout.html {{if not auth.user and not request.function=='user':}} {{=atuh.login(next=URL(r=request,args=args))}} {{pass}} On Feb 5, 3:40 am, sveinh wrote: > Hi all > > I would like to include a username+pw field and login button on all > pages if the user is not already logged in. I would li

Re: [web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread Tomas Pelka
I was thinking about it a lot and I hope that I could use flash right from my form, like But I have no idea how to call flash as js. Because it is typical js/ajax function, right? On 02/05/2010 01:31 PM, Iceberg wrote: I believe you can run response.flash = "smoething" from view, althou

[web2py] Re: generate pdf example

2010-02-05 Thread mdipierro
You do not need really to install it. Download it, unzip, located the "reportlab" subfolder that contains the py files, move it under web2py/ site-packages On Feb 5, 4:02 am, ceriox wrote: > thanks for help!! > > but i need reportlab ? > how can install it? -- You received this message because

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread mdipierro
Thank you Andrea! these will definitively go in. Massimo On Feb 5, 5:58 am, kralin wrote: > since in the same schema there are many to many tables with no primary > key, > a further improvement to the one described above can permitt the DAL > to write also this table > with the side effect of re

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread mdipierro
perhaps this help: http://www.robrusher.com/2009/03/31/use-amf-with-javascript-in-adobe-air/ On Feb 5, 8:34 am, Tomas Pelka wrote: > I was thinking about it a lot and I hope that I could use flash right > from my form, like > > > > > > But I have no idea how to call flash as js. Because it is

[web2py] Re: DAL connect string

2010-02-05 Thread mdipierro
Can you explain? When is the connection droppped? What code? Specifically, are you using pool_size? On Feb 5, 8:20 am, leone wrote: > I need to resume the connect string from db object. > There is a way? > Thanks > L -- You received this message because you are subscribed to the Google Groups

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread kralin
you're welcome. since I'm dealing with tables without primarykeys in legacy is there some web2py "standard" behaviour for this case? do you think that returning None instead of an id upon a table insert is appropriate? is it going to break something else? On 5 Feb, 15:42, mdipierro wrote: > Thank

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread mdipierro
I do not know. You need to try that. I think if you use keyed tables with primary_key=None most of it should work and if not should be easy to fix. Please if you make these patches use dal.py, not sql.py. On Feb 5, 8:51 am, kralin wrote: > you're welcome. > since I'm dealing with tables without p

[web2py] DAL patching policy

2010-02-05 Thread mdipierro
is you are planning any patch to DAL please consider this: If you send me a patch for sql.py, you will force me to move the patch to the new dal and further delay the release of the latter If you send me a patch for dal.py you will put pressure on me to release it earlier and will show me that yo

[web2py] Re: web based editor lost functionalities

2010-02-05 Thread mdipierro
It seems like a browser problem. Did you try restart the browser? massimo On Feb 5, 3:53 am, aure wrote: > Hi everyone, > > I am new to web2py. > > I have started to make an application a few days ago and I was using > the web based editor and it worked just fine. > > Yesterday I lost some funct

Re: [web2py] example of image manipulation

2010-02-05 Thread Wes James
Here is how I've made thumbnails in the past with PIL: from os.path import getsize import Image def thumb(form): try: filename=form.vars.image.filename zfile=form.vars.image_newfilename.split('.') thumbnail=zfile[0] + '.' + zfile[1] + '.' + zfile[2] + '.thumbnail.' +

[web2py] Re: DAL connect string

2010-02-05 Thread leone
Ops, excuse me: 'resume' is confusing. In a plugin I want to know the connect string of db (only db object is accessible). L On 5 Feb, 15:46, mdipierro wrote: > Can you explain? When is the connection droppped? What code? > Specifically, are you using pool_size? > > On Feb 5, 8:20 am, leone wrot

Re: [web2py] Re: generate pdf example

2010-02-05 Thread Alexandre Andrade
on debian/ubuntu: apt-get install python-reportlab 2010/2/5 ceriox > thanks for help!! > > but i need reportlab ? > how can install it? > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@google

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread kralin
ok thanks, I'll keep trying and let u know if something relevant comes up. Yes I'm using dal.py On 5 Feb, 16:06, mdipierro wrote: > I do not know. You need to try that. I think if you use keyed tables > with primary_key=None most of it should work and if not should be easy > to fix. Please if yo

[web2py] proposal for online documentation

2010-02-05 Thread mdipierro
I got a private email from David and we have an idea: 1) organize a wiki with the same table of content as the book. Each page will have an errata and a a faq. It will include some parts of the book (when possible) and link the scribd book chapters when not possible. 2) integrate the above with a

Re: [web2py] DAL patching policy

2010-02-05 Thread Alex Fanjul
Hello Massimo, I think nobody asked you for this recently, so... How its going with the new DAL? when are you expecting to realease? best regards, alex El 05/02/2010 16:08, mdipierro escribió: is you are planning any patch to DAL please consider this: If you send me a patch for sql.py, you wil

Re: [web2py] DAL patching policy

2010-02-05 Thread Massimo Di Pierro
I have been stuck on some other projects. The DAL for relational databases is done. It needs a little more abstraction to be able to handle non-relational databases, specifically GAE. If you "cp dal.py sql.py" web2py should work. Give it a try. Massimo On Feb 5, 2010, at 10:11 AM, Alex Fa

[web2py] new dal

2010-02-05 Thread mdipierro
I encourage eveybody running from source to try the new dal: cd gluon cp sql.py sql.py.bak cp dal.py sal.py and restart web2py. Let me know what works or does not work. Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

Re: [web2py] proposal for online documentation

2010-02-05 Thread tiago almeida
Hi! 1) Great idea. 2) Wouldn't the docstrings get immensely complex for someone actually reading/mantaining the code? Maybe a Sphinx approach to code documentation would be better. Best regards, Tiago On Fri, Feb 5, 2010 at 4:11 PM, mdipierro wrote: > I got a private email from David and we h

Re: [web2py] DAL patching policy

2010-02-05 Thread Alex Fanjul
Thanks Massimo, I will start to give it a try!! alex El 05/02/2010 17:13, Massimo Di Pierro escribió: I have been stuck on some other projects. The DAL for relational databases is done. It needs a little more abstraction to be able to handle non-relational databases, specifically GAE. If y

Re: [web2py] proposal for online documentation

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 8:11 AM, mdipierro wrote: > I got a private email from David and we have an idea: > > 1) organize a wiki with the same table of content as the book. Each > page will have an errata and a a faq. I'd been thinking of that myself (so it must be a good idea!). > It will include s

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread DenesL
primary_key must be a list of fields from the table On Feb 5, 10:06 am, mdipierro wrote: > I do not know. You need to try that. I think if you use keyed tables > with primary_key=None most of it should work and if not should be easy > to fix. Please if you make these patches use dal.py, not sql.p

[web2py] Re: proposal for online documentation

2010-02-05 Thread mdipierro
> > 2) integrate the above with a small web2py app that turns web2py > > docstrings into wiki pages. When users edit the wiki, the docstrings > > get updated, and I get a patch. > > Interesting thought. I'm slightly skeptical (about editing docstrings outside > the context of the source code itsel

Re: [web2py] proposal for online documentation

2010-02-05 Thread Zoom.Quiet
On Sat, Feb 6, 2010 at 00:26, tiago almeida wrote: > Hi! > > 1) Great idea. > great +1 > 2) Wouldn't the docstrings get immensely complex for someone actually > reading/mantaining the code? Maybe a Sphinx approach to code documentation > would be better. > when collection ebough doc in wiki, and

Re: [web2py] proposal for online documentation

2010-02-05 Thread Jason Brower
I also agree, then we create a dynamic and growing collection of documentation and when I need the information from the book I can get it there as well. Very fun idea indeed. BR, J On Fri, 2010-02-05 at 08:11 -0800, mdipierro wrote: > I got a private email from David and we have an idea: > > 1)

[web2py] Re: Login form

2010-02-05 Thread sveinh
Thanks Massimo Your hint pointed me in the right direction. It had a few topos, which I correct below. {{if not auth.user and not request.function=='user':}} {{form=auth.login(next=URL(r=request, args=request.args))}} {{pass}} This displays the default render of

[web2py] Re: proposal for online documentation

2010-02-05 Thread selecta
1) ok, i got the book, but 2 resources are better then one, people explain differently so it will help to have a second source 2.0) love the idea :) exactly my thought , also i would split the docstring into multiple sections: a) (short) description, b) explanations of input and output variabl

[web2py] Re: proposal for online documentation

2010-02-05 Thread Werner F. Bruhin
On 05/02/2010 17:11, mdipierro wrote: I got a private email from David and we have an idea: 1) organize a wiki with the same table of content as the book. Each page will have an errata and a a faq. It will include some parts of the book (when possible) and link the scribd book chapters when not

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread sveinh
If I understand you correctly, you want to indicate to the user that it may take a while for the request to complete? Check out this one: http://www.web2pyslices.com/main/slices/take_slice/38 -sveinh On Feb 4, 9:56 pm, Tomas Pelka wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread mdipierro
On Feb 5, 8:34 am, Tomas Pelka wrote: > I was thinking about it a lot and I hope that I could use flash right > from my form, like > > > > > > But I have no idea how to call flash as js. Because it is typical > js/ajax function, right? > > On 02/05/2010 01:31 PM, Iceberg wrote: > > > > > I

[web2py] Re: proposal for online documentation

2010-02-05 Thread mdipierro
I am not sure if this does exactly what I mean (can you actually edit and version docstrings and put them back in code?). Anyway, it would be nice it somebody where to set this up as an example for web2py. On Feb 5, 11:32 am, "Werner F. Bruhin" wrote: > On 05/02/2010 17:11, mdipierro wrote: > > >

[web2py] Re: proposal for online documentation

2010-02-05 Thread weheh
I can't comment technically on the idea of converting docstring to wiki pages, although it sounds good. The problem with doc that I think needs solving, however, is that of not being able to easily find items in the doc. The v2 doc index is missing a ton of links -- really important thinks like onv

[web2py] Re: proposal for online documentation

2010-02-05 Thread Werner F. Bruhin
On 05/02/2010 18:52, mdipierro wrote: I am not sure if this does exactly what I mean (can you actually edit and version docstrings and put them back in code?). I don't know, but as Sphinx gets doc from the doc strings I would assume so. Anyway, it would be nice it somebody where to set this up

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread kralin
so if i have no primary key should i use an empty list? [] On 5 Feb, 17:55, DenesL wrote: > primary_key must be a list of fields from the table > > On Feb 5, 10:06 am, mdipierro wrote: > > > I do not know. You need to try that. I think if you use keyed tables > > with primary_key=None most of it

Re: [web2py] Re: DAL migration problem

2010-02-05 Thread Thadeus Burgess
Yes, I decided to just have like POSTGRES for reserved words and POSTGRES_NONRESERVED, so you can check both if you so desire. To check nonreserved keywords as well then just append _nonreserved after the adapter name check_reserved = ['postgres', 'postgres_nonreserved'] -Thadeus On Fri, F

[web2py] Making a custom Rows object

2010-02-05 Thread hamdy.a.farag
Hi I was curious, how to make my own custom Rows object out of some records I didn't succeed to get it work records = [] id = auth.id_group(CEO) x = db(db.auth_membership.group_id == id ).select(db.auth_membership.user_id) for man in x: records.append(db.auth_user[man.user_i

Re: [web2py] [CLOSED] Re: Populate field based no other fields

2010-02-05 Thread Thadeus Burgess
Is this not in the book or did I miss it? -Thadeus On Fri, Feb 5, 2010 at 5:34 AM, Adi wrote: > Awesome, works as expected. > > Only change is that the request variables were strings and had to be > converted into respective data types. Thanks a lot. > > On Feb 5, 4:19 pm, hywang wrote: >>

[web2py] web2py on EC2

2010-02-05 Thread mdipierro
I am considering moving web2py hosting to EC2. I have set it up here: http://ec2-75-101-229-191.compute-1.amazonaws.com/ http://ec2-75-101-229-191.compute-1.amazonaws.com/AlterEgo http://ec2-75-101-229-191.compute-1.amazonaws.com/appliances http://ec2-75-101-229-191.compute-1.amazonaws.com/...etc

Re: [web2py] new dal

2010-02-05 Thread Thadeus Burgess
I will only be able to test the new dal with sqlite and postgres. -Thadeus On Fri, Feb 5, 2010 at 10:14 AM, mdipierro wrote: > I encourage eveybody running from source to try the new dal: > > cd gluon > cp sql.py sql.py.bak > cp dal.py sal.py > > and restart web2py. > Let me know what works

Re: [web2py] Re: proposal for online documentation

2010-02-05 Thread Thadeus Burgess
I still think documenting the source code is the first step, then from that we can build a wiki/faq/walkthrough off of it. But gluon/* needs to be documented thoroughly before we do anything else. We should instead be discussing a method/style of documenting gluon, and then putting resources towar

Re: [web2py] new dal

2010-02-05 Thread Wes James
On Fri, Feb 5, 2010 at 9:14 AM, mdipierro wrote: > I encourage eveybody running from source to try the new dal: > > cd gluon > cp sql.py sql.py.bak > cp dal.py sal.py do you mean cp dal.py sql.py ? > > and restart web2py. > Let me know what works or does not work. > > Massimo > -- You received

[web2py] Re: improvement in web2py compatibility with legacy postgresql datbases column sequence name

2010-02-05 Thread DenesL
I just tested on 1.74.9 with primarykey=[] and it allows it but I would consider this a bug. How would you insert/retrieve/... records without a key?. Unless it has been changed to support it, this was not part of my original code. On Feb 5, 1:12 pm, kralin wrote: > so if i have no primary key s

[web2py] Re: proposal for online documentation

2010-02-05 Thread mdipierro
The wiki would only be a way to make it easy for people to contribute. I agree we need guidelines. page would be into parts (proposed edit to the actual docstrings, annotations, comments). Changes to actual docstrings would still need to go though the approval process. Please share with us any th

[web2py] Re: new dal

2010-02-05 Thread mdipierro
oops.yes. On Feb 5, 1:28 pm, Wes James wrote: > On Fri, Feb 5, 2010 at 9:14 AM, mdipierro wrote: > > I encourage eveybody running from source to try the new dal: > > > cd gluon > > cp sql.py sql.py.bak > > cp dal.py sal.py > > do you mean cp dal.py sql.py ? > > > > > and restart web2py. > > Let

[web2py] Re: web2py on EC2

2010-02-05 Thread mdipierro
Instructions: http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2 On Feb 5, 12:46 pm, mdipierro wrote: > I am considering moving web2py hosting to EC2. > > I have set it up here: > > http://ec2-75-101-229-191.compute-1.amazonaws.com/http://ec2-75-101-229-191.compute-1.amazonaws.

[web2py] Error with mail sending and T(...)

2010-02-05 Thread aure
Hi everyone, I am trying to make my application send a mail. It works fine using: mail.send(to=[mail_to], subject='myApp request', message='mail message') But if I use T(...) in the message: mail.send(to=[mail_to], subject='myApp request', message=T('mail message')) I get this error: mail.sen

[web2py] Re: Error with mail sending and T(...)

2010-02-05 Thread mdipierro
which version of web2py are you using? This was fixed recently I think. On Feb 5, 1:41 pm, aure wrote: > Hi everyone, > > I am trying to make my application send a mail. It works fine using: > > mail.send(to=[mail_to], subject='myApp request', message='mail > message') > > But if I use T(...) in

[web2py] Re: Highligth search word in tekst with HTML tags en entities

2010-02-05 Thread stelg
Thanks for pointing this out! I first need to search and find in the database (bigtable) and then display the articles (text) with the highlighted words. The texts in the databasee contains HTML or plain text formats. On 1 jan, 09:26, Mengu wrote: > for this purpose i am using a jquery plugin na

[web2py] Re: web2py on EC2

2010-02-05 Thread Pystar
Hi Massimo, I am really interested in the costs implications of hosting the web2py website on EC2, since you will be billed by computing hours. Wouldn't a host like Slicehost or Linode have made most sense economically? or is there a hidden advantage that you have discovered? Also, I am browsing th

[web2py] Re: web2py on EC2

2010-02-05 Thread mdipierro
Comparing apples to apples is different. Mostly I am playing with EC2 and this is not a definitive decision. It is true that normal shared hosting is much cheaper but I want access to the apache config file. So I compared pricing of EC2 with some VPS hosting and I found it similar. I need a singl

Re: [web2py] Re: web2py on EC2

2010-02-05 Thread Thadeus Burgess
I noticed, at least for here in Austin TX that it is actually faster than the old host. -Thadeus On Fri, Feb 5, 2010 at 3:01 PM, mdipierro wrote: > Comparing apples to apples is different. Mostly I am playing with EC2 > and this is not a definitive decision. > > It is true that normal shared

[web2py] Re: Error with mail sending and T(...)

2010-02-05 Thread aure
I am using web2py Version 1.74.11 But I upgraded today from source and copied my app to the applications folder. On Feb 5, 8:43 pm, mdipierro wrote: > which version of web2py are you using? This was fixed recently I > think. > > On Feb 5, 1:41 pm, aure wrote:> Hi everyone, > > > I am trying to

[web2py] Re: Blank page with 'Done' error

2010-02-05 Thread Dmitri Zagidulin
Ah, just got reports of 2 users who have encountered this on Firefox. Will investigate for more details, but just curious if any of you've ever encountered this. On Feb 4, 5:48 pm, mdipierro wrote: > Could it be related to this? > > http://stackoverflow.com/questions/150/download-link-fails-

[web2py] Re: Error with mail sending and T(...)

2010-02-05 Thread mdipierro
for now message=str(T('mail message')) instead of message=T('mail message') On Feb 5, 3:16 pm, aure wrote: > I am using web2py Version 1.74.11 > > But I upgraded today from source and copied my app to the applications > folder. > > On Feb 5, 8:43 pm, mdipierro wrote: > > > which version of we

[web2py] Re: web2py on EC2

2010-02-05 Thread sveinh
The Amazon deployment also feel faster than the old from here (Norway). -sveinh On Feb 5, 10:01 pm, mdipierro wrote: > Comparing apples to apples is different. Mostly I am playing with EC2 > and this is not a definitive decision. > > It is true that normal shared hosting is much cheaper but I wa

[web2py] Re: proposal for online documentation

2010-02-05 Thread Richard
> 2) integrate the above with a small web2py app that turns web2py > docstrings into wiki pages. When users edit the wiki, the docstrings > get updated, and I get a patch. I proposed something like this earlier, so definitely agree. http://groups.google.com/group/web2py/browse_thread/thread/231fe

[web2py] Re: web2py on EC2

2010-02-05 Thread Pystar
Hi Massimo, I found your write up on how you did the transition to EC2 very useful and educative but also found it rather incomplete. On Feb 5, 7:46 pm, mdipierro wrote: > I am considering moving web2py hosting to EC2. > > I have set it up here: > > http://ec2-75-101-229-191.compute-1.amazonaws.c

[web2py] SQLFORM: string field length, user id->email

2010-02-05 Thread Jonathan Lundell
A couple of SQLFORM-related questions. 1. I'd like a wider string input field, and I'm not sure how to get it. Unless there's an easier way, I was thinking I'd extend the string widget to embed a size & maxlength. The manual mentions widget extension, but there's no example (only an example of

[web2py] Re: proposal for online documentation

2010-02-05 Thread JonasR
Great idea! I agree with selecta on 2.1. To have examples and comments would be the most valuable part IMHO. Documentation can be found today, even if it is spread around. But the big difference would be if people could contribute with examples and comments close to the documentation. That would m

[web2py] Re: web2py on EC2

2010-02-05 Thread mdipierro
What part would you like extended? On Feb 5, 4:09 pm, Pystar wrote: > Hi Massimo, > I found your write up on how you did the transition to EC2 very useful > and educative but also found it rather incomplete. > > On Feb 5, 7:46 pm, mdipierro wrote: > > > I am considering moving web2py hosting to

[web2py] Possible bug in new dal

2010-02-05 Thread Thadeus Burgess
Can anyone confirm the following traceback when using SQLFORM.factory(*fields) ? Traceback (most recent call last): File "/home/tburgess/Applications/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/home/tburgess/Applications/web2py/applications/pms/

[web2py] Re: Possible bug in new dal

2010-02-05 Thread mdipierro
More than a bug this is a missing feature. It does not yet allow to specify db(...).select('table.field') as the old DAL did but only db(...).select(db.table.field) This will show in a few places since web2py sometimes passes the names of fields as opposed to actual field objects. On Feb 5, 6:

[web2py] Re: SQLFORM: string field length, user id->email

2010-02-05 Thread mdipierro
On Feb 5, 4:24 pm, Jonathan Lundell wrote: > A couple of SQLFORM-related questions. > > 1. I'd like a wider string input field, and I'm not sure how to get it. > Unless there's an easier way, I was thinking I'd extend the string widget to > embed a size & maxlength. The manual mentions widget ex

Re: [web2py] Re: Possible bug in new dal

2010-02-05 Thread Thadeus Burgess
so this means we must wait until this feature is implemented before we can switch? -Thadeus On Fri, Feb 5, 2010 at 6:37 PM, mdipierro wrote: > More than a bug this is a missing feature. It does not yet allow to > specify > > db(...).select('table.field') > > as the old DAL did but only > > d

Re: [web2py] Re: SQLFORM: string field length, user id->email

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 4:40 PM, mdipierro wrote: > On Feb 5, 4:24 pm, Jonathan Lundell wrote: >> A couple of SQLFORM-related questions. >> >> 1. I'd like a wider string input field, and I'm not sure how to get it. >> Unless there's an easier way, I was thinking I'd extend the string widget to >> e

[web2py] Re: Possible bug in new dal

2010-02-05 Thread mdipierro
Yes. But this is a very simple thing to add. On Feb 5, 7:10 pm, Thadeus Burgess wrote: > so this means we must wait until this feature is implemented before we > can switch? > > -Thadeus > > On Fri, Feb 5, 2010 at 6:37 PM, mdipierro wrote: > > More than a bug this is a missing feature. It does n

[web2py] IS_HTTP_URL() with user:password

2010-02-05 Thread Jonathan Lundell
IS_URL() fails when a userinfo field is present in the URL. Examples: http://u...@domain.com http://user:passw...@domain.com See http://tools.ietf.org/html/rfc3986 3.2.1. (The password portion is deprecated as insecure, but it's still legal.) Also http://www.faqs.org/rfcs/rfc239

[web2py] Re: SQLFORM: string field length, user id->email

2010-02-05 Thread mdipierro
On Feb 5, 7:53 pm, Jonathan Lundell wrote: > On Feb 5, 2010, at 4:40 PM, mdipierro wrote: > > > On Feb 5, 4:24 pm, Jonathan Lundell wrote: > >> A couple of SQLFORM-related questions. > > >> 1. I'd like a wider string input field, and I'm not sure how to get it. > >> Unless there's an easier way,

[web2py] Re: IS_HTTP_URL() with user:password

2010-02-05 Thread mdipierro
Yes. This is important. Can you send me a patch? On Feb 5, 10:06 pm, Jonathan Lundell wrote: > IS_URL() fails when a userinfo field is present in the URL. Examples: > >         http://u...@domain.com >         http://user:passw...@domain.com > > Seehttp://tools.ietf.org/html/rfc39863.2.1. (The pa

Re: [web2py] Re: IS_HTTP_URL() with user:password

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 8:19 PM, mdipierro wrote: > Yes. This is important. Can you send me a patch? I may have some time for it this weekend. Do you think it needs a switch? > > On Feb 5, 10:06 pm, Jonathan Lundell wrote: >> IS_URL() fails when a userinfo field is present in the URL. Examples: >>

Re: [web2py] new dal

2010-02-05 Thread Alexey Nezhdanov
I_can_test_with_Oracle_if_new_DAL_supports_@(connector)_and_.(schema)_in_tablenames, I_had_to_modify_old_DAL_for_this. Sorry_for_underscores._Space_looks_broken. On Fri, Feb 5, 2010 at 7:14 PM, mdipierro wrote: > > I encourage eveybody running from source to try the new dal: > > cd gluon > cp s

[web2py] New & tentative Spanish web site

2010-02-05 Thread Mariano Reingart
In the recently created spanish mailing list, emerged the need of a spanish web site for documentation. Some proposed a wiki (moin), Denes started to work on it but I already had a public web2py site installed, so adding the wiki seemed an easier option. Thanks to that web2py is so easy :), after

[web2py] Re: IS_HTTP_URL() with user:password

2010-02-05 Thread mdipierro
I do not think so. Thanks if you can do it. On Feb 5, 10:31 pm, Jonathan Lundell wrote: > On Feb 5, 2010, at 8:19 PM, mdipierro wrote: > > > Yes. This is important. Can you send me a patch? > > I may have some time for it this weekend. Do you think it needs a switch? > > > > > On Feb 5, 10:06 pm,

[web2py] Re: new dal

2010-02-05 Thread mdipierro
LOL. Right now new dal does not support more features than previous dal. It is just more modular. On Feb 5, 10:37 pm, Alexey Nezhdanov wrote: > I_can_test_with_Oracle_if_new_DAL_supports_@(connector)_and_.(schema)_in_tablenames, > > I_had_to_modify_old_DAL_for_this. > > Sorry_for_underscores._Spa

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread Iceberg
Elegant and universal! Exactly what I am looking for. Thanks! On Feb6, 1:35am, sveinh wrote: > If I understand you correctly, you want to indicate to the user that > it may take a while for the request to complete? > > Check out this one:http://www.web2pyslices.com/main/slices/take_slice/38 > > -

[web2py] Re: call response.flash = "smoething" from view

2010-02-05 Thread Iceberg
Nice idea, but it doesn't work. The flash does not have enough time to show up and then the whole page is refreshed. On Feb6, 1:47am, mdipierro wrote: > > > > > On Feb 5, 8:34 am, Tomas Pelka wrote: > > > > > I was thinking about it a lot and I hope that I could use flash right > > from my fo