[web2py] Re: Required password

2011-05-29 Thread Massimo Di Pierro
On a second thought... I think you want db.auth_user.requires=[IS_NOT_EMPTY(),CRYPT(auth.settings.hmac_key)] On May 30, 12:49 am, Dmitriy wrote: > Hi, > > How I can make required password field in auth_user? > Adding the 'required = True,' doesn't works. > > Field('password', type='password', re

[web2py] Re: Required password

2011-05-29 Thread Massimo Di Pierro
I think you want notnull=True not required=True. On May 30, 12:49 am, Dmitriy wrote: > Hi, > > How I can make required password field in auth_user? > Adding the 'required = True,' doesn't works. > > Field('password', type='password', required = True,  readable=False, > label=T('Password')), > >

[web2py] Re: {{=response.toolbar()}}

2011-05-29 Thread Massimo Di Pierro
We can make this better in two ways... 1) make it display its own stylesheet and display as a slide-in/out panel. 2) have it read the options.profiler file and extract all the profiler info 1) requires simply a good css designer. 2) requires a little more work to parse the profiler log and extrac

[web2py] Required password

2011-05-29 Thread Dmitriy
Hi, How I can make required password field in auth_user? Adding the 'required = True,' doesn't works. Field('password', type='password', required = True, readable=False, label=T('Password')), I use web2py 1.95.1, sqlite on Windows. Thanks a lot, Dmitriy

[web2py] Re: {{=response.toolbar()}}

2011-05-29 Thread mattgorecki
Extremely useful. Thanks. On May 29, 6:16 pm, Massimo Di Pierro wrote: > This is in trunk. Give it a try: > > {{=response.toolbar()}} > > display request,response, session and db stats.

Re: [web2py] {{=response.toolbar()}}

2011-05-29 Thread Jason (spot) Brower
YEAH! Your Increadable!! --- BR, Jason On Mon, May 30, 2011 at 3:16 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This is in trunk. Give it a try: > > {{=response.toolbar()}} > > display request,response, session and db stats.

Re: [web2py] Re: experimental... .pdf

2011-05-29 Thread Martin Weissenboeck
Massimo, does markmin2pdflatex understand utf-8? 2011/5/30 Massimo Di Pierro > In trunk, web2py tries to use markmin2pdflatex is installed. If not it > uses pyfpdf. pyfpdf fails on some html, for example if table do not > follow the pyfpdf specs. I believe Marino is working on making pyfpdf > mo

[web2py] Re: experimental... .pdf

2011-05-29 Thread Massimo Di Pierro
In trunk, web2py tries to use markmin2pdflatex is installed. If not it uses pyfpdf. pyfpdf fails on some html, for example if table do not follow the pyfpdf specs. I believe Marino is working on making pyfpdf more forgiving. Massimo On May 29, 10:39 pm, Christopher Steel wrote: > I am going try

[web2py] Re: How do I get a controller to return back to the page that calls it (when it can be called by many pages)?

2011-05-29 Thread Luis Goncalves
Awesome! Thanks!!! L.

[web2py] Re: experimental... .pdf

2011-05-29 Thread Christopher Steel
I am going try things out again when I get a chance. This stuff is just great. I love the fact that we build on a solid API so in the end we get the GUI and command line and API access for developers and the blind. It totally rocks!!! Markmin to PDF would be very interesting as well.. Chris On M

[web2py] Re: misbehaves on a view of a controller with arguments

2011-05-29 Thread Luis Goncalves
Thanks! I was confused, but the URL doc makes it clear that there are applications, controllers, functions, arguments, and variables. Thx, L.

[web2py] Re: misbehaves on a view of a controller with arguments

2011-05-29 Thread pbreit
I think that's correct behavior. The browser interprets AAA as part of the path, not an arg, and puts my_control.html at the end of the path. It's always a good idea to use URL() helper. ie: c= and f= are optional. Also, my_control is better called a function.

[web2py] Re: misbehaves on a view of a controller with arguments

2011-05-29 Thread Luis Goncalves
I figured it out ... .. use the powerful URL() helper function! sorry for the 'spam' L.

[web2py] misbehaves on a view of a controller with arguments

