Re: [web2py] web2py on Google Drive

2013-08-15 Thread Vineet
On Wednesday, 14 August 2013 02:28:04 UTC+5:30, Luca wrote: > > If you use sqlite, it should work, since the db is kept in a local file. > Luca > There is a mysql-noinstall version available. It can reside in a local folder. -- Vineet -- --- You received this message bec

[web2py] Re: cross hair (full screen) display

2013-08-10 Thread Vineet
Yes But I now removed the css and put it before loading web2py css. jQuery is also loaded only once. Still the same problem. -- Vineet On Sunday, 11 August 2013 00:04:02 UTC+5:30, Anthony wrote: > > Are you putting the CSS code *after* all the CSS loaded by web2py? Are > you inad

[web2py] cross hair (full screen) display

2013-08-10 Thread Vineet
at top & left). If the same code for cross-hairs is put in a stand-alone webpage, crosshairs display & behave correctly. Can anybody suggest something? Is there any other way of displaying full screen crosshairs? Thanks, Vineet -- --- You received this message because you are su

[web2py] Re: database shootout

2013-03-08 Thread Vineet
That's true. But 'Serial' gives four-byte integer (no other option). In MySQL's autoincrement, we can define it on any size of variable (tinyint, mediumint, int, etc.). This would make a difference when data size is large. -- --- You received this message because you are subscribed to the Goo

[web2py] Re: database shootout

2013-03-07 Thread Vineet
The only con with postgres is that it doesn't support autoincrement field by default. We need to create a 'sequence' and an 'after insert trigger' for it. :( MySQL has built-in support for auto-increment field.:) But otherwise, postgres is totally free for any purpose (they say that "no o

[web2py] Re: Help with datatable initialization with server side processing

2012-09-24 Thread Vineet
Have you gone through web2py docs? On Tuesday, 25 September 2012 03:16:06 UTC+5:30, vivek wrote: > > Hi , > > > I am a newbie and a sample view and controller with regard to the > same will help me really kick start. Else anything really helps > > Thanking you, > Vivek > --

[web2py] Re: response.JSON Decimal problem

2012-07-16 Thread Vineet
I grabbed the latest serializers.py from trunk & the problem is solved. Thanks, Vineet --

[web2py] response.JSON Decimal problem

2012-07-16 Thread Vineet
y = str(y) print y, 'type of this y is ', type(y) ## confirmed that all are of type 'str' D = dict(list_of_lists = list_of_lists) return response.json(D) Still, the same error is thrown as under-- TypeError: Decimal('5308.20') is not JSON serializable How do I fix this? Thanks, Vineet

[web2py] Re: debugging procedure

2012-07-01 Thread Vineet
This link might help. https://groups.google.com/forum/?fromgroups#!searchin/web2py/eclipse$20debug$20vineet/web2py/zIOn-NZzuTo/U5hYaI8jJUQJ On Saturday, 30 June 2012 02:43:06 UTC+5:30, Janath wrote: > > Hi, > > So far I have connected the algorithms that I developed in python IDLE to > web2py.

[web2py] Re: Can't import a module

2012-05-27 Thread Vineet
You might import sendgrid in "model" file named "test" In the "test" controller, use the sendgrid namespace. In am doing this kind of stuff successfully in my app. HTH ---Vineet On Saturday, May 26, 2012 12:49:08 AM UTC+5:30, Yarin wrote: > > For the first

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-04-23 Thread Vineet
IMHO, stackoverflow offers wide functionaity such as post comments to answers, edit the comment / edit the answer, rate the comments/answers, accepted answer, etc. +1 for moving to stackoverflow -- Vineet On Monday, April 23, 2012 11:37:13 AM UTC+5:30, Timmie wrote: > > > +1 fo

[web2py] Re: Menu Items

2012-04-22 Thread Vineet
I am using a menu based on pure css. Replaced the superfish menu completely. If you are interested, I can share the code. -- Vineet On Monday, April 23, 2012 12:07:55 AM UTC+5:30, Vibhor Purandare wrote: > >I want attractive menu like HTML 5 How would i get > that in web2py > >

[web2py] Re: DataTables Help needed

2012-04-06 Thread Vineet
know on this list. HTH -- Vineet

Re: [web2py] create global variable

