[web2py:29481] Re: Problem with using gluon code in a module

2009-08-27 Thread mdipierro
Hi Krista, can you email me ticket and or the app? Massimo On Aug 26, 8:29 pm, klarson wrote: > Hello, > > I'm trying to create a form in a custom module.  It was originally in > a controller file and worked fine.  Here's the code: > form = FORM(TABLE( >             TR("Contributor:", INPUT(_na

[web2py:29482] Re: web2py compatibility with snow leopard

2009-08-27 Thread mdipierro
Is it out yet? When we upgrade we'll let you know. I do not expect any problem. On Aug 26, 9:46 pm, vvk wrote: > Is web2py compatible with snow leopard final Gold master ( a432 ) > version ? Any issues there ? --~--~-~--~~~---~--~~ You received this message becaus

[web2py:29483] Re: Global variables in controller

2009-08-27 Thread mdipierro
Globals variables are not persistent. I do not understand how your mechanism work. Can you explain? On Aug 26, 9:54 pm, vvk wrote: > Is it necessary to put authentication check for global variables in > controller ? > > I am using global variables to make sure that certain functions are > called

[web2py:29484] Re: Many-to-many with 3 parties

2009-08-27 Thread mdipierro
yes. this is right. If you add the validators you aslo get the dro boxes. On Aug 26, 10:53 pm, Tim McNamara wrote: > Hi all, > > I am not a DB expert, but am sure there are some in here. I am trying > to a many-to-many(-to-many?) relationship. I would like both > organisations or individuals to

[web2py:29485] Re: Simple question -- where is name of upload file stored?

2009-08-27 Thread Richard
with 1.66.2 _newfilename is returning None from my upload field. Has anyone else experienced this? Richard On Aug 16, 6:30 pm, weheh wrote: > OK, by getting from the trunk the gluon/sql.py and gluon.sqlhtml.py > files, this problem is fixed in the 1.65.11 release. Thank you Massimo > and Yarko

[web2py:29486] Re: web2py compatibility with snow leopard

2009-08-27 Thread Varun Kumar
Yes, It's released on the developer network. I got mine and planning to upgrade. On Thu, Aug 27, 2009 at 12:54 PM, mdipierro wrote: > > Is it out yet? When we upgrade we'll let you know. > I do not expect any problem. > > On Aug 26, 9:46 pm, vvk wrote: > > Is web2py compatible with snow leo

[web2py:29487] Re: Simple question -- where is name of upload file stored?

2009-08-27 Thread mdipierro
This should not be. Please check for spelling errors. On Aug 27, 2:32 am, Richard wrote: > with 1.66.2 _newfilename is returning None from my upload > field. > Has anyone else experienced this? > > Richard > > On Aug 16, 6:30 pm, weheh wrote: > > > OK, by getting from the trunk the gluon/sql.py

[web2py:29488] Re: import SQL Schemma Database into model.py

2009-08-27 Thread aspersieman
I would also be greatly interested in this. Nicol JorgeR wrote: > Any news about this? > > I am about to start a very complex application and have already the DB > designed. > > > > -- Facts: 1) A pizza with the radius z and thickness a has the volume pi*z*z*a 2) Haikus are easy. Bu

[web2py:29489] Re: web2py compatibility with snow leopard

2009-08-27 Thread mr.freeze
On a related note, web2py works flawlessly on Windows 7 RTM :) On Aug 27, 2:24 am, mdipierro wrote: > Is it out yet? When we upgrade we'll let you know. > I do not expect any problem. > > On Aug 26, 9:46 pm, vvk wrote: > > > > > Is web2py compatible with snow leopard final Gold master ( a432 )

[web2py:29490] Re: web2py book, 2nd Ed

2009-08-27 Thread villas
Content is great -- but for me there is a niggle: where are the bookmarks? It is a trivial matter to include bookmarks, I just spent 15 mins adding some; but surely these should already be included in a paid- for PDF? Please consider this a positive criticism because I think the book itself i

[web2py:29493] about captcha

2009-08-27 Thread mdipierro
http://www.reddit.com/r/programming/comments/9en88/how_to_insert_captcha_recaptcha_in_web2py_form/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@goog

[web2py:29491] Re: web2py book, 2nd Ed

2009-08-27 Thread mdipierro
Yes this was a mistake. On Aug 27, 6:16 am, villas wrote: > Content is great -- but for me there is a niggle:  where are the > bookmarks? > > It is a trivial matter to include bookmarks,  I just spent 15 mins > adding some;  but surely these should already be included in a paid- > for PDF? > > P

[web2py:29492] Re: Problem with using gluon code in a module

2009-08-27 Thread mr.freeze
I think you have one too many closures on the end. On Aug 26, 8:29 pm, klarson wrote: > Hello, > > I'm trying to create a form in a custom module.  It was originally in > a controller file and worked fine.  Here's the code: > form = FORM(TABLE( >             TR("Contributor:", INPUT(_name="contr

[web2py:29494] Re: about captcha

2009-08-27 Thread mr.freeze
If you don't like the default theme, you can change it (and other options) by placing a script on the page: var RecaptchaOptions = { theme : 'clean', tabindex : 2 }; More here: http://recaptcha.net/apidocs/captcha/client.html On Aug 27, 6:39 am, mdipierro wrote: > http://www.reddit.co

[web2py:29495] Re: about captcha

2009-08-27 Thread mdipierro
The link did not show in the "news". I deleted and reposted: http://www.reddit.com/r/programming/comments/9enai/using_captcharecaptcha_with_web2py_forms/ It still does not show. Massimo On Aug 27, 6:46 am, "mr.freeze" wrote: > If you don't like the default theme, you can change it (and o

[web2py:29496] Re: run python code from onclick event

2009-08-27 Thread murray3
any further help appreciated with this, as I am stuck?? just need to get the contoller action running from an onclick event in the view, at present nothing happens and I'm not sure if it is jpolite or just using the wrong code? regards chrism On Aug 26, 11:13 pm, murray3 wrote: > Ok I have a be

[web2py:29497] New Book Spanish Translations

2009-08-27 Thread Alfonso de la Guarda
Hi, After a little mail conversation with Massimo, he agrees allows me translate the new book to the spanish. I'll post this mail to avoid duplicate work or communications problem, after receive the sources i'll estimate the translation time. Thanks to all (and specially Massimo)!!! Saludos,

[web2py:29498] Re: New Book Spanish Translations

2009-08-27 Thread mdipierro
I am glad you volunteered to do it. We have volunteers for portuguese, Chinese and german as well. It would be nice to have somebody in charge of coordinating this project and keep track of progess independently of the specific language, and keep all translations in one place. Massimo On Aug 27,

[web2py:29499] Re: path issue

2009-08-27 Thread ctalley
Thanks guys. Yarko, you are nothing if not prolific - all I ever wanted to know and more. :-) I just felt like there must be some mechanism to tell python where to find files from the command prompt short of typing the entire path and that I was missing something. I didn't really think pythonpa

[web2py:29502] clean up the session files

2009-08-27 Thread 陶艺夫
Hi, Under windows, is there another way other than running "session2trash.py" in the background(windws always show a command window) to clean up the session files periodically? What if I do cleanup work every request-check the files timestamp then delete them if time expired? If the sessions are s

[web2py:29500] can't import csv data file

2009-08-27 Thread Carlos Aboim
Hi list, I want import some data from a CSV file through admin but it keeps getting me error. CSV is made with Excel app, by default those CSV files came with semi- colon (;) and not coma (,) which I chaged outside Excel. I exported some data that was in web2py app and follow that format but stil

[web2py:29501] Re: web2py compatibility with snow leopard

2009-08-27 Thread Wes James
some problems might come from python version: python -V Python 2.6.1 On Wed, Aug 26, 2009 at 8:46 PM, vvk wrote: > > > Is web2py compatible with snow leopard final Gold master ( a432 ) > version ? Any issues there ? > --~--~-~--~~~---~--~~ You received this mess

[web2py:29509] Re: web2py book, 2nd Ed

2009-08-27 Thread mdipierro
Yes, makes no difference to me but consider, you'd be cutting few valuable dollars from the web2py budget. ;-) On Aug 27, 9:47 am, Don Lee wrote: > I believe in a previous thread you wrote that people who bought the previous > edition from lulu could get a free copy of the 2nd edition if they se

[web2py:29503] Re: web2py book, 2nd Ed

2009-08-27 Thread Don Lee
I believe in a previous thread you wrote that people who bought the previous edition from lulu could get a free copy of the 2nd edition if they sent you a copy of their receipt. Does that offer still stand? On Thu, Aug 27, 2009 at 7:24 AM, mdipierro wrote: > > Yes this was a mistake. > > On Aug

[web2py:29512] Re: New Book Spanish Translations

2009-08-27 Thread mdipierro
The policy is that the translator and I will have joint copyright ownership. I leave it to the translator to determine the distribution venue. It is ok with me if they are distributed for free. Massimo On Aug 27, 10:29 am, DenesL wrote: > Under what conditions will those translations be availab

[web2py:29513] Re: Disable admin app

2009-08-27 Thread mdipierro
If you start web2py without a password it is disabled. You can also delete the parameters_80.py files which contains the password for access via the 80 port. On Aug 27, 10:36 am, Pynthon wrote: > Ah so you did something so other people can't access admin? Wouldn't > it be a good idea that you ca

[web2py:29504] Re: path issue

2009-08-27 Thread Jonathan Lundell
On Aug 27, 2009, at 7:16 AM, ctalley wrote: > Thanks guys. Yarko, you are nothing if not prolific - all I ever > wanted to know and more. :-) > > I just felt like there must be some mechanism to tell python where to > find files from the command prompt short of typing the entire path and > that

[web2py:29505] Re: Problem with using gluon code in a module

2009-08-27 Thread DenesL
Krista, check your parentheses, they are unbalanced. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group,

[web2py:29506] Re: can't import csv data file

2009-08-27 Thread mdipierro
I do not know but you can try from the web2py shell improt csv reader = csv.reader(open(filename, "rb"), delimiter=";") for (k,row) in enumerate(reader): if k==0: keys=dict([(i,h.split('.')[1]) for (i,h) in enumerate(row)]) ncols=len(keys) print 'keys=',keys else:

[web2py:29507] Re: clean up the session files

2009-08-27 Thread mdipierro
Often I just put this in a model: ps=os.path.join(request.folder,'sessions') try: [os.unlink(os.path.join(ps,f)) for f in os.listdir(ps) if os.stat (os.path.join(ps,f))[stat.ST_MTIME] wrote: > Hi, > > Under windows, is there another way other than running "session2trash.py" in > the background(wi

[web2py:29510] Re: can't import csv data file

2009-08-27 Thread 陶艺夫
Check your csv file, does it contain some empty rows? Or does your data contain any coma ( which will tell the csv reader you have more fields than you expect)? Or some fields get illegal values? good luck. 2009/8/27 Carlos Aboim > > Hi list, > > I want import some data from a CSV file through

[web2py:29511] Re: Disable admin app

2009-08-27 Thread Pynthon
Ah so you did something so other people can't access admin? Wouldn't it be a good idea that you can disable the admin app like a config.py file as example: admin = false On 26 aug, 15:50, Yarko Tymciurak wrote: > On Wed, Aug 26, 2009 at 4:34 PM, mdipierro wrote: > > > Assuming you run web2py

[web2py:29508] Re: New Book Spanish Translations

2009-08-27 Thread DenesL
Under what conditions will those translations be available?. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from thi

[web2py:29514] options_std.py missing attributes

2009-08-27 Thread Kevin Butler
The standard options file is missing two attributes: python web2py.py --config options_std.py fails with the following: Traceback (most recent call last): File "web2py.py", line 20, in gluon.widget.start(cron=True) File "/opt/web2py/gluon/widget.py", line 779, in start if options.e

[web2py:29521] Re: clean up the session files

2009-08-27 Thread Yarko Tymciurak
also, for reference - on windows I believe it's pythonw.exe that will run a script w/o a command window On Thu, Aug 27, 2009 at 10:28 AM, mdipierro wrote: > > Often I just put this in a model: > > ps=os.path.join(request.folder,'sessions') > try: [os.unlink(os.path.join(ps,f)) for f in os.listdir

[web2py:29527] Re: Problem with using gluon code in a module

2009-08-27 Thread klarson
My import statements: from gluon.html import * from gluon.validators import * I haven't figured out why but I can't view the error tickets in web2py (just started recently). If I click on the link, it redirects to a new Internal Error with a new number (though no new error is logged). Does anyon

[web2py:29528] Re: Problem with using gluon code in a module

2009-08-27 Thread mr.freeze
Error tickets are stored in web2py/applications/yourapp/errors. On Aug 27, 1:43 pm, klarson wrote: > My import statements: > from gluon.html import * > from gluon.validators import * > > I haven't figured out why but I can't view the error tickets in web2py > (just started recently).  If I click

[web2py:29516] Re: web2py book, 2nd Ed

2009-08-27 Thread JohnMc
Minor observation that I hope helps, Massimo. Going out to Lulu, if you do a search for web2py what is depicted is the old book cover from V1. Going to the 'read more' link shows the new cover with the revision title as V2. Might want to suggest to the Lulu folks to get the new cover up there. Ma

[web2py:29520] Re: path issue

2009-08-27 Thread Yarko Tymciurak
On Wed, Aug 26, 2009 at 4:32 PM, Yarko Tymciurak wrote: > >>> >>> I've added the web2py.py path to sys.path using sys.path.append and >>> verified using print sys.path >> >> Again - this would have an effect if you wrote a script that did >> "import web2py" - but since web2py isn't a module (

[web2py:29517] Re: path issue

2009-08-27 Thread Yarko Tymciurak
On Thu, Aug 27, 2009 at 9:16 AM, ctalley wrote: > > Thanks guys.  Yarko, you are nothing if not prolific - all I ever > wanted to know and more. :-) > > I just felt like there must be some mechanism to tell python where to > find files from the command prompt short of typing the entire path and >

[web2py:29518] Re: path issue

2009-08-27 Thread Yarko Tymciurak
On Thu, Aug 27, 2009 at 11:26 AM, Yarko Tymciurak wrote: > On Thu, Aug 27, 2009 at 9:16 AM, ctalley wrote: >> >> Thanks guys.  Yarko, you are nothing if not prolific - all I ever >> wanted to know and more. :-) >> >> I just felt like there must be some mechanism to tell python where to >> find fil

[web2py:29531] Re: web2py book, 2nd Ed

2009-08-27 Thread mikech
No Flavio: Kpfk is better! www.kpfk.org :) On Aug 26, 11:30 am, OpenRising wrote: > out of the topic :) > > Yeah @snfctech, > > http://www.kpfa.orgis the best RADIO on the Planet ;) > Please support his amazing 50+ years World community radio located in > Berkeley ;) > > I just bought my co

[web2py:29519] Re: Problem with using gluon code in a module

2009-08-27 Thread klarson
Please ignore the parentheses as I cut/paste a segment of the code from the entire form. It has several more TR elements but they all work once I remove the INPUT element. The entire code works in the controller so there shouldn't be a parentheses problem. On Aug 27, 10:22 am, DenesL wrote: >

[web2py:29532] Re: web2py book, 2nd Ed

2009-08-27 Thread Don
I just bought it a month ago. So it kind of burns to have to buy another copy. Have you considered creating some kind of not profit for web2py. Then setup a donation. I'd gladly donate to the web2py to help fund your work and keep the documentation free(ly accessible). Nothing is truly free ;

[web2py:29515] Re: can't import csv data file

2009-08-27 Thread Yarko Tymciurak
try reading the excel file with Open Office, and exporting a csv from there - see if that works better. On Thu, Aug 27, 2009 at 9:33 AM, Carlos Aboim wrote: > > Hi list, > > I want import some data from a CSV file through admin but it keeps > getting me error. > CSV is made with Excel app, by def

[web2py:29529] Re: New Book Spanish Translations

2009-08-27 Thread Alexandre Andrade
Well, its a good idea. I can help translate to portuguese, if needed. 2009/8/27 mdipierro > > I am glad you volunteered to do it. We have volunteers for portuguese, > Chinese and german as well. > It would be nice to have somebody in charge of coordinating this > project and keep track of proge

[web2py:29533] Re: Modifying form auth.register() to display Password2 label

2009-08-27 Thread Russell
The example on the bottom of page 212 in the new book shows you how to do it. On Aug 27, 6:40 pm, ed wrote: > Hi, > It tried modifying the default.py auth.register() form with the > following code: > def user(): >     if request.args(0)=='register': >         response.flash=T('Register') >      

[web2py:29523] Re: New Book Spanish Translations

2009-08-27 Thread DenesL
On Aug 27, 11:38 am, mdipierro wrote: > The policy is that the translator and I will have joint copyright > ownership. I leave it to the translator to determine the distribution > venue. It is ok with me if they are distributed for free. > > Massimo Alfonso, if you plan to make it available for

[web2py:29530] Re: web2py book, 2nd Ed

2009-08-27 Thread mikech
Bought it On Aug 26, 2:34 am, mdipierro wrote: > The new web2py book is available on lulu.com > >      http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in total). Covers > Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better > dep

[web2py:29534] Re: new website running on web2py

2009-08-27 Thread Tim McNamara
On Aug 26, 11:54 pm, Jason Brower wrote: > This is a simple website with some dynamic text that I am building for a > manufacturing company in Taiwan.  It was very easy to do. > It will obviously get better with time.  And a lot of the code you will > never see. (That's a good thing. :D)http://tr

[web2py:29535] How to access the checked property?

2009-08-27 Thread Jose
Hi, The follows is a simplification. If my controller is: def buscar(): form = FORM(TABLE( TR(INPUT(_name='mytxt', _id='mytxt', _value='a text...')), TR(INPUT(_type='checkbox', _name='mychk', _id='mychk', _value='')), TR("", INPUT(_type="submit",_value="B

[web2py:29536] Re: Many-to-many with 3 parties

2009-08-27 Thread Tim McNamara
On Aug 27, 7:26 pm, mdipierro wrote: > yes. this is right. If you add the validators you aslo get the dro > boxes. > Thanks :) SQLFORM with drop boxes is a very nice feature, btw. Tim > On Aug 26, 10:53 pm, Tim McNamara wrote: > > > > > Hi all, > > > I am not a DB expert, but am sure there are

[web2py:29539] Re: clean up the session files

2009-08-27 Thread mdipierro
When you get internal error it should show the traceback on the console. Can you read that? Massimo On Aug 27, 12:51 pm, 陶艺夫 wrote: > Thank you, mdipierro! > > I've put the cleanup code in logout method, to avoid per request check. I > don't know if it is more reasonable. > > "pack-compiled" ju

[web2py:29525] Re: clean up the session files

2009-08-27 Thread 陶艺夫
Thank you, mdipierro! I've put the cleanup code in logout method, to avoid per request check. I don't know if it is more reasonable. "pack-compiled" just give me a "Internal error" message by the message flash. I'm using the newest version of web2py, 1.66.2 2009/8/28 Yarko Tymciurak > > also,

[web2py:29540] Re: Problem with using gluon code in a module

2009-08-27 Thread mdipierro
This should not be happening. You are one of the first web2py users. Is it possible you upgraded web2py but not the admin app? Try the following: 1) delete everything in yourapp/errors and admin/errors 2) run web2py with python web2py.py -upgrade=yes and than check the ticket again. If you get a

[web2py:29541] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
I'm not sure why it's always on but you can store the state of the checkbox in a hidden field and pass it back with the ajax request like so: def search2(): form = FORM( TABLE( TR(INPUT(_name='mytxt', _id='mytxt', _value='a text...')), T

[web2py:29543] Re: clean up the session files

2009-08-27 Thread 陶艺夫
No. There were not any errors shown in the console, it seemd nothing had happened - that's why I could not figure out what was wrong. Thanks. 2009/8/28 mdipierro > > When you get internal error it should show the traceback on the > console. Can you read that? > > Massimo > > On Aug 27, 12:51 pm

[web2py:29544] Re: How to access the checked property?

2009-08-27 Thread Jose
On 27 ago, 23:27, "mr.freeze" wrote: > I'm not sure why it's always on but you can store the state of the > checkbox in a hidden field and pass it back with the ajax request like > so: > > def search2(): >     form = FORM( >                 TABLE( >                     TR(INPUT(_name='mytxt', _

[web2py:29526] Re: web2py book, 2nd Ed

2009-08-27 Thread Yan Wu
Brought the new book, great job Massimo, I'll working with Zoom translate this book into Chinese. On Aug 26, 4:34 am, mdipierro wrote: > The new web2py book is available on lulu.com > >      http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in

[web2py:29537] Re: web2py book, 2nd Ed

2009-08-27 Thread Philip Kilner
Hi Massimo, mdipierro wrote: > The new web2py book is available on lulu.com > > http://www.lulu.com/content/e-book/web2py/4968879 > > Lots of new stuff with100 more pages (341 pages in total). Covers > Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better > deployment recipes.

[web2py:29538] Re: options_std.py missing attributes

2009-08-27 Thread mdipierro
oops. thanks. On Aug 27, 10:45 am, Kevin Butler wrote: > The standard options file is missing two attributes: > > python web2py.py --config options_std.py > > fails with the following: > > Traceback (most recent call last): >   File "web2py.py", line 20, in >     gluon.widget.start(cron=True) >

[web2py:29542] Re: web2py book, 2nd Ed

2009-08-27 Thread mdipierro
I apologize for my comment below. It did not come out well. 1) Yes, if people send me receipts I will email back the new book 2) There should be a mechanism to accept donations. 3) There is no much profit on my side in selling the book and I try to reinvest those profits into web2py (I pay for

[web2py:29548] Re: How to access the checked property?

2009-08-27 Thread Jose
On 28 ago, 00:26, "mr.freeze" wrote: > I think I see what's going on.  web2py's ajax function is explicitly > getting the 'value' of each element id that is passed.  The value of a > checkbox doesn't change, ... It is true, so look for ways to access the checked property. Jose --~--~---

[web2py:29551] Re: clean up the session files

2009-08-27 Thread 陶艺夫
I add printing taceback code into gluon.admin's app_pack method after 'Except:', and now I get the console output: " [Error 32] : ''. Does it mean I/O error in windows? I stopped the server, deleted all files under the path, and try again... The error was still there. 2009/8/28 陶艺夫 > No. There

[web2py:29546] Re: clean up the session files

2009-08-27 Thread mdipierro
Can anybody else reproduce this? On Aug 27, 7:07 pm, 陶艺夫 wrote: > No. There were not any errors shown in the console, it seemd nothing had > happened - that's why I could not figure out what was wrong. > > Thanks. > > 2009/8/28 mdipierro > > > > > When you get internal error it should show the

[web2py:29552] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
Even better: let jQuery serialize the entire form since it knows how to handle all of the form elements properly: function ajaxSubmit(u,t){ query = jQuery("form").serialize(); jQuery.ajax({type: "POST", url: u, data: query, success: function (msg) { if(t==':eval') eval(msg); else

[web2py:29555] Re: How to access the checked property?

2009-08-27 Thread Jose
On 28 ago, 01:44, "mr.freeze" wrote: > Did you try my altered ajax function? Works well!. You can add it to the trunk? Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gr

[web2py:29545] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
I think I see what's going on. web2py's ajax function is explicitly getting the 'value' of each element id that is passed. The value of a checkbox doesn't change, it's just not sent during a submit unless it is checked. The ajax function would need to be changed to account for this. On Aug 27,

[web2py:29558] Re: clean up the session files

2009-08-27 Thread mr.freeze
I do not get error ticket output in the console on Windows. On Aug 27, 7:29 pm, mdipierro wrote: > Can anybody else reproduce this? > > On Aug 27, 7:07 pm, 陶艺夫 wrote: > > > > > No. There were not any errors shown in the console, it seemd nothing had > > happened - that's why I could not figure

[web2py:29554] Re: How to access the checked property?

2009-08-27 Thread Jose
On 28 ago, 01:44, "mr.freeze" wrote: > Did you try my altered ajax function? I tried not entered because apparently when I was sending my message. Now I try it. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:29547] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
You could also alter the ajax function in web2py_ajax.html: function ajax(u,s,t) { var query=""; for(i=0; i0) query=query+"&"; var elem = jQuery("#" + s[i]); if (elem.attr("type")=="checkbox" && elem.attr('checked') == false) continue; query=query+encodeURIComponent(s[i])+"="+e

[web2py:29549] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
Did you try my altered ajax function? It should only send back the checkbox if it is check. Hope that helps. On Aug 27, 8:40 pm, Jose wrote: > On 28 ago, 00:26, "mr.freeze" wrote: > > > I think I see what's going on.  web2py's ajax function is explicitly > > getting the 'value' of each elemen

[web2py:29557] Re: clean up the session files

2009-08-27 Thread 陶艺夫
I appended a line "tar.close()" to the tar() method in the file "fileutils.py", now it's ok. :) 2009/8/28 陶艺夫 > The error occured when 'os.unlink(tarname)'. Error 32 means the file is > still open. I don't know why and am working on it. > > 2009/8/28 陶艺夫 > >> No. There were not any errors show

[web2py:29550] Re: new website running on web2py

2009-08-27 Thread Jason Brower
hehe... dang it your right!... On Thu, 2009-08-27 at 13:43 -0700, Tim McNamara wrote: > On Aug 26, 11:54 pm, Jason Brower wrote: > > This is a simple website with some dynamic text that I am building for a > > manufacturing company in Taiwan. It was very easy to do. > > It will obviously ge

[web2py:29556] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
I'll submit a patch. On Aug 27, 9:59 pm, Jose wrote: > On 28 ago, 01:44, "mr.freeze" wrote: > > > Did you try my altered ajax function? > > Works well!. You can add it to the trunk? > > Jose --~--~-~--~~~---~--~~ You received this message because you are subscrib

[web2py:29560] Re: web2py book, 2nd Ed

2009-08-27 Thread Alexandre Andrade
About 2), it is easy if you use paypal, https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside 2009/8/27 mdipierro > > I apologize for my comment below. It did not come out well. > > 1) Yes, if people send me receipts I will email back the new book > > 2) There should be a m

[web2py:29553] Re: clean up the session files

2009-08-27 Thread 陶艺夫
The error occured when 'os.unlink(tarname)'. Error 32 means the file is still open. I don't know why and am working on it. 2009/8/28 陶艺夫 > No. There were not any errors shown in the console, it seemd nothing had > happened - that's why I could not figure out what was wrong. > > Thanks. > > 2009/

[web2py:29564] Re: How to access the checked property?

2009-08-27 Thread mr.freeze
I sent a patch to Massimo but for posterity, here is the fixed ajax function and added an ajaxForm(url,formIndex,targetResponseID) function that grabs the entire form (by index i so use 0 for single form pages): function ajax(u,s,t) { query = []; for(i=0; i wrote: > I'll submit a patch. > > O

[web2py:29562] Hmm, images are not loading...

2009-08-27 Thread Jason Brower
I am running 1.66.2 and have this in the view... --- --- And this in the controller... --- def img(): response.download(request,db) --- And I can see it "Trying to load the image here... http://trimaxsafety.com.tw/welcome/default/product_manager I have found the images... they are uploading..

[web2py:29563] upgrade migrate error

2009-08-27 Thread Richard
I upgraded to latest version of web2py and now I am getting this error (not sure if those 2 events are related): Traceback (most recent call last): File "/home/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/home/web2py/applications/studio09/models/d

[web2py:29559] Re: clean up the session files

2009-08-27 Thread 陶艺夫
I thought a file would be closed automatically as its handler unreferred(for example, the method referred it ended) and garbage-collected. But we can't count on this, for the time is uncertain. Close the file explicitly maybe a good choice. 2009/8/28 陶艺夫 > I appended a line "tar.close()" to the