2011-05-29 Thread Luis Goncalves
Hello! I have a controller, my_control(), that can be called by itself, or with two arguments , ../default/my_control/AAA or .../BBB In the associated view, my_control.html, I have some href links that call a new controller: Compute Value If I was on the URL

[web2py] Re: Default user.html

2011-05-29 Thread Massimo Di Pierro
You can disable actions if you use third party authentication. On May 29, 6:19 pm, Dwayne Blind wrote: > Hi, > > The following lines are usual : > > > {{=form}} > {{if request.args(0)=='login':}} > {{if not 'register' in auth.settings.actions_disabled:}}   # CONDITION > N°1 > register > {{pass}}

[web2py] {{=response.toolbar()}}

2011-05-29 Thread Massimo Di Pierro
This is in trunk. Give it a try: {{=response.toolbar()}} display request,response, session and db stats.

[web2py] Default user.html

2011-05-29 Thread Dwayne Blind
Hi, The following lines are usual : {{=form}} {{if request.args(0)=='login':}} {{if not 'register' in auth.settings.actions_disabled:}} # CONDITION N°1 register {{pass}} {{if not 'request_reset_password' in auth.settings.actions_disabled:}} # CONDITION N°2 lost password {{pass}} {{pass}}

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-29 Thread howesc
Sebastian, I agree with your views completely! i *never* use anything but stable releases with my clients, but sometimes when i have issues i get help and fixes from the maintainers much more quickly if i can test their fixes in trunk. Help us out (if you can) and confirm that the fix is in t

[web2py] Re: GAE and MySQL

2011-05-29 Thread Massimo Di Pierro
GAE restricts outbound connections except using GAE api, so I doubt the pymysql driver will work. Moreover it would be very slow because it will be unable to maintain state. Massimo On May 29, 4:55 pm, ra3don wrote: > I think this should be possible. > > You would just have to do: > mysql://us

[web2py] Re: GAE and MySQL

2011-05-29 Thread ra3don
I think this should be possible. You would just have to do: mysql://username:password@IP_OF_MYSQL_SERVER/DB_NAME I'd also imagine you would have to allow remote users in your MySQL database. If i'm not mistaken, the default is to allow only local users in, you will have to try your luck. If you

[web2py] Re: Missing paramenter?

2011-05-29 Thread mikech
Thanks my Pycharm was reporting it as an error.

[web2py] Re: How do I get a controller to return back to the page that calls it (when it can be called by many pages)?

2011-05-29 Thread mattgorecki
In your db_action() controller, rather than doing a return() at the end, you could just redirect like so: redirect(request.env.http_referer) On May 29, 2:46 pm, Luis Goncalves wrote: > Hello All! > > There is a database action that I want to do in several views. > > Right now, I have it impleme

[web2py] Re: LOAD needs optional "_class" argument for its wrapper DIV [enhancement request]

2011-05-29 Thread Massimo Di Pierro
In trunk. Try it. On May 29, 4:03 pm, weheh wrote: > Yes, I can confirm that I can get my app to work using id only and > creating a css entry for that id. Thank you for the suggestion, > stephanl. But, I stick to my conviction that the LOAD helper should be > extended to support a _class arg. C

[web2py] Re: LOAD needs optional "_class" argument for its wrapper DIV [enhancement request]

2011-05-29 Thread weheh
Yes, I can confirm that I can get my app to work using id only and creating a css entry for that id. Thank you for the suggestion, stephanl. But, I stick to my conviction that the LOAD helper should be extended to support a _class arg. Cheers. On May 29, 4:44 pm, weheh wrote: > It's possible that

[web2py] How do I get a controller to return back to the page that calls it (when it can be called by many pages)?

2011-05-29 Thread Luis Goncalves
Hello All! There is a database action that I want to do in several views. Right now, I have it implemented as a link in each view as Toggle Status How do I get my db_action() controller to return back to the page with the link that called it? Is there a way to cause the browser to do th

[web2py] Re: LOAD needs optional "_class" argument for its wrapper DIV [enhancement request]