2012-04-04 Thread Vineet
Why not to use session storage object? It is available globally. If you are using a dict such as -- {k1:v1, k2:v2}, you might consider using -- session.k1=v1, session.k2=v2 --Vineet On Thursday, April 5, 2012 3:40:09 AM UTC+5:30, Richard wrote: > > Hello, > > I use to build dict

[web2py] Re: Show the pop up by using the controller

2012-04-04 Thread Vineet
>From the view, call controller function function via web2py's built-in ajax function and use eval argument (by using eval, the javascript code from controller will be executed). web2py's docs explain this nicely. In controller, return javascript code for pop-up. HTH Vineet

[web2py] Re: $.ajax : how to parse data sent to the controller

2012-02-21 Thread Vineet
Oh I see. It worked as per your tip. Thank you ! :) -- Vineet On Feb 21, 4:17 pm, Wikus van de Merwe wrote: > if "students" in request.vars: >   students = json.loads(request.vars.students) >   print students[0]["student_id"] > > For python 2.5 you might

[web2py] $.ajax : how to parse data sent to the controller

2012-02-21 Thread Vineet
println "Student id: " + students[0].studentId//first element of the students list is accessed as a map holding a key studentId In web2py, how to port this code? Thanks, Vineet

[web2py] Re: unable to call ajax url from external javascript.

2012-02-20 Thread Vineet
In your statement -- ajax("{{=URL(r=request,c='control2',f='function1')}}"['name'],'target'); comma is missing after URL and before ['name']. Check whether it is a typo or otherwise. Secondly, double check whether the external js file

[web2py] Re: unable to call ajax url from external javascript.

2012-02-20 Thread Vineet
In your statement -- ajax("{{=URL(r=request,c='control2',f='function1')}}"['name'],'target'); comma is missing after URL and before ['name']. Check whether it is a typo or otherwise. -- Vineet On Feb 21, 1:01 am, Alan Etkin wrot

[web2py] Re: simplejson output sent to browser gives additional brackets [ ]

2012-02-15 Thread Vineet
Or maybe by using javascript, can it be trimmed for "[" and "]" ? -- Vineet On Feb 15, 9:29 pm, Alan Etkin wrote: > Maybe you could add a callback function somewhere in the client-side > script to inspect the object and modify it if it has an unexpected > format.

[web2py] Re: simplejson output sent to browser gives additional brackets [ ]

2012-02-15 Thread Vineet
Yes. The brackets are being added by the browser. I sent the dict from controller as return dict(mydict=D). Then jsonified it & rendered in view. It is without [ ]. Is there any way we can prevent browser from adding the [ ] -- Vineet On Feb 15, 8:05 pm, Anthony wrote: > > How? I gu

[web2py] simplejson output sent to browser gives additional brackets [ ]

2012-02-14 Thread Vineet
in javascript code, for accessing a value, I need to parse it like this: var txds = JSON.parse($('#json_input').val()); alert(txds[0]['a']); instead of this: alert(txds['a']); How do I avoid the [ ]? (if possible) Thanks, Vineet

[web2py] simplejson output sent to browser gives additional brackets [ ]

2012-02-14 Thread Vineet
n javascript code, I need to parse it like this: var txds = JSON.parse($('#json_input').val()); alert(txds[0]['acid']); instead of this: alert(txds['acid']); How do I avoid the [ ]? (if possible) Thanks, Vineet

[web2py] Re: dataTables with serverside json

2012-02-13 Thread Vineet
ay ignore the code regarding "ui" in the below-referred links. http://thewinecellarbook.com/daboDocTestAlt/dabo.biz_module.html#dabo... http://thewinecellarbook.com/daboDocTestAlt/dabo.db_module.html#dabo-db http://thewinecellarbook.com/daboDocTestAlt/ http://www.dabodev.com -- Vineet On Feb

[web2py] Re: dataTables with serverside json

2012-02-13 Thread Vineet
egarding "ui" in the below-referred links. http://thewinecellarbook.com/daboDocTestAlt/dabo.biz_module.html#dabo-biz http://thewinecellarbook.com/daboDocTestAlt/dabo.db_module.html#dabo-db http://thewinecellarbook.com/daboDocTestAlt/ http://www.dabodev.com -- Vineet On Feb 13, 8:16 

[web2py] Re: dataTables with serverside json

