[web2py:25855] Re: IS_NOT_IN_DB() and no automatic drop box

2009-07-06 Thread annet
Massimo, The validators now read like: db.adres.adressoort.requires=[IS_IN_DB(db,db.adressoort.id,'%(soort) s',orderby=db.adressoort.id),IS_NOT_IN_DB(db (db.adres.bedrijf==request.vars.bedrijf),db.adres.adressoort)] tmp=SQLField ('adressoort',db.adressoort,requires=db.adres.adressoort.requires[0

[web2py:25854] Re: Check to delete doesn't delete record.

2009-07-06 Thread annet
It is not just the check to delete that doesn't work, when I update the record and click submit the update isn't being executed either. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py W

[web2py:25853] Check to delete doesn't delete record.

2009-07-06 Thread annet
These functions in a controller: @auth.requires_membership('tier1_manager') def crud_nfa(): response.functionname='Manage nfa-gegevens' db.nfa.bedrijf.writable=False db.nfa.bedrijf.default=auth.user.bedrijf form=create_form(db.nfa) records=db((db.nfa.bedrijf==auth.user.bedrijf

[web2py:25852] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
Ach - I see why you are so protective of the user base, and all your efforts, long hours and fine teachings. Let it not get in the way of stepping back now and then, and looking, seeing... there is no shame in reality... On Tue, Jul 7, 2009 at 12:01 AM, Yarko Tymciurak wrote: > > On Mon, Jul 6

[web2py:25851] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 7:00 PM, mdipierro wrote: > > Yarko, > > we should not transform a strength into a weakness. Massimo, Massimo, Massimo - Facts are neither strength or weakness (these words from you seem strange indeed). > As I stressed many > times web2py is mostly used to develop int

[web2py:25850] Re: _extra returns string instead of date

2009-07-06 Thread Sebastian E. Ovide
same problem with another field: it is defined as db.Field('impressions','integer'), but impressions=r._extra[db.ans_dashboard_report.impressions.sum()] is returning decimal instead of integer !!! the strange thing is than on another machine it gives me integer... any ideas ? On Thu, Jul 2, 2

[web2py:25849] Re: _action='.'

2009-07-06 Thread mdipierro
I do not think this needs to be in web2py. You can already define something like: def url(f,args=request.args): return URL(r=request,f=f,args=args) I always do it together with some of my other favorite shortcuts. Massimo On Jul 6, 8:06 pm, Jonathan Lundell wrote: > On Jul 6, 2009, at 2:10 P

[web2py:25848] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread Alexandre Andrade
I think I good information to put in 'auth' section, besides the "Renaming Auth tables" is how translate auth tables fields: db.auth_user.first_name.label=T("First Name") etc. etc. I take some time to figure how get it. IDEA: I sugest, to make web2py more friendly to l10n, the labels was default

[web2py:25847] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro
Thank you. I am going to work on this probably one or two more weeks. Than I will post here a list if screenshots that are needed and some guidelines. I cannot promise much in return other than a mention in the book and a copy of the final version to all those who help. Massimo On Jul 6, 9:47 p

[web2py:25846] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread JohnMc
I would be willing to do screen shots if you are looking for a volunteer. JohnMc On Jul 6, 7:49 pm, mdipierro wrote: > Let me add that most of the the other chapters have already been > revised, although need some proofreading. > > Only one chapter needs to be added the book (a short one, about

[web2py:25845] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mikech
I look forward to this new edition. Mike On Jul 6, 6:20 pm, net wrote: > This is just in time! I'm starting to add AUTH functions to the app > I'm working on > so I'll read both chapters and provide feedback. > > Sterling > > On Jul 6, 7:09 pm, Massimo Di Pierro wrote: > > > > > Here are two v

[web2py:25844] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread net
This is just in time! I'm starting to add AUTH functions to the app I'm working on so I'll read both chapters and provide feedback. Sterling On Jul 6, 7:09 pm, Massimo Di Pierro wrote: > Here are two very very draft chapters for the second edition of the > book. > Chapter 7 has been amended t

[web2py:25842] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro
Let me add that most of the the other chapters have already been revised, although need some proofreading. Only one chapter needs to be added the book (a short one, about web services) and two chapters still need some revision. Aside for that all new features are stable and described in the book.

[web2py:25843] Re: _action='.'

2009-07-06 Thread Jonathan Lundell
On Jul 6, 2009, at 2:10 PM, mdipierro wrote: > > _action=URL(r=request)) > > is probably fine > > _action=URL(r=request,args=request.args)) > > to be user Because valid html requires a non-empty action, I'd like to make the effort to specify self-submission as easy as possible. I've been thi

[web2py:25841] Re: new chapters for the book CRUD and AUTH

2009-07-06 Thread mdipierro
Let me add that only one chapter needs to be added the book (about web services) and two chapters need minor revisions. Aside for that all new features are stable and described in the book. If I get some help with proofreading and screenshots I can have a web2py book 2nd edition in by the end of J

[web2py:25839] Re: How do we petition Google to mention web2py?

2009-07-06 Thread mdipierro
Yarko, we should not transform a strength into a weakness. As I stressed many times web2py is mostly used to develop intranet apps in corporate environments (small and medium size businesses). There are people do not want to say what they are doing with web2py and do not want to advertise that t

[web2py:25838] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Joe Barnhart
+1 On Jul 6, 3:48 pm, Yarko Tymciurak wrote: > On Mon, Jul 6, 2009 at 3:13 PM, mdipierro wrote: > > > I understand what you are trying to say but when you say "no one is > > using web2py" gives people the wrong impression and not the correct > > one. It is not fair to member of this community w

[web2py:25837] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread Speedbird
I must say that I grow even more impressed with this framework as time goes by :) On Jul 6, 2:53 pm, mdipierro wrote: > hey... web2py does this automatically if you use an input checkbox > with class="delete". No JS needed. > > Massimo > > On Jul 6, 3:57 pm, NetAdmin wrote: > > > Hello All, > >

[web2py:25836] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 5:48 PM, Yarko Tymciurak wrote: > > On Mon, Jul 6, 2009 at 3:13 PM, mdipierro wrote: > >> >> . > > > >> >> http://www.whitepeaksoftware.com/ uses web2py for their web site > > > For purposes of showing web2py look and feel, this is just a website front > done in web2

[web2py:25835] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Yarko Tymciurak
On Mon, Jul 6, 2009 at 3:13 PM, mdipierro wrote: > > I understand what you are trying to say but when you say "no one is > using web2py" gives people the wrong impression and not the correct > one. It is not fair to member of this community who use web2py. Massimo - "no one is using..." are you

[web2py:25833] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Tim Michelsen
mdipierro : Some people are interested in features as a way to get the job > done better and quicker. I am working for this second class of users. > I am interested in building a community for these people. I like that statement. Keen to see what follows up. I mean, you add neice little features

[web2py:25828] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Jonathan Lundell
On Jul 5, 2009, at 11:59 PM, mdipierro wrote: > Why is that? I think there are multiple answers. > > One is that the python community still perceives web2py as a one man > project. You people need to brag more about it and about your > contribution. To the extent that the "one-man project" chara

[web2py:25834] Re: web2pyslices.com test feedback

2009-07-06 Thread Joe Barnhart
It looks very good mr. freeze. On my system it is "horizontally challenged" however. Do you really need four columns in the layout or could you stack the "new" slices and the "favorite" slices? Sites should be usable without too much scrolling in an 800x600 window. That may not be possible in

[web2py:25832] Re: How to create a JavaScript confirmation popup?

2009-07-06 Thread mdipierro
hey... web2py does this automatically if you use an input checkbox with class="delete". No JS needed. Massimo On Jul 6, 3:57 pm, NetAdmin wrote: > Hello All, > > I'm trying to display records in a table, that has a button at the end > of each row, that calls a JavaScript popup to confirm the de

[web2py:25824] How to create a JavaScript confirmation popup?

2009-07-06 Thread NetAdmin
Hello All, I'm trying to display records in a table, that has a button at the end of each row, that calls a JavaScript popup to confirm the delete. I'm stuck and would appreciate any help anyone can offer. Some of the code is attached. Thanks! Sterling