2011-05-29 Thread weheh
It's possible that might work, although it seems kludgy. I like to use id for naming things, not describing how they are to be displayed. That's what I use class for. LOAD produces a DIV, so it makes sense it should take a lot or all of the same arguments as DIV, including _class. On May 29, 11:1

[web2py] Re: GROUP BY Date, Ignore Time

2011-05-29 Thread Massimo Di Pierro
set = db(db.posts.id).select(db.posts.posted_date, count, groupby=db.posts.posted_date.year()|db.posts.posted_date.month()| db.posts.posted_date.day()) On May 29, 2:42 pm, Neodudeman wrote: > Hi web2py; I've got some problems. > I'm attempting to get a count of some rows based on the date; but wh

[web2py] clarification of usage of auth

2011-05-29 Thread apple
I have added auth to my application using crud. However there are a couple of areas where it does not act as I was expecting. 1) If I have change a permission from create to update then I now have both permissions until I log off. I guess it has cached the old permission somewhere. Is it possible

[web2py] components with links inside components ?

2011-05-29 Thread Sebastian E. Ovide
Hi All, Is anybody using components within components ? I have a couple of components created as explained by the book. They uses few links with the cid=request.cid options. One component contains another component. When I'm clicking on any of the inner components, the outer components stop work

[web2py] clarification of usage of auth

2011-05-29 Thread apple
I have added auth to my application using crud. However there are a couple of areas where it does not act as I was expecting. 1) If I have a permission to create and change it to update it seems that I now have both permissions until I log off. I guess it has cached the old permission somewhere. I

[web2py] GROUP BY Date, Ignore Time

2011-05-29 Thread Neodudeman
Hi web2py; I've got some problems. I'm attempting to get a count of some rows based on the date; but when I attempt the grouping, it includes the time as well, giving me a false count. (Since no two rows were created at the exact same second, the count never goes above 1 per 'date') Here's my curr

[web2py] Re: Do I have to re-invent the wheel to display and manage messages between users on a website?

2011-05-29 Thread Luis Goncalves
Yes, in the end likely I'd have to customize whatever I found. Still, may have been a good base to start from. thx, Luis. On May 29, 4:44 am, Albert Abril wrote: > I guess you should make a model called messages, which you must relate it > within users. > Depends how you want to it working. > >

[web2py] Re: Do I have to re-invent the wheel to display and manage messages between users on a website?

2011-05-29 Thread Luis Goncalves
Yes, I have something like that already. But I also want a user to see all the messages he has sent/received (as a list showing sender, date, and subject), and be able to view the entire message and reply to it upon selecting one. Not hard stuff, just would be nice to have something already done

[web2py] Re: How do I modify the form on default/user/profile ?

2011-05-29 Thread Luis Goncalves
Hello Annet! Your example helps a lot! I'm not yet familiar enough with web2py/ python to realize that I could just extend the empty user() controller (and I don't think I came across an example in the web2py book or the online examples). Since I already had my own my_profile() controller, what

[web2py] Re: Thursday, May 26...