2012-02-13 Thread Vineet
Yes. As a side not, DABO is written fully in Python itself. It is a full fledged framework using wxPython for GUI. But I am using its database-interaction tier & business-logic tier (dabo.biz & dabo.db). http://www.dabodev.com http://www.dabodev.com/documentation -- Vineet On Feb 13,

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-12 Thread Vineet
Yeah. Let me dive into these links. Thanks, Vineet On Feb 12, 9:09 pm, Anthony wrote: > Google is your > friend:http://stackoverflow.com/questions/7594740/convert-objects-to-json-an...http://stackoverflow.com/questions/3168401/json-formatting-sending-js...http://www.intelligrape.com/blo

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-12 Thread Vineet
class values also (of html elements) to the ajax controller. (These class values are set/altered after user-interaction.) web2py's ajax function can't pass JSON array to controller. Can you pl. tell how to pass JSON array to controller via ajax? (maybe $.ajax ?) Thanks, Vineet On F

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Vineet
handling add/update/delete on related DB tables. This way, a dataset is unique for every session. I hope my logic is now more clear. I appreciate your hint on using session object for storing this dataset. Any thoughts / suggestions/ corrections please. --- Vineet On Feb 11, 6:22 pm, Anthony

[web2py] cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Vineet
ython object) as argument or vars. So I resorted to cPickle it. +++ My question is:-- I am cPickling in controller & loading (unpickling) in View. After processing in view, cPickling it & again loading (unpickling) in controller. Is it OK or is it weired / horrible (considering speed & good coding practice) ? If not OK, how do I do it with any alternative method ? Thanks, Vineet

[web2py] Re: dataTables with serverside json

2012-02-10 Thread Vineet
' + str(iDisplayLength) + ';' # fetch total data cur.execute(qry1) data_full = cur.getDataSet() iTotalRecords = len(data_full) # fetch data as requested from client cur.execute(qry) data_disp = cur.getDataSet() iTotalDisplayRecords = len

[web2py] Re: debugging

2012-02-10 Thread Vineet
Forgot to mention that Full version of Eclipse is Not required. Only the runtime. You need to google for the runtime binary version download link. -- V On Feb 11, 9:28 am, Vineet wrote: > I am using eclipse + pydev for debugging. > It rocks. > > Miguel Lopes has shared a excellent

[web2py] Re: debugging

2012-02-10 Thread Vineet
=debug+eclipse#55eed4b5c8cd8234 HTH -- Vineet On Feb 11, 4:16 am, Alan Etkin wrote: > There's very useful information about debugging web2py > here:http://groups.google.com/group/web2py/browse_thread/thread/7ea4aadbd2... > > On 10 feb, 03:53, shartha wrote: > > > I foun

[web2py] Re: dataTables with serverside json

2012-02-08 Thread Vineet
Hi Richard ! Pl. excuse my late replying. Glad to hear that you got it working. If you are interested, I can share my code. I am not using "fnInitComplete". Mine is very simple & minimal code. --- Vineet On Feb 7, 10:19 pm, Richard Vézina wrote: > Finally got it to work..

[web2py] NetworkError: 500 INTERNAL SERVER ERROR

2012-01-30 Thread Vineet
&iColumns=3&sColumns... etc. I checked the correctness of this controller by pulling only the data in a separate View file. Its output is perfectly OK. Database Server: MySQL running web2py from source folder. Python 2.7 OS: checked on Ubuntu & Win 7 Any idea what this error means? Thanks, Vineet

[web2py] Re: reload just via ajax (not entire page)

