[web2py] Re: GAE 1.8.1 and logging doesn't work

2013-06-20 Thread José Manuel López
0].setLevel(logging.INFO) > > that seemed to help me weed out some extra logs (i never had luck with > logging.conf and GAE). can you try and see if that helps? if so let's > submit an patch to massimo! > > thanks, > > christian > > On Wednesday, June 19,

[web2py] GAE 1.8.1 and logging doesn't work

2013-06-19 Thread José Manuel López
Hi!, I've change to GAE 1.8.1 and suddenly (before, with GAE 1.7.5 everything worked ok) the LOG is not working. None of my debugs lines are dump to console. Then I've see that my logging.conf was not being used. This is my log config: [loggers] keys=root,rocket,markdown,web2py,rewrite,cron,ap

[web2py] Re: Scheduler task in GAE

2013-06-13 Thread José Manuel López
gine/docs/python/taskqueue/overview-pushbut >> I'm lost about how to use it from my controller and Web2Py. >> Thanks! >> >> >> On Monday, June 3, 2013 9:12:14 PM UTC+2, Niphlod wrote: >>> >>> ehmm.. scheduler is NOT meant to be run on GAE.

[web2py] Re: Scheduler task in GAE

2013-06-04 Thread José Manuel López
eue > for that. > > On Monday, June 3, 2013 7:59:45 PM UTC+2, José Manuel López wrote: >> >> Hi Massimo, >> this is my Web2Py version: Version >> 2.4.6-stable+timestamp.2013.04.06.17.37.38 >> And I'm running on 2.5 Python version, maybe I've to

[web2py] Re: Scheduler task in GAE

2013-06-03 Thread José Manuel López
Ops!, ok Niphold, then I'm going to use their task queue :)) Thanks for the help! On Monday, June 3, 2013 9:12:14 PM UTC+2, Niphlod wrote: > > ehmm.. scheduler is NOT meant to be run on GAE. They have task queue > for that. > > On Monday, June 3, 2013 7:59:45 PM UTC+

[web2py] Re: Scheduler task in GAE

2013-06-03 Thread José Manuel López
You may be on an early Python > version that does include multiprocessing. > > On Monday, 3 June 2013 11:01:38 UTC-5, José Manuel López wrote: >> >> Hi, >> I've a function call SendReport that send an email to every user in my >> system every day (morning), s

[web2py] Scheduler task in GAE

2013-06-03 Thread José Manuel López
Hi, I've a function call SendReport that send an email to every user in my system every day (morning), something like a newsletter. Now, I've to make this task with the scheduler but I'm not sure how to do it. I've see the video (thanks Massimo), but I'm not sure where I've to do it. This is m

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Now it's perfectly working! A simple "if" in the main index :) and a redirect... the most simple solution, like always... Thank you so much for your time and for let me understand (a little more) this awesome tool On Wednesday, May 8, 2013 8:12:54 PM UTC+2, José Manuel López

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
so, then when you attempt to go to that URL after having logged out, it > will immediately redirect again to the login page. > > Anthony > > On Wednesday, May 8, 2013 1:42:19 PM UTC-4, José Manuel López wrote: >> >> For a moment I can see the "logout" that yo

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
wrote: > > OK, my mistake -- the _next variable points to auth.settings.logout_next > -- so just change that setting to whatever URL you want. > > Also, are you sure the Logout URL is pointing to /default/user/login and > not /default/user/logout? > > Anthony > > On Wedn

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
> pack it, and attach it here? > > Anthony > > On Wednesday, May 8, 2013 12:30:49 PM UTC-4, José Manuel López wrote: >> >> Sorry my ignorance but am newbie ... where can I find it? >> >> On Wednesday, May 8, 2013 6:27:15 PM UTC+2, Anthony wrote: >&

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Sorry my ignorance but am newbie ... where can I find it? On Wednesday, May 8, 2013 6:27:15 PM UTC+2, Anthony wrote: > > What does your Auth setup code look like? > > On Wednesday, May 8, 2013 12:01:48 PM UTC-4, José Manuel López wrote: >> >> Hi Anthony, >> This is

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
the navbar? Is it just > auth.navbar(mode="dropdown")? The logout link on the navbar should point to > /appname/default/user/logout?_next=[URL of the current page] -- it should > not point to /default/user/login at all. > > Anthony > > On Wednesday, May 8, 2013 1

[web2py] Re: Please need some help with URL after session close

2013-05-08 Thread José Manuel López
2013 4:04:53 PM UTC+2, Anthony wrote: > > What do you mean by "close the session"? > > On Wednesday, May 8, 2013 9:58:13 AM UTC-4, José Manuel López wrote: >> >> Hi!, >> I'm a lost with this problem, maybe anyone can help me. >> Let's say I'm

[web2py] Please need some help with URL after session close

