Re: [web2py] Several controllers inserting and updating one row via forms

2013-08-30 Thread shapovalovdenis
Thanks, I indeed missed that hidden field with record id. From the book: Edit forms also contain a hidden INPUT field with name=id which is used to identify the record. Though I don't really understand why we need that field as record id is kept server-side anyway. On Thursday, August 29,

[web2py] Re: Using external database join with DAL

2013-08-30 Thread Gallien Labeyrie
Thanks for answering my question ! :) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Link with cid not working properly in Chrome.

2013-08-30 Thread hiro
I am having problems getting this code to work i Chorme, it works correctly in IE and Firefox, but in Chrome the form opens in a new window instead of the div tag. If I use Putty to connect to the server in order to use the admin interface, the code works correctly when I connect using

[web2py] update_or_insert with Expressions

2013-08-30 Thread frasse
Hi I like to use following update_or_insert example with db.myproperty.quantity + 1 as you see in example db.myproperty.update_or_insert( (db.myproperty.userId == 1 ) (db.myproperty.product == 'tree') , userId = 1, price = 10, quantity =

[web2py] Re: update_or_insert with Expressions

2013-08-30 Thread Massimo Di Pierro
This is not supported. Please open a ticket. We can this feature On Friday, 30 August 2013 07:11:29 UTC-5, frasse wrote: Hi I like to use following update_or_insert example with db.myproperty.quantity + 1 as you see in example db.myproperty.update_or_insert(

[web2py] Re: crud forms and layout

2013-08-30 Thread hiro
Long time since last post, but i had to do this and a small modification of mdipierros code worked for me fields = form[0].components n_fields = len(fields) bot_half = fields[n_fields/2:] top_half = fields[:n_fields/2] form[0]=TABLE(TR(

Re: [web2py] Several controllers inserting and updating one row via forms

2013-08-30 Thread Vinicius Assef
Because SQLFORM uses this field to know you're editing not inserting a record. On Fri, Aug 30, 2013 at 5:27 AM, shapovalovde...@gmail.com wrote: Thanks, I indeed missed that hidden field with record id. From the book: Edit forms also contain a hidden INPUT field with name=id which is used to

Re: [web2py] Several controllers inserting and updating one row via forms

2013-08-30 Thread Denis Sh
Hm, I thought that form = SQLFORM(db.person, record) , i.e. parameter 'record' indicates that, so why duplicate that in view? On Fri, Aug 30, 2013 at 3:43 PM, Vinicius Assef vinicius...@gmail.comwrote: Because SQLFORM uses this field to know you're editing not inserting a record. On Fri,

Re: [web2py] Several controllers inserting and updating one row via forms

2013-08-30 Thread Vinicius Assef
Because if the hidden id field is in your request.post_vars, the record's new data was submitted. On Fri, Aug 30, 2013 at 10:43 AM, Denis Sh shapovalovde...@gmail.com wrote: Hm, I thought that form = SQLFORM(db.person, record) , i.e. parameter 'record' indicates that, so why duplicate that in

[web2py] Janrain/RPX widget migration

2013-08-30 Thread molhokwai
Hi, The janrain/rpx widget is no longer supported since July ( http://developers.janrain.com/documentation/widgets/legacy-sign-in-widget/) and I am wondering if there are plans to upgrade the integrated rpx login method accordingly... (

[web2py] Load every 5 seconds

2013-08-30 Thread Javier Pepe
Hi I need load SQLFOM.grid every 5 seconds, try whith autorefresh, but load all page. I need help to create javascript to load only a SQLFROM.grid. Thanks -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and

[web2py] Re: Load every 5 seconds

2013-08-30 Thread Paolo Valleri
Have a look at http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components Paolo On Friday, August 30, 2013 7:50:10 PM UTC+2, Javier Pepe wrote: Hi I need load SQLFOM.grid every 5 seconds, try whith autorefresh, but load all page. I need help to create javascript to

[web2py] Document for Fedora Deployment

2013-08-30 Thread dhmorgan
please also post on web2pyslices.com -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Adding files casually

2013-08-30 Thread wiel
I tried to add a bulk of .js files to my static folder without using the admin interface. the files are not showing up in the admin interface and a couple of these files are giving a 404 not found error. how can I remedy this? here is a sample of the view file. I placed the .js files in a

Re: [web2py] Re: Load every 5 seconds

2013-08-30 Thread Javier Pepe
Thanks works better than expected On Fri, Aug 30, 2013 at 2:53 PM, Paolo Valleri paolo.vall...@gmail.comwrote: Have a look at http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components Paolo On Friday, August 30, 2013 7:50:10 PM UTC+2, Javier Pepe wrote: Hi I need

[web2py] Re: Adding files casually

2013-08-30 Thread Paolo Caruccio
from the book http://web2py.com/book/default/chapter/04#URL For the reasons mentioned above, you should always use the URL function to generate URLs of static files for your applications. Static files are stored in the application's static subfolder (that's where they go when uploaded using

[web2py] Reddit development using web2py

2013-08-30 Thread naman9t3
I want to develop replica of Reddit Website http://www.reddit.com/ using web2py framework. Can anyone please provide me with its source code so that i can study the web2py code and understand, it will help me understand the concepts well Thanks in advance -- --- You received this message

[web2py] Navbar auth

2013-08-30 Thread Federico Ferraro
How to disable auth.navbar for some funtions ? - I need to create a different layout. Tried to create a function in the model: navbar_disable = False onavbar = auth.navbar def nav_bar(**kargs): if navbar_disable: return False else: return

[web2py] scheduler - Get task id for current task

2013-08-30 Thread Manoj Kumar M
Is it possible to get the task id of the current task from within the task? for example: def task_add(a,b): task_id = scheduler.my_id() # get current task id return a+b scheduler = Scheduler(db, tasks=dict(demo1=task_add)) scheduler.queue_task('demo1', pvars=dict(a=1,b=2),

[web2py] Re: Logged in dropdown links

2013-08-30 Thread Johan Englund
Yes, write your own navbar function and use that instead, or take a look at modify navbar() in gluon/tools.py (You will need source code for that) Also I did a rewrite of navbar in the repo, should make it much easier to write your own navbar imo. On Wednesday, August 28, 2013 8:19:28 PM

[web2py] Re: Why is the plugins list empty in the wizard?

2013-08-30 Thread Alan Etkin
Can you show me an example? Not a working one :/. First we would need to enable the json package list controller at web2pyslices. I thought I had implemented it but currently it doesn't seem to work (returns null where it should return a json list of packages). Actually, I don't know what

[web2py] web2py newbie question

2013-08-30 Thread Mirko
Hi all, I am really new to web2py and I find this python framework really exciting. I am currently reading the whole online book chapter database validators, and while I was reading at the example given, I was wondering if there is a difference between this : db.define_table('person',

[web2py] Re: Webhosts for Web2py

2013-08-30 Thread samuel bonill
I use *Amazon EC2* http://aws.amazon.com/ec2and *rackspace*http://www.rackspace.com El martes, 27 de agosto de 2013 16:11:22 UTC-5, Vivek Jha escribió: I am new in web development and I have started with web2py and have almost copleted reading the web2py book. Now few practical issues

[web2py] Re: Janrain/RPX widget migration

2013-08-30 Thread Massimo Di Pierro
Please open a ticket. We will do that asap. On Friday, 30 August 2013 12:54:06 UTC-5, molhokwai wrote: Hi, The janrain/rpx widget is no longer supported since July ( http://developers.janrain.com/documentation/widgets/legacy-sign-in-widget/) and I am wondering if there are plans to upgrade

[web2py] Re: web2py newbie question

2013-08-30 Thread Massimo Di Pierro
No it is the same. This Field('owner', 'reference person') is the same as Field('owner', db.person) If the reference field has a format='...' than you get the default validator: db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s') On Friday, 30 August 2013

[web2py] Re: web2py newbie question

2013-08-30 Thread Anthony
There are two distinctions here. First: Field('owner', db.person) is equivalent to: Field('owner', 'reference person') However, the latter is generally preferred because if you are using lazy table definitions, the former method triggers the full definition of db.person, so you lose the

[web2py] Re: Reddit development using web2py

2013-08-30 Thread Martin Barnard
Reddit does not run on web2py. It runs on python and (I think pylons?). However, if you do wish to peruse the reddit's source code, you could try their github repo: https://github.com/reddit On Thursday, August 29, 2013 6:18:30 PM UTC+3, nama...@gmail.com wrote: I want to develop replica

[web2py] Re: Adding files casually

2013-08-30 Thread wiel
this was a permission problem. the sub folder was owned by root and not by the user that i created for web2py On Friday, August 30, 2013 2:29:28 PM UTC-5, wiel wrote: I tried to add a bulk of .js files to my static folder without using the admin interface. the files are not showing up in

[web2py] Re: Reddit development using web2py

2013-08-30 Thread webpypy
Try this https://groups.google.com/forum/#!searchin/web2py/reddit%7Csort:date/web2py/0YlcTFegHCU/6_4LjWt0jYAJ On Thursday, August 29, 2013 6:18:30 PM UTC+3, nama...@gmail.com wrote: I want to develop replica of Reddit Website http://www.reddit.com/ using web2py framework. Can anyone

[web2py] Re: Reddit development using web2py

2013-08-30 Thread Anthony
Also, https://github.com/mdipierro/web2py-appliances/tree/master/RedditClone and https://github.com/mdipierro/web2py-recipes-source/tree/master/source/02_building_your_first_applications/03_building_a_reddit_clone . Anthony On Friday, August 30, 2013 8:57:26 PM UTC-7, webpypy wrote: Try this

[web2py] Re: Reddit development using web2py

2013-08-30 Thread Anthony
Note, if you're thinking reddit.com was built with web2py, it was not -- the original reddit.com was built with Common Lisp and then migrated to Python, for which the web.py http://webpy.org/ framework was developed and eventually open sourced (web.py and web2py are often confused). Anthony

[web2py] Re: Reddit development using web2py

2013-08-30 Thread webpypy
(web.py and web2py are often confused). Anthony example of confusion: clicking on web2py in https://www.openshift.com/developers/python will go to web.py -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this