[web2py:20486] forms in web2py
Hi, I hav written a form in controller of my application. The form has a select option which based on its input uses ajax and calls a function. This function sends a json list object. How do I access that variable in order to incorporate the contents of that list as another select option menu.? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20487] Re: What does request.vars and session mean?
So its for that not two people can has the same session_ID and cannot send the form? 2009/4/24 mdipierro > > It is optional. If it is there is associate a unique ID to each form > to prevent double form submission. > > Massimo > > On Apr 24, 2:02 pm, Pynthon wrote: > > Hahaha, sorry for my bad English. The if form.accepts(request.vars): > > means if the sended information passed the validation right? But what > > does the session mean? I know what sessions are but why here? > > > > Thanks > > > > On Apr 24, 7:30 pm, Yannick wrote: > > > > > Oups sorry if i did understand your original question... I still don't > > > see what it is that you don't understand... > > > The view doesn't display ?? > > > > > Yannick P. > > > > > On Apr 24, 11:45 am, Pynthon Pynthon wrote: > > > > > > Thanks, I understand that already but when I only do: > > > > if form.accepts(): > > > > > > Then I can't go to the view. > > > > > > 2009/4/24 Yannick > > > > > > > Hello Pynthon, > > > > > > > Request.vars : It is used to get the values of the form you send > from > > > > > the view in the server side > > > > > Session: it is used to access values stored in your session (If > any) > > > > > in the server side > > > > > > > I hope it helps, > > > > > Yannick P. > > > > > > > On Apr 24, 11:12 am, Pynthon wrote: > > > > > > Hello I got this in my controller: > > > > > > > > def index(): > > > > > > return("Hallo Wereld") > > > > > > > > def first(): > > > > > > form = FORM(INPUT(_name = 'naam', requires = IS_NOT_EMPTY()), > > > > > > INPUT(_type = 'submit')) > > > > > > if form.accepts(request.vars, session): > > > > > > session.naam = form.vars.naam > > > > > > redirect(URL(r = request, f = 'second')) > > > > > > > > return dict(form = form) > > > > > > > > def second(): > > > > > > if not session.naam: > > > > > > redirect(URL(r = request, f = first)) > > > > > > return dict() > > > > > > > > def delete(): > > > > > > session.naam = None > > > > > > return "Loguit" > > > > > > > > I created the delete option by myself =D (:P). However I have a > > > > > > question about this piece of code: > > > > > > if form.accepts(request.vars, session): > > > > > > > > I know what form.accepts mean but what does the request.vars and > > > > > > session? > > > > > > > > Thanks! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20488] Orderby
Hello I searched in the book but I can't find it. Im creating a blog with the small knowledge I have about W2P. Just for fun and to learn. I want to order it like this: 3 2 1 and not 1 2 3 The latest posts ion the head :P. How can I do this? Thanks, Pynthon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20489] Re: Orderby
Hi. I'm assuming you have some query from where you take the posts. In the select part there's a parameter orderby. To give it to sort it in reverse order just write the sign ~ in front of the orderby parameter. example db(some_query).select(db.table.ALL, orderby = ~db.table.field) regards mmlado On Saturday 25 April 2009 12:16:39 Pynthon wrote: > Hello > > I searched in the book but I can't find it. Im creating a blog with > the small knowledge I have about W2P. Just for fun and to learn. I > want to order it like this: > > 3 > 2 > 1 > > and not > > 1 > 2 > 3 > > The latest posts ion the head :P. How can I do this? > > Thanks, > Pynthon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20490] Re: Orderby
Thanks man! Works perfect! Maybe I want this blog for my public site. But I also want to make an admin panel. How need I to make that? I know how to work with sessions. But can it also be safe? On Apr 25, 12:27 pm, Mladen Milankovic wrote: > Hi. > > I'm assuming you have some query from where you take the posts. > In the select part there's a parameter orderby. To give it to sort it in > reverse order just write the sign ~ in front of the orderby parameter. > example > db(some_query).select(db.table.ALL, orderby = ~db.table.field) > > regards > mmlado > > On Saturday 25 April 2009 12:16:39 Pynthon wrote: > > > Hello > > > I searched in the book but I can't find it. Im creating a blog with > > the small knowledge I have about W2P. Just for fun and to learn. I > > want to order it like this: > > > 3 > > 2 > > 1 > > > and not > > > 1 > > 2 > > 3 > > > The latest posts ion the head :P. How can I do this? > > > Thanks, > > Pynthon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20491] Re: Auth works on local host, doesn't work on remote server
On Sat, Apr 25, 2009 at 2:30 PM, Alexei Vinidiktov wrote: > Hello, > > I'm beginning to learn user authentication. I've implemented a very > basic authentication using the Auth module that works fine on my local > machine: I can register a user, a confirmation email is sent out, the > user can confirm his email, login and logout. > > I copied the app to a remote server and tried to register a user, but > after I entered all the user information and hit Submit I got > redirected back to the registration page and no email was sent to the > user being registered, no ticket was generated either. > > I'd appreciate any clues. > > I'm using web2py 1.59. My local machine is a WinXP box, the remote > server is on a Linux distro. > Additional info: After my unsuccessful attempt to register I was redirected to the same registration page (which is just a scaffold provided by web2py) and then I looked at the session info by clicking on the corresponding button and it said "auth : None, flash : Invalid email", but no flash was shown to the user (i.e. to me). I tried different email, but always got the same flash : invalid email in the session info. -- Alexei Vinidiktov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20492] Re: Orderby
Hi. You can do something with the auth class. Here some tutorial about it. http://mdp.cti.depaul.edu/examples/default/tools You can expose only functions for login/logout. Create a user by hand, through web2py admin. Then create controllers/functions that requires authorization. For the safety... it should be enough safe for a blog. :) Nothing is safe on the internet, theres always someone who can hack it. The only question is: is it worth to hack it. :) regards mmlado On Saturday 25 April 2009 12:32:10 Pynthon wrote: > Thanks man! Works perfect! Maybe I want this blog for my public site. > But I also want to make an admin panel. How need I to make that? I > know how to work with sessions. But can it also be safe? > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20493] Re: Orderby
But I see that there is also with profiles etc. On Apr 25, 12:45 pm, Mladen Milankovic wrote: > Hi. > > You can do something with the auth class. > Here some tutorial about it.http://mdp.cti.depaul.edu/examples/default/tools > > You can expose only functions for login/logout. Create a user by hand, through > web2py admin. > Then create controllers/functions that requires authorization. > > For the safety... it should be enough safe for a blog. :) > Nothing is safe on the internet, theres always someone who can hack it. > The only question is: is it worth to hack it. :) > > regards > mmlado > > On Saturday 25 April 2009 12:32:10 Pynthon wrote: > > > Thanks man! Works perfect! Maybe I want this blog for my public site. > > But I also want to make an admin panel. How need I to make that? I > > know how to work with sessions. But can it also be safe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20494] Re: Orderby
BTW, is there also something like a editor for my blog. Because HTML gets escaped and when I do enter it does not work :(. On Apr 25, 12:53 pm, Pynthon wrote: > But I see that there is also with profiles etc. > > On Apr 25, 12:45 pm, Mladen Milankovic wrote: > > > Hi. > > > You can do something with the auth class. > > Here some tutorial about it.http://mdp.cti.depaul.edu/examples/default/tools > > > You can expose only functions for login/logout. Create a user by hand, > > through > > web2py admin. > > Then create controllers/functions that requires authorization. > > > For the safety... it should be enough safe for a blog. :) > > Nothing is safe on the internet, theres always someone who can hack it. > > The only question is: is it worth to hack it. :) > > > regards > > mmlado > > > On Saturday 25 April 2009 12:32:10 Pynthon wrote: > > > > Thanks man! Works perfect! Maybe I want this blog for my public site. > > > But I also want to make an admin panel. How need I to make that? I > > > know how to work with sessions. But can it also be safe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20495] Re: Orderby
Hi. Yes there are. If you need more from the authorization you can expose those too, or all of them if you want to allow registration on the blog. Usually I work on things where registration isn't good thing, and I need only login and logout. If you want all the functions: def user(): return dict(form = auth()) or some of them: def login(): return dict(form = auth.login(next=URL(r=request, f="index"))) def logout(): return dict(form = auth.logout(next=URL(r=request, f="login"))) #any other function you need... regards mmlado On Saturday 25 April 2009 12:53:13 Pynthon wrote: > But I see that there is also with profiles etc. > > On Apr 25, 12:45 pm, Mladen Milankovic wrote: > > Hi. > > > > You can do something with the auth class. > > Here some tutorial about > > it.http://mdp.cti.depaul.edu/examples/default/tools > > > > You can expose only functions for login/logout. Create a user by hand, > > through web2py admin. > > Then create controllers/functions that requires authorization. > > > > For the safety... it should be enough safe for a blog. :) > > Nothing is safe on the internet, theres always someone who can hack it. > > The only question is: is it worth to hack it. :) > > > > regards > > mmlado > > > > On Saturday 25 April 2009 12:32:10 Pynthon wrote: > > > Thanks man! Works perfect! Maybe I want this blog for my public site. > > > But I also want to make an admin panel. How need I to make that? I > > > know how to work with sessions. But can it also be safe? > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20496] Re: Orderby
Hmm my posts were deleted. However, this is with profiles right? I just want a plain login/logout system :$. And is there also something like an editor. Because when I type my posts now I can't use enters because everything is escaped. And the for loop does not work: {{for post in posts:}} {{=post.titel}} {{=post.time}} {{=post.post}} {{pass}} When I do this I get: Web2Py 2009-04-25 12:19:05 Welcome to my new blog. This blog isn't PHP but just Web2Py a Python web framework. Its really easy and simple. I only need a new style without this green stuff. ~ Phant Welcome 2009-04-25 12:10:00 Welcome Hello World! 2009-04-25 12:04:59 For The Lulz! My Boy 2009-04-25 12:00:53 Hello Everything is just set together, how can I fix this? On Apr 25, 12:45 pm, Mladen Milankovic wrote: > Hi. > > You can do something with the auth class. > Here some tutorial about it.http://mdp.cti.depaul.edu/examples/default/tools > > You can expose only functions for login/logout. Create a user by hand, through > web2py admin. > Then create controllers/functions that requires authorization. > > For the safety... it should be enough safe for a blog. :) > Nothing is safe on the internet, theres always someone who can hack it. > The only question is: is it worth to hack it. :) > > regards > mmlado > > On Saturday 25 April 2009 12:32:10 Pynthon wrote: > > > Thanks man! Works perfect! Maybe I want this blog for my public site. > > But I also want to make an admin panel. How need I to make that? I > > know how to work with sessions. But can it also be safe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20497] Re: Orderby
Hi. For the html editor, wouldn't know to recommend. When you got the post for the blog, just put it into XML() helper. Like: XML(post) This way it won't be escaped. regards mmlado On Saturday 25 April 2009 12:54:44 Pynthon wrote: > BTW, is there also something like a editor for my blog. Because HTML > gets escaped and when I do enter it does not work :(. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20498] Re: Orderby
Hi. You'll need to add html for formating in the view. You can also add the XML helper if you want to have html code in the post. Like: {{for post in posts:}} {{=post.titel}} {{=post.time}} {{=XML(post.post)}} {{pass}} regards mmlado On Saturday 25 April 2009 13:02:42 Pynthon wrote: > Hmm my posts were deleted. However, this is with profiles right? I > just want a plain login/logout system :$. And is there also something > like an editor. Because when I type my posts now I can't use enters > because everything is escaped. And the for loop does not work: > > {{for post in posts:}} > {{=post.titel}} > > {{=post.time}} > > {{=post.post}} > {{pass}} > > When I do this I get: > > Web2Py 2009-04-25 12:19:05 Welcome to my new blog. This blog isn't PHP > but just Web2Py a Python web framework. Its really easy and simple. I > only need a new style without this green stuff. ~ Phant Welcome > 2009-04-25 12:10:00 Welcome Hello World! 2009-04-25 12:04:59 For The > Lulz! My Boy 2009-04-25 12:00:53 Hello > > Everything is just set together, how can I fix this? > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20499] Re: Orderby
Thanks, but I meant more something like the wiki markup language. On Apr 25, 1:07 pm, Mladen Milankovic wrote: > Hi. > > You'll need to add html for formating in the view. You can also add the XML > helper if you want to have html code in the post. Like: > > {{for post in posts:}} > > {{=post.titel}} > > {{=post.time}} > > {{=XML(post.post)}} > > {{pass}} > > regards > mmlado > > On Saturday 25 April 2009 13:02:42 Pynthon wrote: > > > Hmm my posts were deleted. However, this is with profiles right? I > > just want a plain login/logout system :$. And is there also something > > like an editor. Because when I type my posts now I can't use enters > > because everything is escaped. And the for loop does not work: > > > {{for post in posts:}} > > {{=post.titel}} > > > {{=post.time}} > > > {{=post.post}} > > {{pass}} > > > When I do this I get: > > > Web2Py 2009-04-25 12:19:05 Welcome to my new blog. This blog isn't PHP > > but just Web2Py a Python web framework. Its really easy and simple. I > > only need a new style without this green stuff. ~ Phant Welcome > > 2009-04-25 12:10:00 Welcome Hello World! 2009-04-25 12:04:59 For The > > Lulz! My Boy 2009-04-25 12:00:53 Hello > > > Everything is just set together, how can I fix this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20500] Re: Documentation
Yes the book is wonderful, the only problem I met is the format - pdf, it would be very useful if the book is in chm format, so that search and index tabs are available. I tried with different psd2chm converters, but they didn't work as expected. On Apr 24, 11:11 pm, JohnMc wrote: > I note that I am not the only newbie on the group. And not the only > one struggling with some of the finer points of web2py. (I have the > book, its great for starters.) Thing is as I watch the discussion the > docs for most of the details are out there. > > Is there some kind soul that could do a table of contents beyond the > book? Maybe by -- > > DAL > FORMS > Views > Javascript > High value internals. > > Essentially the AlterEgo, plus other docs just assembled in a > directory tree by subject. The epydocs are great but are kind of like > taking a sip from a firehose on full for somebody just starting out. > > Merely a suggestion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20501] Re: What does request.vars and session mean?
No. It is to avoid that the same person clicks twice by mistake (perhaps because the page is slow to load) and the form is processed twice. Think of [add chart] and when you click twice you add twice to chart by mistake. Massimo On Apr 25, 4:52 am, Pynthon Pynthon wrote: > So its for that not two people can has the same session_ID and cannot send > the form? > > 2009/4/24 mdipierro > > > > > It is optional. If it is there is associate a unique ID to each form > > to prevent double form submission. > > > Massimo > > > On Apr 24, 2:02 pm, Pynthon wrote: > > > Hahaha, sorry for my bad English. The if form.accepts(request.vars): > > > means if the sended information passed the validation right? But what > > > does the session mean? I know what sessions are but why here? > > > > Thanks > > > > On Apr 24, 7:30 pm, Yannick wrote: > > > > > Oups sorry if i did understand your original question... I still don't > > > > see what it is that you don't understand... > > > > The view doesn't display ?? > > > > > Yannick P. > > > > > On Apr 24, 11:45 am, Pynthon Pynthon wrote: > > > > > > Thanks, I understand that already but when I only do: > > > > > if form.accepts(): > > > > > > Then I can't go to the view. > > > > > > 2009/4/24 Yannick > > > > > > > Hello Pynthon, > > > > > > > Request.vars : It is used to get the values of the form you send > > from > > > > > > the view in the server side > > > > > > Session: it is used to access values stored in your session (If > > any) > > > > > > in the server side > > > > > > > I hope it helps, > > > > > > Yannick P. > > > > > > > On Apr 24, 11:12 am, Pynthon wrote: > > > > > > > Hello I got this in my controller: > > > > > > > > def index(): > > > > > > > return("Hallo Wereld") > > > > > > > > def first(): > > > > > > > form = FORM(INPUT(_name = 'naam', requires = IS_NOT_EMPTY()), > > > > > > > INPUT(_type = 'submit')) > > > > > > > if form.accepts(request.vars, session): > > > > > > > session.naam = form.vars.naam > > > > > > > redirect(URL(r = request, f = 'second')) > > > > > > > > return dict(form = form) > > > > > > > > def second(): > > > > > > > if not session.naam: > > > > > > > redirect(URL(r = request, f = first)) > > > > > > > return dict() > > > > > > > > def delete(): > > > > > > > session.naam = None > > > > > > > return "Loguit" > > > > > > > > I created the delete option by myself =D (:P). However I have a > > > > > > > question about this piece of code: > > > > > > > if form.accepts(request.vars, session): > > > > > > > > I know what form.accepts mean but what does the request.vars and > > > > > > > session? > > > > > > > > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20502] Re: Orderby
from gluon.contrib.markdown import WIKI {{=WIKI(text)}} On Apr 25, 6:17 am, Pynthon wrote: > Thanks, but I meant more something like the wiki markup language. > > On Apr 25, 1:07 pm, Mladen Milankovic wrote: > > > Hi. > > > You'll need to add html for formating in the view. You can also add the XML > > helper if you want to have html code in the post. Like: > > > {{for post in posts:}} > > > > {{=post.titel}} > > > {{=post.time}} > > > {{=XML(post.post)}} > > > > {{pass}} > > > regards > > mmlado > > > On Saturday 25 April 2009 13:02:42 Pynthon wrote: > > > > Hmm my posts were deleted. However, this is with profiles right? I > > > just want a plain login/logout system :$. And is there also something > > > like an editor. Because when I type my posts now I can't use enters > > > because everything is escaped. And the for loop does not work: > > > > {{for post in posts:}} > > > {{=post.titel}} > > > > {{=post.time}} > > > > {{=post.post}} > > > {{pass}} > > > > When I do this I get: > > > > Web2Py 2009-04-25 12:19:05 Welcome to my new blog. This blog isn't PHP > > > but just Web2Py a Python web framework. Its really easy and simple. I > > > only need a new style without this green stuff. ~ Phant Welcome > > > 2009-04-25 12:10:00 Welcome Hello World! 2009-04-25 12:04:59 For The > > > Lulz! My Boy 2009-04-25 12:00:53 Hello > > > > Everything is just set together, how can I fix this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20503] seamless implicit memcache from Alkis Evlogimenos - on we2py?
Is there a way to use this memcache 'shim' in a web2py app? If so, would I have to insert the calls in my web2py app source code, or do I have to modify a low level module in the web2py framework? Please give details if possible. Here is the posting link from Alkis Evlogimenos on the GAE forum: http://groups.google.com/group/google-appengine-python/browse_thread/thread/a57a1f85d3d60977# The title is "seamless (mem)caching of entities" The forum is google-appengine-python --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20504] Re: Can response.flash have different colors?
Oh, one more minor suggestion, shouldn't we add some description about this new feature into the build-in document of "example 6" in this page? http://www.web2py.com/examples/default/examples In fact I tried to write a couple more examples for Massimo to show the new "info" and "warn" class, but then I found out that the example app uses a somewhat different style.css and does not like the latest style.css, so I give up, but at least I still suggest that it is worthy to mention this in "example 6": Since 1.61.3, you can have different kinds of message showing in different style: response.flash=DIV("it is fine",_class="info") or: response.flash=DIV("...",_class="warn") or: response.flash=DIV("Oops!",_class="error") On Apr19, 11:25pm, mdipierro wrote: > yes we can do that. I can include a warn, info and error in different > colors. > > Massimo > > > On Sun, Apr 19, 2009 at 10:04 AM, mdipierro wrote: > > > > BTW... one can also do > > > > response.flash=DIV("this is a message",_class="warn") > > > > and then declare a class "warn" in the CSS. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20505] psycopg2-2.0.10 install linux ,help me
[r...@localhost psycopg2-2.0.10]# python setup.py install running install running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 410, in ? ext_modules=ext) File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command cmd_obj.run() File "/usr/lib/python2.4/distutils/command/install.py", line 506, in run self.run_command('build') File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command cmd_obj.run() File "/usr/lib/python2.4/distutils/command/build.py", line 112, in run self.run_command(cmd_name) File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized self.finalize_options() File "setup.py", line 219, in finalize_options except(Warning, w): NameError: global name 'w' is not defined [r...@localhost psycopg2-2.0.10]# [r...@localhost psycopg2-2.0.10]# python -V Python 2.4.3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20506] Re: forms in web2py
in Controller/index.py: def getcities(): citystr = request.vars.values()[0] if citystr == "Delhi": output = "Hyderabad" elif citystr == "Tamil Nadu": output = "Chennai" elif citystr == "Andhra Pradesh": output = "Pune" else: output = "mumbai" return output def index1(): form=FORM(TABLE( TR("State:", SELECT("Andhra Pradesh","Delhi","Tamil Nadu",_name="States", _id="States",default="Delhi",_onchange="ajax('/Test/default/getcities', ['States'],'handle')",requires=[IS_NOT_EMPTY()])), TR(DIV(_id="handle")), TR("District", SELECT("","asfas","safee", _name="Choose", _id="district", default="", requires=[IS_NOT_EMPTY ()] return dict(form=form) This is how i've written a form with ajax to auto-populate SELECT boxes. But in the above code, if i want to use the "handle" variable and display it as an option in SELECT box, I'm not able to do that. If i return a list into the "handle" variable then how do i populate the list in SELECT box. Please reply me asap. Thanks, Nazgi. On Apr 25, 2:21 pm, Nazgi wrote: > Hi, > > I hav written a form in controller of my application. The form > has a select option which based on its input uses ajax and calls a > function. This function sends a json list object. How do I access that > variable in order to incorporate the contents of that list as another > select option menu.? > > Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20507] Need help with query on datetime field
# model db.define_table('a',SQLField('dts','datetime')) import datetime now=datetime.datetime.now() # this works db(db.a.dts > now).select(db.a.ALL) # this doesn't work db(db.a.dts.weekday() == now.weekday()).select(db.a.ALL) # this also doesn't work db(db.a.dts.day > now.day).select(db.a.ALL) Can you see what I'm trying to do? If so, how do I do this? Seems like it should work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20508] Adding [Try View] to Design options
Would it be possible to add a Try View to the Design page, rather than having to Edit then try view? Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20509] Re: seamless implicit memcache from Alkis Evlogimenos - on we2py?
I do not know about this specific issue but in web2py can do from gluon.contrib.gae_memcache import MemcacheClient cache.ram=cache.disk=MemcacheClient(request) and then cache any query db(...).select(...,cache=(cache.ram,3000)) 3000 are ms Massimo On Apr 25, 6:29 am, dlypka wrote: > Is there a way to use this memcache 'shim' in a web2py app? > If so, would I have to insert the calls in my web2py app source code, > or do I have to modify a low level module in the web2py framework? > Please give details if possible. > > Here is the posting link from Alkis Evlogimenos on the GAE > forum:http://groups.google.com/group/google-appengine-python/browse_thread/... > > The title is "seamless (mem)caching of entities" > The forum is > google-appengine-python --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20510] Re: psycopg2-2.0.10 install linux ,help me
This looks like a psycopg issue. Mind that you need python 2.5 to run web2py. On Apr 25, 11:53 am, "wengfei2...@163.com" wrote: > [r...@localhost psycopg2-2.0.10]# python setup.py install > running install > running build > running build_py > running build_ext > Traceback (most recent call last): > File "setup.py", line 410, in ? > ext_modules=ext) > File "/usr/lib/python2.4/distutils/core.py", line 149, in setup > dist.run_commands() > File "/usr/lib/python2.4/distutils/dist.py", line 946, in > run_commands > self.run_command(cmd) > File "/usr/lib/python2.4/distutils/dist.py", line 966, in > run_command > cmd_obj.run() > File "/usr/lib/python2.4/distutils/command/install.py", line 506, in > run > self.run_command('build') > File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.4/distutils/dist.py", line 966, in > run_command > cmd_obj.run() > File "/usr/lib/python2.4/distutils/command/build.py", line 112, in > run > self.run_command(cmd_name) > File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.4/distutils/dist.py", line 965, in > run_command > cmd_obj.ensure_finalized() > File "/usr/lib/python2.4/distutils/cmd.py", line 117, in > ensure_finalized > self.finalize_options() > File "setup.py", line 219, in finalize_options > except(Warning, w): > NameError: global name 'w' is not defined > [r...@localhost psycopg2-2.0.10]# > > [r...@localhost psycopg2-2.0.10]# python -V > Python 2.4.3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20511] Re: forms in web2py
Not sure I understand but you can try: def getcities(): citystr = request.vars.values()[0] if citystr == "Delhi": output = "Hyderabad" elif citystr == "Tamil Nadu": output = "Chennai" elif citystr == "Andhra Pradesh": output = "Pune" else: output = "mumbai" return TAG[''](OPTION(""),OPTION("asfas"),OPTION ("safee"),OPTION(output)) def index1(): form=FORM(TABLE( TR("State:", SELECT("Andhra Pradesh","Delhi","Tamil Nadu",_name="States", _id="States",default="Delhi",_onchange="ajax('/Test/default/ getcities', ['States'],'district')",requires=[IS_NOT_EMPTY()])), TR("District", SELECT("","asfas","safee", _name="Choose", _id="district", default="", requires=[IS_NOT_EMPTY ()] return dict(form=form) On Apr 25, 3:51 pm, newbie wrote: > in Controller/index.py: > def getcities(): > citystr = request.vars.values()[0] > if citystr == "Delhi": > output = "Hyderabad" > elif citystr == "Tamil Nadu": > output = "Chennai" > elif citystr == "Andhra Pradesh": > output = "Pune" > else: > output = "mumbai" > return output > > def index1(): > form=FORM(TABLE( > TR("State:", SELECT("Andhra > Pradesh","Delhi","Tamil Nadu",_name="States", > _id="States",default="Delhi",_onchange="ajax('/Test/default/getcities', > ['States'],'handle')",requires=[IS_NOT_EMPTY()])), > TR(DIV(_id="handle")), > TR("District", SELECT("","asfas","safee", > _name="Choose", _id="district", default="", requires=[IS_NOT_EMPTY > ()] > return dict(form=form) > > This is how i've written a form with ajax to auto-populate SELECT > boxes. But in the above code, if i want to use the "handle" variable > and display it as an option in SELECT box, I'm not able to do that. If > i return a list into the "handle" variable then how do i populate the > list in SELECT box. Please reply me asap. > > Thanks, > Nazgi. > > On Apr 25, 2:21 pm, Nazgi wrote: > > > Hi, > > > I hav written a form in controller of my application. The form > > has a select option which based on its input uses ajax and calls a > > function. This function sends a json list object. How do I access that > > variable in order to incorporate the contents of that list as another > > select option menu.? > > > Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20512] Re: Need help with query on datetime field
these will work: db(db.a.dts.day() > now.day).select(db.a.ALL) db(db.a.dts.month() > now.day).select(db.a.ALL) db(db.a.dts.year() > now.day).select(db.a.ALL) weekday() is not supported. Perhaps we can add it. Let me look into it. Massimo On Apr 25, 4:08 pm, weheh wrote: > # model > db.define_table('a',SQLField('dts','datetime')) > > import datetime > now=datetime.datetime.now() > > # this works > db(db.a.dts > now).select(db.a.ALL) > > # this doesn't work > db(db.a.dts.weekday() == now.weekday()).select(db.a.ALL) > > # this also doesn't work > db(db.a.dts.day > now.day).select(db.a.ALL) > > Can you see what I'm trying to do? If so, how do I do this? Seems like > it should work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20513] Re: Adding [Try View] to Design options
Sorry I do not inderstand. You cannot try a view without an associated action. On Apr 25, 4:48 pm, mikech wrote: > Would it be possible to add a Try View to the Design page, rather than > having to Edit then try view? > > Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20514] Re: SQLFORM
You might want to look at this thread... http://groups.google.co.nz/group/web2py/browse_thread/thread/405c0bcfc6a2df2f It shows how you can have several "submit" buttons and then use your controller to dynamically determine the specific redirect. On Apr 25, 6:24 pm, jmverm...@xs4all.nl wrote: > Denes, > > > About the asterisks in col3, you have to use your form's field names > > as in: > > col3=dict(initialen='*', naam='*', ...) > > form[0][-1][1].append(INPUT(_type='reset',_value='Reset')) > > form[0][-1][1].append(INPUT(_type='button',_value='Cancel')) > > This all works. The form[0][-1][1] code is much neater than mine. > > About the _onclick attribute: > > form[0][-1][1].append(INPUT > (_type='button',_value='Cancel',_onclick='javascript:location > ('%s')'%URL(r=request,f='...')) > is all that springs to mind, how do I reference the previous page, > which, as I said , is not in every case the same page. > > > See this recent > > thread:http://groups.google.com/group/web2py/browse_thread/thread/ec7d941c8d... > > This link appears to be broken ... > > Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20515] Re: Request for more organize feature request lists...
On Apr 20, 6:14 pm, Yarko Tymciurak wrote: > web2py Sphinx doc I think will be hosted on bitbucket - we noticed the > planned move of Python itself to mercurial, and this is where Sphinx and > some sphinx books are. > > We have discussed moving web2py and web2conf from launchpad to bitbucket > also. Related note: In addition to what I'd mentioned before: http://mail.python.org/pipermail/python-dev/2009-March/087931.html there is now this also: http://google-code-updates.blogspot.com/2009/04/mercurial-support-for-project-hosting.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20516] Re: Need help with query on datetime field
Thanks, Massimo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20517] append/delete to SQLRow
Is there a way to append or delete a record to an SQLRow item? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20518] Re: append/delete to SQLRow
I do not understand. You can append or delete from a Table. db.table.insert(field=value) db(db.table.field==value).delete() Massimo On Apr 25, 9:40 pm, weheh wrote: > Is there a way to append or delete a record to an SQLRow item? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20519] Re: append/delete to SQLRow
Sorry, I wasn't clear. I want to do something like this: x=db(query0).select(db.table.ALL,orderby=something) x.append(db(query1).select(db.table.ALL,orderby=somethingelse)) I get an error message about not being able to append to an SQLRow object. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20520] Re: append/delete to SQLRow
On Sat, Apr 25, 2009 at 11:40 PM, weheh wrote: > Is there a way to append or delete a record to an SQLRow item? Why do you want that? Isn't there other way? -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20521] Re: append/delete to SQLRow
On Sun, Apr 26, 2009 at 12:14 AM, weheh wrote: > > Sorry, I wasn't clear. I want to do something like this: > > x=db(query0).select(db.table.ALL,orderby=something) > x.append(db(query1).select(db.table.ALL,orderby=somethingelse)) > > I get an error message about not being able to append to an SQLRow > object. There is no .append() method, nor + operator to SQLRow objects. Maybe it can solve your problem: r1 = db(query0).select(db.table.ALL,orderby=something) r2 = db(query1).select(db.table.ALL,orderby=somethingelse) my_rows = r1.as_list() + r2.as_list() So my_rows will be a list of dicts (one dict = one row). -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20522] Re: append/delete to SQLRow
Thanks Álvaro, that looks like it would do the trick. How did you learn this? Did you study the gluon code or did you read about this elsewhere? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20523] Want to make a feature, just would like some help on where to look...
I want to add a feature to the error reporting section of the code. Where is that part of the code? In specific, I would like to add something to where it prints out the final code before running. (When an error happens.) --- Best Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20524] Re: Auth works on local host, doesn't work on remote server
On Sat, Apr 25, 2009 at 6:32 PM, Alexei Vinidiktov wrote: > On Sat, Apr 25, 2009 at 2:30 PM, Alexei Vinidiktov > wrote: >> Hello, >> >> I'm beginning to learn user authentication. I've implemented a very >> basic authentication using the Auth module that works fine on my local >> machine: I can register a user, a confirmation email is sent out, the >> user can confirm his email, login and logout. >> >> I copied the app to a remote server and tried to register a user, but >> after I entered all the user information and hit Submit I got >> redirected back to the registration page and no email was sent to the >> user being registered, no ticket was generated either. >> >> I'd appreciate any clues. >> >> I'm using web2py 1.59. My local machine is a WinXP box, the remote >> server is on a Linux distro. >> > > Additional info: > > After my unsuccessful attempt to register I was redirected to the same > registration page (which is just a scaffold provided by web2py) and > then I looked at the session info by clicking on the corresponding > button and it said "auth : None, flash : Invalid email", but no flash > was shown to the user (i.e. to me). I tried different email, but > always got the same flash : invalid email in the session info. > > I've updated my web2py installation on the remote server to the latest version, but it didn't help. Do you have any guesses at all as to what may be happening? -- Alexei Vinidiktov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20525] Re: Want to make a feature, just would like some help on where to look...
I do not understand. Can you post an example? On Apr 25, 11:26 pm, Jason Brower wrote: > I want to add a feature to the error reporting section of the code. > Where is that part of the code? > In specific, I would like to add something to where it prints out the > final code before running. (When an error happens.) > --- > Best Regards, > Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20526] Re: Auth works on local host, doesn't work on remote server
On Sun, Apr 26, 2009 at 12:45 PM, Alexei Vinidiktov wrote: > On Sat, Apr 25, 2009 at 6:32 PM, Alexei Vinidiktov > wrote: >> On Sat, Apr 25, 2009 at 2:30 PM, Alexei Vinidiktov >> wrote: >>> Hello, >>> >>> I'm beginning to learn user authentication. I've implemented a very >>> basic authentication using the Auth module that works fine on my local >>> machine: I can register a user, a confirmation email is sent out, the >>> user can confirm his email, login and logout. >>> >>> I copied the app to a remote server and tried to register a user, but >>> after I entered all the user information and hit Submit I got >>> redirected back to the registration page and no email was sent to the >>> user being registered, no ticket was generated either. >>> >>> I'd appreciate any clues. >>> >>> I'm using web2py 1.59. My local machine is a WinXP box, the remote >>> server is on a Linux distro. >>> >> >> Additional info: >> >> After my unsuccessful attempt to register I was redirected to the same >> registration page (which is just a scaffold provided by web2py) and >> then I looked at the session info by clicking on the corresponding >> button and it said "auth : None, flash : Invalid email", but no flash >> was shown to the user (i.e. to me). I tried different email, but >> always got the same flash : invalid email in the session info. >> >> > > I've updated my web2py installation on the remote server to the latest > version, but it didn't help. > > Do you have any guesses at all as to what may be happening? > > Another piece of information. Logging in and logging out both do seem to work on the remote server, only registration of new users doesn't work. -- Alexei Vinidiktov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20527] jDive and refresh button - just #null instead of javascript:void
ceej, in firefox there is a js error when clicking on the jDiv refresh button. I found this article: http://blog.reindel.com/2006/08/11/a-hrefjavascriptvoid0-avoid-the-void/ The idea I liked was using #null. I just changed javascript:void (2 instances) to #null in jDive.py and it works like a charm now, no js error on clicking refresh button c/ya, -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20528] Re: Need help with query on datetime field
How would you describe day() vs. day in db.a.dts.day() vs. now.day? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20529] Re: Need help with query on datetime field
for a field, field.day() represents the function that extacts the day from a date. It is not a value. for a date, date.day is the day of the date. It is a value. There should not be any confusion. Massimo On Apr 26, 12:05 am, weheh wrote: > How would you describe day() vs. day in db.a.dts.day() vs. now.day? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20530] Re: Want to make a feature, just would like some help on where to look...
do you mean add something to the ticket? or to a response.flash? On Sat, Apr 25, 2009 at 10:26 PM, Jason Brower wrote: > > I want to add a feature to the error reporting section of the code. > Where is that part of the code? > In specific, I would like to add something to where it prints out the > final code before running. (When an error happens.) > --- > Best Regards, > Jason Brower > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---
[web2py:20531] About file upload and renaming
Hi pals, I've read "About file upload and renaming" here: http://mdp.cti.depaul.edu/AlterEgo/default/show/50 I think it is somewhat hard to remember we should do: form.vars.filename=do_something(request.vars.file.filename) rather than: request.vars.filename=do_something(request.vars.file.filename) # I tried, it does not work So I suggest to use another less-ambiguous way, based on the onvalidation callback. In controllers: def test(): form=SQLFORM(...) def validate(form): # There is no way here you would mistakenly try to use request.vars form.vars.filename=form.vars.file.filename if form.accepts(request.vars,session,onvalidation=lambda f:validate (f)): response.flash='ok' return {'':form} PS: I've post a comment on that AlterEgo link too, waiting for approval. Sincerely, Iceberg, 2009-Apr-26, 13:51(PM), Sun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~--~~~~--~~--~--~---