2013-05-08 Thread José Manuel López
Hi!, I'm a lost with this problem, maybe anyone can help me. Let's say I'm logged in this route: /AppName/*normalController*/*index*, and then close the session. Why when I close the session web2py redirects me to this URL? ->> AppName/* default/user/login*?_next=/AppName/*default/index* , I was

[web2py] URL route when closed session

2013-05-08 Thread José Manuel López
Hi, Let's say I'm in this route: /AppName/*normalController*/*index*, logged and then I close the session. Why when I close the session web2py redirects me to this URL? AppName/*default/user/login*?_next=/AppName/*default/index*, I was expecting something like: AppName/*default/user/login*?_ne

[web2py] Re: Populate a field only with the admins

2013-05-07 Thread José Manuel López
the .belongs() to only 30 items, though, so if it > might contain more, you may need to build the list separately and use an > IS_IN_SET() validator instead. Others with GAE experience may have better > ideas. > > Anthony > > On Tuesday, May 7, 2013 9:55:37 AM UTC-4, José Man

[web2py] Re: Smartgrid not working, error given

2013-05-07 Thread José Manuel López
table = SQLFORM.smartgrid(db.OffersCity, linked_tables=linked_tables) return dict(table=table) As you can see it's very simple. On Tuesday, May 7, 2013 3:46:30 PM UTC+2, LightDot wrote: > > This is not your entire database definition, is it? It might help if you > post

[web2py] Re: Populate a field only with the admins

2013-05-07 Thread José Manuel López
Thank you Anthony for your help, The problem now is this: Too many tables selected Can be a problem that I'm over GAE? On Tuesday, May 7, 2013 3:43:32 PM UTC+2, Anthony wrote: > > yes, you are right, db.auth_user will return all the users table. > > please try to change >> Field('hotel_chain_m

[web2py] Re: Smartgrid not working, error given

2013-05-07 Thread José Manuel López
=None) > should be > table = SQLFORM.smartgrid(db.OffersCity, constraints=None) > > best regards > > On Tuesday, May 7, 2013 7:29:49 AM UTC-4, José Manuel López wrote: >> >> Hi, >> Lets say I have this table: >> db.define_table('OffersCity', >

[web2py] Re: Populate a field only with the admins

2013-05-07 Thread José Manuel López
b.auth_user) > into > Field('hotel_chain_manager', 'reference auth_user', > default=auth.has_membership('Admin')) > > hope this can help > > best regards > > On Tuesday, May 7, 2013 7:24:05 AM UTC-4, José Manuel López wrote: >> >> >

[web2py] Smartgrid not working, error given

2013-05-07 Thread José Manuel López
Hi, Lets say I have this table: db.define_table('OffersCity', Field('city', db.City), Field('offer', db.Offer), Field('hotel', db.Hotel)) I want to create a smartgrid, but it's not working... I don't know why: Here it's my code: table = SQLFORM.s

[web2py] Re: Populate a field only with the admins

2013-05-07 Thread José Manuel López
0:36:04 AM UTC+2, 黄祥 wrote: > > i think you can achieve it (in controller using grid) with > editable = auth.has_membership('Admin') > > e.g. > def booking(): > has_membership=auth.has_membership('Admin') > grid=SQLFORM.grid(db.booking, editable=

[web2py] Populate a field only with the admins

2013-05-07 Thread José Manuel López
Hi, I've a " form = SQLFORM.grid " that let the user edit the rows. In the edit form I want that one of the field populated only with "Admins". Now I have this field populated with all the db.auth_user and is huge and very hard to find the correct user. How can I do it?, I'm thinking in someth

[web2py] Re: Making a query and projection not working.

2013-05-06 Thread José Manuel López
list fields, but don't have the projection > indexes. > > let us know if that doesn't fix it for you! > > cfh > > On Monday, May 6, 2013 12:17:44 AM UTC-7, José Manuel López wrote: >> >> Hi, >> I've to make an adHoc user management formulary

[web2py] Making a query and projection not working.

2013-05-06 Thread José Manuel López
Hi, I've to make an adHoc user management formulary and I'm making a table with a "role filter". I'm in GAE and the joins must to be done by hand. This is my code: auth_user_with_role = db(db.auth_membership.group_id==request.vars.role). select(db.auth_membership.ALL) auth_user_ids_role_selected

[web2py] Re: Create a Form.grid from Rows

2013-05-06 Thread José Manuel López
int of the grid is to do > paginations without having all the records. If you do, you do not need the > grid. > > On Friday, 3 May 2013 06:30:57 UTC-5, José Manuel López wrote: >> >> Lets say I have a Rows object with the info I want to represent in a gird >> or smar

[web2py] Create a Form.grid from Rows

2013-05-03 Thread José Manuel López
Lets say I have a Rows object with the info I want to represent in a gird or smartgrid, is there any way to create a grid passing this rows?. Something like this: form = SQLFORM.grid(*ROWS*, <<- searchable=True, deletable=True,

[web2py] Problems with route.py

2013-04-30 Thread José Manuel López
Hi, I have this routes in route.py routes_in = ( ('/hoteles', '/hoteluser/index'), ) routes_out = ( ('/hoteluser/index', '/hoteles'), ) It's a very simple test where I want that an URL like this: * http://localhost:8088/myapp//hoteluser/index* looks like this * http://localhost:8088/urroomserv

[web2py] Re: Queries with AND in GAE

2013-04-17 Thread José Manuel López
> db(condition and condition).select() > > On Wednesday, April 17, 2013 8:52:09 AM UTC+2, José Manuel López wrote: >> >> I'm trying to make a very simple query: >> >> offersInRange= db(db.Offer.hotel == request.vars.hotel

Re: [web2py] Re: AppStats doesn't work in my App. [GAE]

2013-04-17 Thread José Manuel López
Thank you Christian!. Now it works. Any clues to low the overhead? On Tuesday, April 16, 2013 6:28:30 PM UTC+2, Christian Foster Howes wrote: > > ahhh yes...i remember. given that appstats, while helpful for testing, > has a significant performance overhead (200ish ms per request i think), > a

[web2py] Queries with AND in GAE

2013-04-16 Thread José Manuel López
I'm trying to make a very simple query: offersInRange= db(db.Offer.hotel == request.vars.hotel anddb.Offer.valid_from_date > = form.vars.valid_to_date and db.Offer.valid_from_date <=form.vars.valid_to_date ).select(db.Offer.ALL) I have test this too: offersInRang

[web2py] Re: AppStats doesn't work in my App. [GAE]

2013-04-16 Thread José Manuel López
abled in app.yaml? > - what does your appengine_config.py look like? > > cfh > > On Monday, April 15, 2013 12:28:59 AM UTC-7, José Manuel López wrote: >> >> >> <https://lh4.googleusercontent.com/-xPEFarglbpA/UWvXiWWPdnI/AB0/vB3xDkBUeVY/s1600/Captura+de+p

[web2py] AppStats doesn't work in my App. [GAE]

2013-04-15 Thread José Manuel López
Hi, AppStats doesn't work in my App although I have this in gaehandler.py: LOG_STATS = TrueAPPSTATS = True DEBUG = False I have do anything wrong because it doesn't work in Local or in googlespot. As you can see in the screenshot I've the AppStats link in the CUSTOM section, but when I select

[web2py] Query for an entity in GAE using id

2013-04-09 Thread José Manuel López
Hi, I'm trying to get a Offer entity in my DB (GAE) and I'm doing something like this: offerKey = gae.Key.from_path('Offer', offer.id) # offer is my the offer using DAL. Now I have to make a decrementation inside a transaction GAE: if (not gae.run_in_transaction(decrementNumRooms, offerKey)):

[web2py] Re: Put € symbol in prices in a SQLForm.grid

2013-03-25 Thread José Manuel López
wn formatting value > > On Monday, March 25, 2013 10:19:53 AM UTC+1, José Manuel López wrote: >> >> Hi, >> It's possible to put the €/$ symbol in a column in a SQLForm.grid?. >> Thanks >> > -- --- You received this message because you are subscri

[web2py] Put € symbol in prices in a SQLForm.grid

2013-03-25 Thread José Manuel López
Hi, It's possible to put the €/$ symbol in a column in a SQLForm.grid?. Thanks -- --- 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...@googleg

[web2py] Uploading and Downloading Bulk data GAE

2013-03-14 Thread José Manuel López
Hi, I'm searching for a method to upload / download data from / to GAE. Basically I have Hotels, Hotels Images, Cities, Cities Images ... in wich some images belongs to some Cities / Hotels. I've found a way using the bulk uploader from Google, but I don't know if it's the best way to do it be

[web2py] Re: "Not Supported" error when making a select with an OR over GAE

2013-03-13 Thread José Manuel López
things have changed very recently, GAE can only do OR where the > left and right expressions involve the same field. > > On Tuesday, 12 March 2013 07:25:28 UTC-5, José Manuel López wrote: >> >> I'm over GAE and I'm trying to do this: >> db((db.Hotel.manage

[web2py] "Not Supported" error when making a select with an OR over GAE

2013-03-12 Thread José Manuel López
I'm over GAE and I'm trying to do this: db((db.Hotel.managerID == user)|(db.Hotel.hotelChainManager == user)).select () But I'm getting an error: File "/Users/XXX/Development/Server/web2py/gluon/dal.py"*, *line 4237*, **in *OR *def *OR*(**self**,*first*,*second*): **raise *SyntaxError*(*"Not

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

2013-03-11 Thread José Manuel López Muñoz
Thank you Anthony. On Friday, March 8, 2013 5:47:48 PM UTC+1, Anthony wrote: > > See > http://stackoverflow.com/questions/8146260/best-practice-for-populating-dropdown-based-on-other-dropdown-selection-in-web2p/8152910#8152910 > . > > On Friday, March 8, 2013 2:03:28 AM UTC-5,

[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