2012-01-28 Thread Vineet
Whatever the authorities assigned to users, irrespective of that, every user will be using the same flash, footer, header, superfish, etc. Considering this, why to reload those common divs (which won't change with different users) & add the overhead?

[web2py] reload just via ajax (not entire page)

2012-01-28 Thread Vineet
I have an observation. When we jump from one view to another, the entire page gets reloaded. Whereas, it should be sufficient to reload just via ajax. Any particular reason as to why the entire page is reloaded every time? For my purpose, on every request, how do I load only via ajax?

[web2py] email updates not recd for this group

2012-01-26 Thread Vineet
I was looking for the email ID of administrator for this group, but couldn't find one. Of late, I am not receiving daily digest email. I have ensured that correct option is checked in 'edit my membership'. Is it only me -or- anybody else is also experiencing the same? -- Vineet

[web2py] Re: why won't web2py create the databases

2012-01-12 Thread Vineet
mp; found that web2py excels amongst them. -- Vineet On Jan 12, 1:06 pm, Marin Pranjić wrote: > DAL reads information from app/databases. > > If you delete it's contents, but do not delete tables in database, you will > get error "table already exists". You can use > mi

[web2py] Re: digit separator symbol for int

2012-01-10 Thread Vineet
Thanks Ross Peoples. That link is very helpful. I can now build a similar method for "12,34,56,789" format. -- Vineet On Jan 10, 7:43 pm, Ross Peoples wrote: > This StackOverflow question should answer > it:http://stackoverflow.com/questions/1823058/how-to-print-number-with-c..

[web2py] digit separator symbol for int

2012-01-10 Thread Vineet
This may be a python question. My controller returns a 'int' value converted into 'str' (e.g. 123456789) to view. View renders it --- 123456789. I wish to render it like -->> 12,34,56,789 How do I do it? Thanks, Vineet

[web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-06 Thread Vineet
2-01-06.06-28-15.6dd97c85-2fbe-4253-95a3-73dd5c138de1 -- Vineet On Jan 6, 2:07 am, Alan Etkin wrote: > The WYSIWYG editor works smooth, altough i didn't used all of its > functions. I also like the multi-tab upload facility. It all looks > really good with Firefox 3.6.24 > > Mar

[web2py] Re: site-packages how?

2011-12-16 Thread Vineet
Keeping all 3rd party modules in site-packages (or whatever name you prefer for the folder) would bring orderliness. Consider when a developer is using a large no. of 3rd party modules, and all are placed in web2py root, it might look ugly. That's what I feel. --- Vineet On Dec 16, 9:

[web2py] Re: Statistics ???

2011-12-14 Thread Vineet
int ? (If the wheel has been invented already, pl. post its link). --- Vineet On Dec 15, 3:41 am, António Ramos wrote: > Hello, would it not be interesting to know from thousands of posts in this > blog the top ten posts in terms of replies? or other type of statistics... > And add them

[web2py] Re: Statistics ???

2011-12-14 Thread Vineet
ready, pl. post its link). --- Vineet On Dec 15, 3:41 am, António Ramos wrote: > Hello, would it not be interesting to know from thousands of posts in this > blog the top ten posts in terms of replies? or other type of statistics... > And add them to the web2py site. > > Also why n

[web2py] Re: read once definitions - development vs. production

2011-12-11 Thread Vineet
As Anthony pointed out rightly, if you need that module for a specific app, then put it in modules folder. If that module is required to be imported in other apps as well, then put it in site-packages folder. HTH -- Vineet On Dec 11, 9:29 am, Constantine Vasil wrote: >  I just put my clas

[web2py] Re: read once definitions - development vs. production

2011-12-09 Thread Vineet
x27;s my take on your question, based on what I did for my similar problem. --- Vineet On Dec 9, 10:08 am, Anthony wrote: > On Thursday, December 8, 2011 9:29:42 PM UTC-5, Constantine Vasil wrote: > > > OK let put it in reverse - how you would do this (GAE)/ > > > in default.

[web2py] Re: Massimo

2011-12-06 Thread Vineet
ot many dependencies. Web2py stands out clear in terms of simplicity, flexibility, and this amazingly helpful list Thanks to all the supporting members. Vineet On Dec 7, 7:27 am, Anthony wrote: > You are welcome. And thanks a lot -- I appreciate the compliment. > > Anthony > > >

[web2py] Re: Massimo

2011-12-06 Thread Vineet
. Web2py stands out clear in terms of simplicity, flexibility, and this amazingly helpful list Thanks to all the supporting members. Vineet On Dec 7, 7:27 am, Anthony wrote: > You are welcome. And thanks a lot -- I appreciate the compliment. > > Anthony > > On Tuesday, Dece

[web2py] Re: how to html drop down list with data from a query

2011-12-06 Thread Vineet
Something like this ---> SELECT('',_type="select",_name="state_name", *[OPTION(x['key1_in_dict'],_value=x['key2_in_dict'])for x in myDataSetDict]) ## Note: I have assumed that the resulting dataset is a dict. HTH :) Vineet On Dec 6, 10:04 p

[web2py] Re: Numbers only field

2011-12-06 Thread Vineet
Yes. That worked. Thank you. --- Vineet On Dec 6, 9:46 pm, Anthony Bastardi wrote: > How about: > > replace(/[^ .0-9]/g,'') > > > > > > > > On Tue, Dec 6, 2011 at 11:36 AM, Vineet wrote: > > But it doesn't accept decimal poi

[web2py] Re: Numbers only field

2011-12-06 Thread Vineet
But it doesn't accept decimal point either. How to make it accept the decimal point? --- Vineet On Dec 6, 10:25 am, Saurabh S wrote: > Thanks Massimo :) > > On Dec 6, 9:18 am, Massimo Di Pierro > wrote: > > > > > > > > > jQuery('#table

[web2py] Massimo

2011-12-06 Thread Vineet
read & butter. Nothing personal, but I observe that Allan Jardine (of dataTables.net) answers only those questions for which the OP donates him money. Of course, that may also be fair. Hats off to Massimo & web2py. Qudos !! -- Vineet

[web2py] Re: Numbers only field

2011-12-06 Thread Vineet
Thanks Massimo. That's what I too was looking for. --- Vineet On Dec 6, 10:25 am, Saurabh S wrote: > Thanks Massimo :) > > On Dec 6, 9:18 am, Massimo Di Pierro > wrote: > > > jQuery('#tablename_fieldname').keyup(function() > > {this.value=this.value

[web2py] Re: Pass multiple arguments to URL through javascript

2011-12-06 Thread Vineet
@Brian, Thanks. I will experiment with this plugin. Looks like very interesting stuff. --- Vineet On Dec 5, 6:16 am, Brian M wrote: > Vineet, > > My copy of jQuery.query.js is attached - I'm assuming since it's released > under the WTFPL the author won't mind :D >

[web2py] Re: Setting up eclipse for web2py development

2011-12-05 Thread Vineet
@chandrakant kumar, https://groups.google.com/group/web2py/browse_thread/thread/b6c0cf5d61d0c565/a40a34c4f91661bb?lnk=gst&q=eclipse# In that thread, see the post by "Miguel Lopes" -- 4th from the bottom. HTH. --- Vineet On Dec 6, 6:53 am, Massimo Di Pierro wrote: > are yo

[web2py] Re: Pass multiple arguments to URL through javascript

2011-12-03 Thread Vineet
you if you can send me a copy of jQuery.query (as mentioned by you). Thanks ---Vineet On Dec 4, 3:53 am, Brian M wrote: > I've used a jQuery plugin called jQuery.query that can manipulate URLs.  If > memory serves correct you do something along the lines of > $.query.set('var

[web2py] Re: Pass multiple arguments to URL through javascript

2011-12-03 Thread Vineet
Brian, Yes. I would be interested & grateful to you if you can send me a copy (as mentioned by you). Thanks, Vineet On Dec 4, 3:53 am, Brian M wrote: > I've used a jQuery plugin called jQuery.query that can manipulate URLs.  If > memory serves correct you do something alo

[web2py] Re: Pass multiple arguments to URL through javascript

2011-12-03 Thread Vineet
Thanks Anthony. That worked. Secondly, if I want to pass arguments by name, would it be okay to do something like this>> {{=URL(...)}} + '/' + 'p1=' + param1 + '/' + 'p2=' + param2 ---Vineet On Dec 3, 9:37 pm, Anthony wrote: > >

[web2py] Pass multiple arguments to URL through javascript

2011-12-03 Thread Vineet
n')}}/"+(param1,param2) didn't work either. . [/CODE] How do I code it? Thanks, Vineet

[web2py] Re: web2py and FirePHP

2011-11-20 Thread Vineet
I can access that link. You may try to hit the link again. --- Vineet On Nov 20, 4:37 pm, Ed Greenberg wrote: > I happened upon this old thready from > 2009:https://groups.google.com/group/web2py/browse_thread/thread/cc13960a5... > > But unfortunately, the link to the code has be

[web2py] Re: ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
ct['key'] Thanks for your responses Anthony. --- Vineet On Nov 8, 7:31 pm, Anthony wrote: > I think you need .options[i] rather than .options(i). Anyway, it's > generally easier to do this kind of thing with jQuery rather than raw > Javascript. > > Anthony > > >

[web2py] Re: ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
h this, for time being. Thanks for your responses Anthony. --- Vineet On Nov 8, 7:31 pm, Anthony wrote: > I think you need .options[i] rather than .options(i). Anyway, it's > generally easier to do this kind of thing with jQuery rather than raw > Javascript. > > Anthony > > > &

[web2py] Re: ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
I checked the js returned from controller function. It is selbx('edit_freq','daily'); selbx function is there in the View. -- Vineet On Nov 8, 7:04 pm, Vineet wrote: > Something is wrong in the function. > I defined a test js function in View. > > fu

[web2py] Re: ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
oller; then sets the value of select box to that value). function selbx(elementID, value_returned_from_dataset){ for (i=0;i wrote: > On Tuesday, November 8, 2011 8:17:41 AM UTC-5, Vineet wrote: > > > > If 'myvar' is a Python variable, you're going > > &g

[web2py] Re: ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
rgument. Javascript code sets the value of that html element. >From your reply, I guess that it is OK to return a javascript function from controller (the way I did), provided that I adhere to your hints. Perhaps then, why my code is failing to evaluate js function in View? Regards, Vineet

[web2py] ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
quot; returns js function --> 'abc(myvar1)' But it is not evaluated in View. (I am sure that the js file is correctly referenced in layout.html) Note: If I directly return the "code line1; code line 2;..." from the controller, they ARE evaluated. But "function abc()" is not evaluated. Is it expected behaviour of the ajax function? Regards, Vineet

[web2py] ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
quot; returns js function --> 'abc(myvar1)' But it is not evaluated in View. (I am sure that the js file is correctly referenced in layout.html) Note: If I directly return the "code line1; code line 2;..." from the controller, they ARE evaluated. But "function abc()" is not evaluated. Is it expected behaviour of the ajax function? Regards, Vineet

[web2py] ajax function with eval : return js function from controller

2011-11-08 Thread Vineet
quot; returns js function --> 'abc(myvar1)' But it is not evaluated in View. (I am sure that the js file is correctly referenced in layout.html) Note: If I directly return the "code line1; code line 2;..." from the controller, they ARE evaluated. But "function abc()" is not returned. Is it expected behaviour of the ajax function? Regards, Vineet

[web2py] Re: data from request.vars

2011-11-06 Thread Vineet
Sometimes it is better to brew the wine at home. ;-) Vineet On Nov 7, 3:09 am, petrasadi wrote: > The strftime() function didn't work for me, but the I solved the > problem using the sample function. Thank you for your replies.

[web2py] Re: Attribute of HTML element: define in controller

2011-11-06 Thread Vineet
Great! It worked. Thanks Anthony. I've been hunting on this since past few hours. --- Vineet On Nov 6, 9:36 pm, Anthony wrote: > On Sunday, November 6, 2011 11:01:50 AM UTC-5, Vineet wrote: > > >             lnk_elmt = " Edit " % "{{=URL(('empmast',

[web2py] Attribute of HTML element: define in controller

2011-11-06 Thread Vineet
f' is not formed correctly. It points to :---> http://127.0.0.1:8000/payroll/salheadmast/%7B%7B=URL(( What change I need to make in the code-line? Thanks, Vineet

[web2py] Re: data from request.vars

2011-11-05 Thread Vineet
http://groups.google.com/group/web2py/browse_thread/thread/5ebfd7f56b139ffb# I use the code shown in that thread for converting a string containing date (retrieved from request.vars) into Python datetime.date HTH -- Vineet On Nov 4, 8:26 pm, Richard Vézina wrote: > I think it'

[web2py] Re: AJAX custom code

2011-11-03 Thread Vineet
Thank you Anthony for your help. At last It worked. I could not figure-out what was wrong. I just deleted & re-typed the code, as it was a small piece of code. :) Vineet On Nov 3, 1:07 am, Anthony wrote: > The URL has to be in quotes. Also, looks like the second arg to ajax() > sho