2011-05-29 Thread mart
sorry, the table below looks terrible :( On May 29, 2:26 pm, mart wrote: > Hi, > > On some days, things move really fast, which is a great thing!, > but...  also backtracking (going back and taking time go through them) > isn't so easy...  Does anyone have something to keep track of trunk > chang

[web2py] Thursday, May 26...

2011-05-29 Thread mart
Hi, On some days, things move really fast, which is a great thing!, but... also backtracking (going back and taking time go through them) isn't so easy... Does anyone have something to keep track of trunk changes when, for example, Massimo submits multiple changes/features in one day? Last Thus

[web2py] Re: experimental... .pdf

2011-05-29 Thread mart
Wow! This is really nice! so all that is need for the designer is wxPython? Mart :) On May 27, 12:08 pm, Mariano Reingart wrote: > Regarding PyFPDF: > > Headers should be rendered. > > Tables need at least a first  TH, prior any TD, who indicates column > width (and it is wise to use THEAD and T

[web2py] Re: Paypal on Appengine

2011-05-29 Thread pbreit
The redirect URL is going to need to look something like this: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1NK66318YB717835M or https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1NK66318YB717835M&useraction=commit I don't think you need all the escaping

[web2py] Aw: LOAD needs optional "_class" argument for its wrapper DIV [enhancement request]

2011-05-29 Thread stephanl
The LOAD function takes an target argument. I think, this does what you want. from the book: target is the id id the target DIV. If it is not specified a random target id is generated.

[web2py] Re: TypeError: 'module' object is not callable on globals()

2011-05-29 Thread dlypka
Great news. Will upgrade. Thanks! On May 28, 7:40 pm, Massimo Di Pierro wrote: > This is fixed in trunk. > You cannot do > > from gluon import * > > in version before 1.95.1 > > On May 28, 3:44 pm, dlypka wrote: > > > > > > > > > I am trying to use crud but I get > > > TypeError: 'module' object

[web2py] LOAD needs optional "_class" argument for its wrapper DIV [enhancement request]

2011-05-29 Thread weheh
LOAD wraps the loaded contents with a div whose id=. I need to get that wrapper div to have a particular class for my page layout to work properly with various jQuery widgets I'm using. Therefore, could LOAD please be enhanced to take an optional _class argument?

Re: [web2py] Do I have to re-invent the wheel to display and manage messages between users on a website?

2011-05-29 Thread Bruno Rocha
You can reuse some code from this appliance: contact form (store in dbb then sends an email) http://web2py.com/appliances/default/show/10 -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sun, May 29, 2011 at 2:09 AM, Luis Goncalves wrot

[web2py] Do I have to re-invent the wheel to display and manage messages between users on a website?

2011-05-29 Thread pbreit
I haven't seen anyhin like that ready to go. I'm building an eBay/craigslist-like app so would be mildly interesting. By the way, I have recently switched from amazon ses to sendgrid for emailing (pricetack.com).

[web2py] Re: Paypal on Appengine

2011-05-29 Thread pbreit
I'll take a closer look tomorrow. For one thing you are mixing production API calls with a sandbox URL. With express checkout I usually work exclusively on production. Seems to be easier. You can do refunds.

[web2py] Confusing about FORM created and then printing it...

2011-05-29 Thread Jason Brower
I have created a form as follows: invitation_form = FORM('Invitations List:', TEXTAREA(_name='invitations', requires=IS_NOT_EMPTY()), "Subject:", INPUT(_name='subject', requires=IS_NOT_EMPTY()), "Message:", TEXTAREA(_na

[web2py] Re: What is documentation top priotity?

2011-05-29 Thread weheh
Components with file upload needs improved doc ... with and without ajax, e.g. ajax=True and ajax=False. On May 28, 11:38 pm, Vinicius Assef wrote: > Hey guys, > I had volunteered to help in documentation. > > In your oppinion, what would be the top priority to work on? > > -- > Vinicius Assef.

Re: [web2py] Do I have to re-invent the wheel to display and manage messages between users on a website?

2011-05-29 Thread Albert Abril
I guess you should make a model called messages, which you must relate it within users. Depends how you want to it working. 2011/5/29 Luis Goncalves > Hello! > > I'm building an application where logged-in users can send messages to > each other (the message gets sent to the recipient's norma

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-29 Thread Sebastian E. Ovide
No, I'm not using trunk. We are using web2py as a stable and robust enterprise framework and I'm sure that you would understand that it goes out of our budget to invest in maintaining the same framework which aim is to save us money. I'll wait patiently to the next "stable" version Thanks On Sun

[web2py] Re: What is documentation top priotity?

2011-05-29 Thread cjrh
On May 29, 5:38 am, Vinicius Assef wrote: > In your oppinion, what would be the top priority to work on? If you write new sections, I am happy to proof-read for you. I just don't have too much time to write such sections myself, and do the testing work required to get the technical accuracy corr

[web2py] Re: Highest ID and UPDATE table with variable

2011-05-29 Thread Blackpainter
Thank you so much, everything is working now =). my deepest thanks, Blackpainter On 29 Mai, 01:50, Massimo Di Pierro wrote: > My mistake: > > max_id = db(db.table).select(db.table.id.max()).first() > [db.table.id.max()] > and > db(db.table.id==max_id).update(field='avariable') > > On May 28, 10: