[web2py] Re: How to populate a SELECT field from a SQLFORM

2013-03-11 Thread José Manuel López Muñoz
gt; On Thursday, March 7, 2013 4:33:35 PM UTC+1, Niphlod wrote: >>> >>> you can do as you did with the hotels (i.e. passing a queryset already >>> filtered instead of a table to the IS_IN_DB) or create a dict holding a few >>> cities with as the key the id of t

[web2py] Re: How to populate a SELECT field from a SQLFORM

2013-03-07 Thread José Manuel López Muñoz
d wrote: >> >> you can do as you did with the hotels (i.e. passing a queryset already >> filtered instead of a table to the IS_IN_DB) or create a dict holding a few >> cities with as the key the id of the city and the value the name of it. >> >> On Thursday, Marc

[web2py] Re: How to populate a SELECT field from a SQLFORM

2013-03-07 Thread José Manuel López Muñoz
queryset already > filtered instead of a table to the IS_IN_DB) or create a dict holding a few > cities with as the key the id of the city and the value the name of it. > > On Thursday, March 7, 2013 3:52:24 PM UTC+1, José Manuel López Muñoz wrote: >> >> Hi, >> I

[web2py] How to populate a SELECT field from a SQLFORM

2013-03-07 Thread José Manuel López Muñoz
Hi, I'm trying to populate a drop down menu of a form like this: def createOffer(): hotelesUsuario=db(db.Hotel.managerID == auth.user_id) db.Offer.hotel.requires=IS_IN_DB(hotelesUsuario,'Hotel.id','%(name)s') form = SQLFORM(db.Offer) This is my Offer table: db.define_table('Offer

[web2py] Cascading drop down list with a SQLFORM

2013-03-06 Thread José Manuel López Muñoz
Hi, I have a table with Offers that belongs to hotels that belongs to Cities . Now I have a SQLFORM that help me to create new offers and I want to make a cascading drop down list for all the hotels in a City when a City is created. I have found the way that Massimo recommends: jQuery(functio

[web2py] Create a total row in a SQLFORM

2013-02-20 Thread José Manuel López Muñoz
Hi, I want to make a table with a simple query and finally a row with the result of a SUM. I'm over GAE. Is there a way to do it with SQLFORM or I have to do a table manually with a Total Row?. Thank you -- --- You received this message because you are subscribed to the Google Groups "web

[web2py] Re: How to include a select field in a many to many relationship

2013-02-15 Thread José Manuel López Muñoz
Thank you Derek, I've search an example. I will try it. On Thursday, February 14, 2013 9:14:01 PM UTC+1, Derek wrote: > > You could make it a list:reference and then process that on accept by > assigning the appropriate groups. > > On Wednesday, February 13, 2013 11:58:02 P

[web2py] Send Email with Web2py on GAE development framework

2013-02-15 Thread José Manuel López Muñoz
Hi, I'm trying to send an email from GAE (mac OS), and I've config the mail settings. Now I'm getting this into the LOG: INFO 2013-02-15 10:19:36,770 mail_stub.py:138] MailService.Send From: x...@gmail.com To: x...@gmail.com Reply-to: u...@example.com Subject:Identificador 8E de

[web2py] How to include a select field in a many to many relationship

2013-02-13 Thread José Manuel López Muñoz
Hi, I want to make a user creation form, and I need to select the group that this user belongs. As you know the user have a many to many relation with "group" using "membership", here is the book chapter: http://web2py.com/books/default/chapter/29/9#Access-Control I don't know how to make a f

[web2py] How to make a form for create an user with a membership

2013-02-13 Thread José Manuel López Muñoz
Hi, I'm trying to make a form for add a new user wich must to have a membsership. I'm making this, that obviously is very wrong: def create_user(): form = SQLFORM.grid(db.auth_user) membership_panel = LOAD(request.controller, 'create_membership.html',

[web2py] Re: Installing a plugin with GAE

2013-02-13 Thread José Manuel López Muñoz
can do like dhmorgan > suggests. > > On Tuesday, February 12, 2013 5:50:24 AM UTC-8, José Manuel López Muñoz > wrote: >> >> The plugin is a w2p file, how can I install it locally if my web2py >> application is running over GAE (in my PC). >> If I could unpack the w

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread José Manuel López Muñoz
tem is read-only and I don't think it's possible to > download and install a plugin from the admin interface... you have to > download the plugin locally and then deploy the app to GAE. > > On Tuesday, February 12, 2013 2:01:42 PM UTC+1, José Manuel López Muñoz > wrote

[web2py] Problem with layout plugin installation with GAE.

2013-02-12 Thread José Manuel López Muñoz
Hi, I'm trying to install a layout plugin from the admin form, and I'm getting this error: 59.38.141.2013-02-12.12-45-14.5bd90085-2c09-41a0-9519-2eedc98ef24b * [Errno 1] Operation not permitted: '/base/data/home/apps/s~urroomserver/3.364933294563261415/deposit/web2py.plugin.layout_sliced.w2p

[web2py] Installing a plugin with GAE

2013-02-12 Thread José Manuel López Muñoz
Hi, I want to change the layout of my application. I know that the admin can Upload a plugin and I'm trying to do it from the admin form. The problem is that I'm getting this error when I push "upload": 3.59.38.141.2013-02-12.12-45-14.5bd90085-2c09-41a0-9519-2eedc98ef24b [Errno 1] Operation

[web2py] Re: Transactions in Web2Py over Google App Engine.

2012-12-18 Thread José Manuel López Muñoz
Thank you all for the answers, I finally have created a function and run it in a transaction. Regards. On Thursday, November 29, 2012 11:18:47 AM UTC+1, José Manuel López Muñoz wrote: > > I'm making a room reservation system in Web2Py over Google App Engine. > When a user is book

[web2py] Transactions in Web2Py over Google App Engine.

2012-11-29 Thread José Manuel López Muñoz
I'm making a room reservation system in Web2Py over Google App Engine. When a user is booking a Room the system must be sure that this room is really available and no one else have reserved it just a moment before. To be sure I make a query to see if the room is available, then I make the res