[web2py] Re: AJAX custom code

2011-11-02 Thread Vineet
'Failed to load URL'. The URL helper, ajax function syntax are correct. I double-checked that. I am wondering what might be wrong ! :-( Vineet On Nov 2, 10:19 pm, Anthony wrote: > On Wednesday, November 2, 2011 1:13:46 PM UTC-4, Vineet wrote: > > > Yes. I used Opera Dragonfly

[web2py] Re: AJAX custom code

2011-11-02 Thread Vineet
Yes. I used Opera Dragonfly & IE Developer Tools. It doesn't show any js error. After clicking the link also, no error. How & Where do I check the sent & returned values? (in the developer tools or in Dragonfly) Thanks, Vineet On Nov 2, 9:45 pm, Anthony wrote: > Can

[web2py] Re: interget or string to date

2011-11-02 Thread Vineet
t(dte[6:]) m = int(dte[3:5]) d = int(dte[:2]) return datetime.date(y, m, d) [/CODE] This returns output in "python datetime.date" format. --Vineet On Nov 2, 8:19 pm, Omi Chiba wrote: > This is more like python question but > > jj.J2NSD is integer and

[web2py] Re: AJAX custom code

2011-11-02 Thread Vineet
You are right. To clear any ambiguity, I did this --> return "$('#i2').val('Vineet');" But still, no success. Any other hint? ---Vineet On Nov 2, 8:15 pm, Anthony wrote: > On Wednesday, November 2, 2011 10:49:04 AM UTC-4, Vineet wrote: > &g

[web2py] Re: AJAX custom code

2011-11-02 Thread Vineet
thanks for replying. I tried this--> [Controller] def lod(): x = 'This is a val' return "$('#i2').val(x);" [/Controller] [View] {{extend 'layout.html'}} Load result via AJAX [/View] But the input with id='i2' is not populated.

[web2py] AJAX custom code

2011-11-02 Thread Vineet
also blank (no value of 'empid') I am 100 % sure that 'empid' is returned from the controller. Any suggestion on the same highly appreciated. Thanks, Vineet

[web2py] Controller result: assign to Javascript variable

2011-11-02 Thread Vineet
request.vars.i1" and calculate "emp_id" return emp_id [/Controller] [View] {{extend 'layout.html'}} Load result via AJAX function populate(){ var empid = "{{URL(('lod'))}}"; window.alert(empid); $('#i2').val(empid); } [/View] Any suggestion on the same? Thanks, Vineet

[web2py] Re: launching web2py from script?

2011-10-31 Thread Vineet
, Thanks a lot Miguel Lopes for the comprehensive procedure writeup. It solved all my problems regarding web2py with Eclipse/PyDev --- Vineet On Oct 31, 5:14 pm, Tim Korb wrote: > Did you resolve this issue any further?  I'm getting the same error in a > similar setting.  I'm trying to

[web2py] Re: Ubuntu : web2py : MySQLdb

2011-10-25 Thread Vineet
I am very new at Ubuntu. pl. tell me what I need to do & I will do that. Do you mean to say that 'grab or update Ubuntu LTS version?' Thanks, Vineet On Oct 26, 3:07 am, Christopher Steel wrote: > Do you have access to Ubuntu LTS version like 10.04?

[web2py] Ubuntu : web2py : MySQLdb

2011-10-25 Thread Vineet
line 25, in getConnection import MySQLdb as dbapi File "/media/pyth/python26/Lib/site-packages/MySQLdb/__init__.py", line 23, in (version_info, _mysql.version_info)) ImportError: this is MySQLdb version (1, 2, 3, 'gamma', 1), but _mysql is version (1, 2, 2, 'final', 0) Thanks in advance, Vineet Deodhar

