[web2py] Re: Display reference fields in read-only form

2010-05-20 Thread selecta
yes with Andrew Buchan tip of leaving out the requires it worked for me too, however the solution was rather unintuitive tnx to everybody for taking time to check this problem On May 19, 1:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: For me this works db.define_table('person',        

[web2py] Re: hide id field in update or read-only forms

2010-05-20 Thread Andrew Buchan
Thanks guys, I knew it would be a simple one. I need to remember to set email updates when I post a new thread.

[web2py] Catch auto-login event

2010-05-20 Thread Adi
Hi, I use the Remember me for 30 days feature in our app. I used a custom auth_table with a column last_login to update every time a user logs into the application. Currently I update it in a function call like this: --- def

[web2py] Re: Support Pycharm support for Web2py

2010-05-20 Thread blackthorne
wow, that is a charming project. I think this is a must! On May 19, 1:23 am, Richard richar...@gmail.com wrote: has a YouTrack issue been created? On May 18, 12:37 pm, mikech mp.ch...@gmail.com wrote: http://www.jetbrains.net/devnet/message/5263114#5263114

[web2py] Re: Support Pycharm support for Web2py

2010-05-20 Thread blackthorne
on a second look, seems to be payed... On May 20, 12:10 pm, blackthorne francisco@gmail.com wrote: wow, that is a charming project. I think this is a must! On May 19, 1:23 am, Richard richar...@gmail.com wrote: has a YouTrack issue been created? On May 18, 12:37 pm, mikech

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Could you help me setting this up too? This is the view: {{extend 'layout.html'}} h1This is the default/test.html template/h1 {{=jqgrid_table}} jQuery(#grid_id).jqGrid({ onSelectRow: function(postdata) { web2py_ajax_page('get','/myapp/default/form/'+ (postdata),null,'my_form');

[web2py] Charset problem

2010-05-20 Thread Jose
Hi, In reference to thread: http://groups.google.com/group/web2py/browse_thread/thread/424731b5f6449513/e5bab3ec6e68a505 So far, the application was a series of reports, but now I need to write to the database. The charset of the database is latin1, and my db object I define it as follows: db =

[web2py] Re: new in Django

2010-05-20 Thread mdipierro
Hi Pepe, I am sure Thadeus did not mean it is a negative sense. I am personally envious of designer given my total lack of artistic skills. I think what Thadeus means by Django is a designer based framework is that they assume that designers cannot program and program and do not allow them to

[web2py] google fonts

2010-05-20 Thread mdipierro
http://code.google.com/webfonts/preview

Re: [web2py] google fonts

2010-05-20 Thread Albert Abril
Woow! Nice. As said in the FAQ: *All the fonts in the Google Font Directoryhttp://code.google.com/webfontsare licensed under open source licenses that let you use them on any website * On Thu, May 20, 2010 at 2:35 PM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
You could try passing SCRIPT from the controller. ## View {{extend 'layout.html'}} h1This is the default/test.html template/h1 {{=plugin_editable_jqgrid(db.jqgrid_table,grid_name='jqgrid_ table',db_name='db')}} {{=script}} ## Controller def jqgrid_table_test(): script =

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Thanks for your effort, but it gives an empty page.. I will use two or more Grids at least one of them must keep the editable behaveure. But in this case it should work like your approach, controlling the form. May i missed something..? Could you tell me how to set up the form? should the view

Re: [web2py] google fonts

2010-05-20 Thread Jonathan Lundell
On May 20, 2010, at 5:51 AM, Albert Abril wrote: Woow! Nice. As said in the FAQ: All the fonts in the Google Font Directory are licensed under open source licenses that let you use them on any website ...as long as it's being viewed with a browser that supports @font-face... On Thu,

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Try {{=jqgrid_table}} script type=text/javascript jQuery(document).ready(function(){ jQuery(#grid_id).jqGrid({ onSelectRow: function(postdata) { web2py_ajax_page('get','/myapp/default/form/'+(postdata),null,'my_form');}}); /script On 05/20/2010 10:45 PM, AsmanCom wrote: Thanks for your

[web2py] Re: SSL is OFF error message when starting the server

2010-05-20 Thread OMAR
Yes, I understand. I already downloaded package ssl 1.15 However, I was unable to install the module. See the listing of errors posted above. I don't mean to clutter this group with questions not directly related to web2py. I'm currently stuck because I do not understand how to install the ssl

[web2py] Upload Pic into web2py

2010-05-20 Thread Neveen Adel
Hello, how can i limit uploaded pic size to be not exceed 500 kB? My mainly problem is that all uploaded pics saved into folder uploads and by the time that will cause system failure (because of space)?? If there is any solution to this problem ?and if the first question fix this problem?

[web2py] Re: SSL is OFF error message when starting the server

2010-05-20 Thread mdipierro
try apt-get install python-openssl apt-get install python-distutil easy_install ssl On May 20, 9:00 am, OMAR uncle...@gmail.com wrote: Yes, I understand. I already downloaded package ssl 1.15 However, I was unable to install the module. See the listing of errors posted above. I don't

[web2py] Re: Upload Pic into web2py

2010-05-20 Thread mdipierro
Yes: Field('file','upoad',requires=IS_LENGTH(500*1024)) should do the trick. On May 20, 9:02 am, Neveen Adel nevo.a...@gmail.com wrote: Hello, how can i limit uploaded pic size to be not exceed  500 kB? My mainly problem is that all uploaded pics saved into folder uploads and by the time

[web2py] Re: Upload Pic into web2py

2010-05-20 Thread Neveen Adel
Thanks mdipierro for your help On May 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: Yes: Field('file','upoad',requires=IS_LENGTH(500*1024)) should do the trick. On May 20, 9:02 am, Neveen Adel nevo.a...@gmail.com wrote: Hello, how can i limit uploaded pic size to be not

Re: [web2py] google fonts

2010-05-20 Thread Albert Abril
On Thu, May 20, 2010 at 3:50 PM, Jonathan Lundell jlund...@pobox.comwrote: On May 20, 2010, at 5:51 AM, Albert Abril wrote: Woow! Nice. As said in the FAQ: *All the fonts in the Google Font Directoryhttp://code.google.com/webfonts are licensed under open source licenses that let you use

Re: [web2py] Re: new in Django

2010-05-20 Thread Thadeus Burgess
Hi Pepe, I did not mean that in a negative tone, I do respect designers a great deal, they have a gift that seems to allude me =) I have strong feelings towards my = signs... its just a part of programming, why change the standard? I won't use MongoDB either because they use the same $lt $gte

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
I tried like that: View: {{=jqgrid_table}} script type=text/javascript jQuery(document).ready(function(){ jQuery(#grid_id).jqGrid({ onSelectRow: function(postdata) {web2py_ajax_page('get','/myapp/ default/form/'+(postdata),null,'my_form');}}); /script Controller: def jqgrid_table_test():

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
What do you mean the form doesn't show? Do you have a DIV for the form to load in your view? {{=LOAD('default','form',args=1,ajax=True,target='my_form')}} Does this not reload as you select a row from from the grid? On 05/20/2010 11:40 PM, AsmanCom wrote: I tried like that: View:

Re: [web2py] Re: SSL is OFF error message when starting the server

2010-05-20 Thread Timothy Farrell
The output you show is that it's trying to compile openssl into the ssl module. You'll need to install the openssl headers. The debian package name is probably something like openssl-dev. -tim On 5/19/2010 5:30 PM, OMAR wrote: Tim, thanks for the speedy reply. Sorry to say I'm still stuck.

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?: onSelectRow: function(id){ if(id lastSel!='' id!==lastSel){ jQuery(grid_name).restoreRow(lastSel); } lastSel=id; jQuery(grid_name).editRow(id, true, '',

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Are you using the web2py jqgrid_plugin? http://web2py.com/plugins/default/jqgrid On 05/20/2010 11:53 PM, AsmanCom wrote: can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?: onSelectRow: function(id){ if(id lastSel!=''

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Many thanks, it go´s in the right direction now. I am using the http://app.ebansoftware.net/editable_jqgrid/default/show_example , but it is quite similar. Now the is loaded is loaded with the default template and then a second layer covers it with the form and the default Template(loaded twice)

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
I meant: The Grid is loaded with the default template and then a second layer covers it with the form and the default Template(loaded twice) ;-) On 20 Mai, 16:55, Jason Lotz jayl...@gmail.com wrote: Are you using the web2py jqgrid_plugin? http://web2py.com/plugins/default/jqgrid On

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
web2py LOAD function will create generate div id=targetLoading.../div and fills your component. I'm sorry I can't test it right now but it seems that by adding the div/div in your view and including the LOAD you are creating two form. Maybe try remove your div and only keep the LOAD.

Re: [web2py] google fonts

2010-05-20 Thread Thadeus Burgess
everyone should have please upgrade browser links anyways, unless their using software that requires IE 5... *curses blackboard and mathlab* -- Thadeus On Thu, May 20, 2010 at 9:20 AM, Albert Abril albert.ab...@gmail.com wrote: On Thu, May 20, 2010 at 3:50 PM, Jonathan Lundell

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
You helped me a lot, man! i´ve tried like you suggested, i only keeped the LOAD, but it´s the same... Page is loading the Grid, underneath the Grid rises loading and then a new layer pops up with with the form in the default Template (Its showed twice). I´ve checked:

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Can you explain a liitle more? You are actually seeing two forms in the browser? If I understand you correctly upon first loading the page you get the grid and a form with default id. When you select a row in the grid the default form is not reloaded with the new id but a second form

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-20 Thread amoygard
Thanks for the helpful answer! On 20 Mai, 01:18, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 19, 5:41 pm, amoygard amoyg...@gmail.com wrote: Thanks for the answer - I was aware that I don't have to do this to handle ajax requests in general. The application I'm building needs

[web2py] nice slides on postgresql vs nodb

2010-05-20 Thread mdipierro
http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL

[web2py] displaying associated name.

2010-05-20 Thread Yanni
I'm slightly confused as to how to reference a field when I have the foreign key. table pets: pets.id name category (foreign key category.id) description table category: category.id category_name I am trying to show the category name, in my show page/function, instead of a number. In the

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-20 Thread Yarko Tymciurak
You might also look at how services are setup: http://www.web2py.com/book/default/section/9/2 On May 20, 11:58 am, amoygard amoyg...@gmail.com wrote: Thanks for the helpful answer! On 20 Mai, 01:18, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 19, 5:41 pm, amoygard

[web2py] Re: displaying associated name.

2010-05-20 Thread mr.freeze
It will do it automatically. You should be able to do: pet.category.name On May 20, 12:58 pm, Yanni apoe...@gmail.com wrote: I'm slightly confused as to how to reference a field when I have the foreign key. table pets: pets.id name category (foreign key category.id) description table

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-20 Thread Yarko Tymciurak
On May 19, 6:18 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 19, 5:41 pm, amoygard amoyg...@gmail.com wrote: So - in general, you do not start subprocesses - with the exception of cron.   Seehttp://www.web2py.com/book/default/section/4/17 I might better have said you

[web2py] Re: displaying associated name.

2010-05-20 Thread Yanni
Yes that worked. Kinda weird :) pet.category.category_name worked. Thank you very much. Yanni. On May 20, 11:06 am, mr.freeze nat...@freezable.com wrote: It will do it automatically. You should be able to do: pet.category.name On May 20, 12:58 pm, Yanni apoe...@gmail.com wrote: I'm

[web2py] Re: google fonts

2010-05-20 Thread Yarko Tymciurak
to see what it looks like on a browser that does not support this, get Opera - that will help you with development, so that you can satisfy yourself with how you handle / see results if you _do_ use this, and someone uses an unsupported browser. On May 20, 10:39 am, Thadeus Burgess

[web2py] Re: Auth.profile() allow change email used as username

2010-05-20 Thread GoldenTiger
On 20 mayo, 03:24, mdipierro mdipie...@cs.depaul.edu wrote: def user():       db.auth_user.email.writable=(request.args(0)!='profile')       return dict(form=auth()) I am a novice, 1) is that way better than creating a custom form ? 2) and how about changing permissions of email record

[web2py] Re: nice slides on postgresql vs nodb

2010-05-20 Thread szimszon
Nice On máj. 20, 19:52, mdipierro mdipie...@cs.depaul.edu wrote: http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL

[web2py] How do I make web2py speak JSONP?

2010-05-20 Thread Pystar
Hi guys, I need to do some cross domain communication using web2py and the only sane way I can do that is using JSONP (JSON + padding). My question is how do I make web2py speak JSONP? Pystar

[web2py] Re: displaying associated name.

2010-05-20 Thread mdipierro
db.define_table('me',Field('mom','reference me'),Field('name')) me=db.me.insert(name='Kim') me.mom=me print me.mom.mom.mom.mom.mom.name Kim On May 20, 1:14 pm, Yanni apoe...@gmail.com wrote: Yes that worked. Kinda weird :) pet.category.category_name worked. Thank you very much.

[web2py] Re: How do I make web2py speak JSONP?

2010-05-20 Thread mdipierro
look at generic.json, copy into default/youraction.jsonp and add the padding. On May 20, 2:47 pm, Pystar aitoehi...@gmail.com wrote: Hi guys, I need to do some cross domain communication using web2py and the only sane way I can do that is using JSONP (JSON + padding). My question is how do I

[web2py] Re: SSL is OFF error message when starting the server

2010-05-20 Thread OMAR
Tim, you were very close. libssl-dev - Massimo, I went the route of installing distutils so I could easy_install, but once again was met with an error: sudo easy_install ssl Processing ssl error: Couldn't find a setup script in ssl Thank you for the suggestions. I see where plenty of

[web2py] Re: google fonts

2010-05-20 Thread Christopher Steel
Wow, I like. On May 20, 2:28 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: to see what it looks like on a browser that does not support this, get Opera - that will help you with development, so that you can satisfy yourself with how you handle / see results if you _do_ use this, and

[web2py] Script to generate schema (models) from mysql

2010-05-20 Thread Alexandre Andrade
Some time ago I talk about to do it. Finally I have to do it. It can be improved to a form in appadmin, use the model to another db (postgresql, etc), and generate the file in /models. You can see the code below: -- #!/usr/bin/env python

[web2py] Drop Down alternative

2010-05-20 Thread greenpoise
Is there an alternative to drop down? a type ahead type of widget?

[web2py] crud.search()

2010-05-20 Thread greenpoise
what is the crud.search() about?? I see it as part of the new release. Any examples? thanks

[web2py] Re: Catch auto-login event

2010-05-20 Thread Adi
Any help on this? On May 20, 3:45 pm, Adi aditya.sa...@gmail.com wrote: Hi, I use the Remember me for 30 days feature in our app. I used a custom auth_table with a column last_login to update every time a user logs into the application. Currently I update it in a function call like this:

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Alright now I see a little better what is going. Last night I wasn't able to check what the jqgrid_editable_plugin really was. To my surprise it is a very nice web2py plugin. My appologise for pushing the jqgrid_plugin from web2py/plugins. Although a nice plugin this is a very feature rich ready

[web2py] Re: Script to generate schema (models) from mysql

2010-05-20 Thread mdipierro
Thank you. I will not be able to look at this until tomorrow but I will. On May 20, 6:37 pm, Alexandre Andrade alexandrema...@gmail.com wrote: Some time ago I talk about to do it. Finally I have to do it. It can be improved to a form in appadmin, use the model to another db (postgresql,

[web2py] Re: Drop Down alternative

2010-05-20 Thread mdipierro
yes. from gluon.sqlhtml import AutocompleteWidget db.define_table('mytable', Field('person',db.person,requires=IS_IN_DB(db,db.person.id,'% (name)s')), ...) db.mytable.person.widget=AutocompleteWidget(request,db.person.name,db.person.id,orderby=db.person.name) On May 20, 9:16 pm,

[web2py] Re: crud.search()

2010-05-20 Thread mdipierro
def index(): form,rows = crud.search(db.person) return dict(form=form,rows=rows) On May 20, 9:21 pm, greenpoise danel.sega...@gmail.com wrote: what is the crud.search() about?? I see it as part of the new release. Any examples? thanks

[web2py] Re: Catch auto-login event

2010-05-20 Thread mdipierro
need to work on this. On the case but being distracted sorry. On May 20, 10:50 pm, Adi aditya.sa...@gmail.com wrote: Any help on this? On May 20, 3:45 pm, Adi aditya.sa...@gmail.com wrote: Hi, I use the Remember me for 30 days feature in our app. I used a custom auth_table with a

[web2py] Re: Debian Packaging

2010-05-20 Thread Trollkarlen
For packaging i sugest using the http://build.opensuse.org. Its a service where you can package for all mager distros, and have them all in se same repo. /T On 18 Maj, 08:42, José L. jredr...@gmail.com wrote: On 17 mayo, 17:32, Mark Breedveld m.breedv...@solcon.nl wrote: I've been