[web2py] Re: Opera : web2py IDE : CTRL+S not working

2011-10-21 Thread Vineet
I also tried to run web2py from the source. With IE / Mozilla, CTRL+S is OK. With Opera, "save as" dialog box appears. --- Vineet On Oct 19, 6:09 pm, Vineet wrote: > OS: Win7 > web2py 1.99.2 windows version > Browser: Opera ver. 11.51 > > After CTRL+S, a dialog box for

[web2py] Opera : web2py IDE : CTRL+S not working

2011-10-19 Thread Vineet
OS: Win7 web2py 1.99.2 windows version Browser: Opera ver. 11.51 After CTRL+S, a dialog box for "save file" is displayed. In IE and firefox, No problem. I read in earlier posts that this issue was addressed. Do I need to grab anything from the trunk? ---- Vineet

[web2py] Re: web2py 1.99.2: import of 3rd party module

2011-10-17 Thread Vineet
Thank you very much. --- Vineet On Oct 17, 7:54 pm, Anthony wrote: > A change was made that disables generic views by default due to a potential > security vulnerability. To enable generic views, > seehttp://web2py.com/book/default/chapter/09#Generic-Views. You should > enable only

[web2py] Re: web2py 1.99.2: import of 3rd party module

2011-10-17 Thread Vineet
Thanks Anthony. Your tip worked. One more thing-- In 1.92.1, I have a controller "a2/mnpg.py" without any View file associated it. That used to work. In 1.99.2, it says "Invalid Controller a2/mnpg.html". Do I need to create a View compulsorily for any controller in 1.99.2? --

[web2py] Re: web2py 1.99.2: import of 3rd party module

2011-10-17 Thread Vineet
uot;model" file not available in other model file). --- Vineet On Oct 17, 5:45 pm, Anthony wrote: > Are you using conditional models (i.e., is your aa1.py model file inside > /models/aa1/)? > > > > On Monday, October 17, 2011 7:06:16 AM UTC-4, Vineet wrote: > > > I

[web2py] web2py 1.99.2: import of 3rd party module

2011-10-17 Thread Vineet
ned Is there any change in the latest version which is causing this behaviour? ---Vineet

[web2py] Re: porting apps from win-noinstall to source code version

2011-10-16 Thread Vineet
I looked for these 3 files in the /web2py folder. But there is no file with these names. Matching filenames are: 1) routes.example.py 2) options_std.py Are you sure about the filenames? Because my noinstall version is working perfect, but there are no files indicated by you. Vineet On Oct

[web2py] Re: porting apps from win-noinstall to source code version

2011-10-16 Thread Vineet
. Vineet On Oct 16, 8:14 pm, Anthony wrote: > On Sunday, October 16, 2011 5:35:18 AM UTC-4, Vineet wrote: > > > I am running my apps using Windows noinstall version of web2py. > > For debugging using pyscripter, I need to port those apps to source > > code version.

[web2py] Opera for editing files in web2py

2011-10-16 Thread Vineet
In IE & Mozilla FF, editing files works OK. In Opera, I can't save with "CTRL+S". It opens a "save file dialog box". Need to click on the save icon. OS: Win7 web2py version : all versions (latest & earlier), noinstall as well as source code versions Can it be fixed? ---Vineet

[web2py] porting apps from win-noinstall to source code version

2011-10-16 Thread Vineet
x27; variable in windows to include web2py src's "site-packages" dir. (I used to import those modules in noinstall version without any problem). Pl. suggest on the 2 points above. Thanks, Vineet

[web2py] Debugging : 'FA'Q or 'How To' or 'standard procedure/instructions'

2011-10-16 Thread Vineet
google.com/group/web2py/browse_thread/thread/42f9e2560f... Is there any documentation giving setp-by-step proc or FAQ or 'How To' regarding debugging? Thanks, Vineet

[web2py] debugging : it's still not clear "How To"

2011-10-16 Thread Vineet
560fb93c1d/bfacc7c546bb2f2c?lnk=gst&q=debug Is there any FAQ or How To regarding debugging? Thanks, Vineet

[web2py] Re: Display "Loading' animated gif or js : How to

2011-10-13 Thread Vineet
n case of any query, I'll post it here. Thanks again. ---Vineet On Oct 13, 12:05 am, Paolo Caruccio wrote: > Hi Vineet, > > as juanduke has suggested, I use the following jquery function (I put it in > web2py_ayax.js) instead of standard w2p ajax function to show a loa

[web2py] Display "Loading' animated gif or js : How to

2011-10-12 Thread Vineet
A View requests or redirects to some controller. It takes some time to serve the request. In the meantime, how do I display animated "Loading" image? It will disappear after the request is served. Vineet

[web2py] "Loading" animated gif or javascript : how to display

2011-10-12 Thread Vineet
A View calles/requests/redirects to some controller. It takes some time to serve the request. In the meantime, how do I display animated "Loading" image? It will disappear after the request is served. Vineet

[web2py] Re: ajax function : None returned

2011-10-06 Thread Vineet
Hi juanduke ! Thanks for the tip. It worked. I will do some more complicated work on this now. Cheers, Vineet On Oct 6, 5:03 pm, juanduke wrote: > Hi Vineet: > > You need to change this line; > >     > > for this line: > >     > > (change id='name' for name="name") > HTH!!! > Bye

  1   2   >