[web2py] Re: Homemade Task Queues

2013-08-21 Thread at
Trying to run following script inside a controller: python web2py.py -S myapp -M -N -R applications/myapp/private/alerts.py -A 1 2 3 and getting: SyntaxError: invalid syntax at web2p*y*.py Can someone assist please. Thanks & Regards AT -- --- You received this message because you are sub

[web2py] Re: Version in admin lists "(Running on %s)" instead of providing server info

2013-08-21 Thread HittingSmoke
Interesting. I'm not sure if it's is relevant, but I'm using a very barebones nginx+uwsgi setup compiled from source. I may be misinterpreting your comment but it sounds like you're saying it should work with nginx+uwsgi. That's exactly what I'm using. On Tuesday, August 20, 2013 11:19:52 PM UT

[web2py] Re: Homemade Task Queues

2013-08-21 Thread at
I've just realized that this script is supposed to be run outside the web2py application and it would work as if it was inside the application controller, am I right? Is there any way to invoke a controller function or webservice asynchroously, from another controller function? Thanks On Wed

[web2py] Re: Not a web2py issues but ...

2013-08-21 Thread Massimo Di Pierro
If I release Creative Common is about one month. If I go with a publisher it may take longer. On Tuesday, 20 August 2013 13:12:12 UTC-5, samuel bonill wrote: > > graet ! when will be published !! > > El lunes, 19 de agosto de 2013 08:51:56 UTC-5, Massimo Di Pierro escribió: >> >> ... I am w

[web2py] Re: Version in admin lists "(Running on %s)" instead of providing server info

2013-08-21 Thread Niphlod
do you have that line in yout nginx config ? On Wednesday, August 21, 2013 9:12:50 AM UTC+2, HittingSmoke wrote: > > Interesting. I'm not sure if it's is relevant, but I'm using a very > barebones nginx+uwsgi setup compiled from source. I may be misinterpreting > your comment but it sounds like

[web2py] web2py admin interface ssh tunnel

2013-08-21 Thread Jayadevan M
I am following the recipe to use a new instance of web2py along with ssh tunneling to access the web2py admin interface. The recipe says use the command nohup python web2py --nogui -p 8002 -i 127.0.0.1 -a '' & How can I stop an instance started like this? I am doing a ps for the process and kil

[web2py] Re: web2py admin interface ssh tunnel

2013-08-21 Thread Massimo Di Pierro
No difference. The former allows you to specify which Python version to use if you have more than one installed. On Wednesday, 21 August 2013 01:04:16 UTC-5, Jayadevan M wrote: > > I am following the recipe to use a new instance of web2py along with ssh > tunneling to access the web2py admin int

[web2py] Re: deployment to google app engine did not include my static files

2013-08-21 Thread Massimo Di Pierro
Luca's patch is in trunk. On Thursday, 15 August 2013 04:01:52 UTC-5, Massimo Di Pierro wrote: > > Sorry, was out of town and had connection very few hours a day. Trying to > catch up. Tomorrow will be a little better. > > On Wednesday, 14 August 2013 18:33:33 UTC-5, Luca wrote: >> >> Massimo, I

Re: [web2py] LDAP with username=True can still login with email

2013-08-21 Thread Massimo Di Pierro
I have not forgotten. I opened issue 1645. On Tuesday, 13 August 2013 15:13:30 UTC-5, Richard wrote: > > Massimo, > > If you are concern about possible backward compatibility issue that this > change could raise... Maybe we could find a way to let the ldap_auth return > validator error to form (

[web2py] Re: crud not updating

2013-08-21 Thread Massimo Di Pierro
I opened an issue about this 1646. On Saturday, 10 August 2013 12:32:39 UTC-5, Tushar Tuteja wrote: > > I face the same problem, I am using a latest version of web2py and > doing crud.settings.detect_record_change = False > doesn't make changes > > On Tuesday, August 30, 2011 10:37:54 PM UTC+5:3

[web2py] Re: Google Cloud SQL

2013-08-21 Thread Massimo Di Pierro
Is this an open issue? On Thursday, 8 August 2013 15:48:00 UTC-5, Felipe Augusto Meirelles wrote: > > Hi! > > I'm trying to update to the latest versions of web2py. I use GAE + Google > Cloud SQL. > > On the latest release version I got the error "AttributeError: > 'GoogleSQLAdapter' object has

[web2py] Re: InterfaceError: connection already closed

2013-08-21 Thread Massimo Di Pierro
Can you please try again? I think I may have a fix. On Thursday, 15 August 2013 05:22:28 UTC-5, hiro wrote: > > Ok, I have updated to 2.6.0-development+timestamp.2013.08.08.09.00.28 now. > Will give it some time and see if the error is still there. > > Thank you very much for your help Massimo! >

Re: [web2py] Re: Not a web2py issues but ...

2013-08-21 Thread António Ramos
why not https://leanpub.com/ 2013/8/21 Massimo Di Pierro > If I release Creative Common is about one month. If I go with a publisher > it may take longer. > > > > On Tuesday, 20 August 2013 13:12:12 UTC-5, samuel bonill wrote: >> >> graet ! when will be published !! >> >> El lunes, 19 de ag

[web2py] Re: installing appliance.

2013-08-21 Thread אבי אברמוביץ
Right, there are no views. Thanks. On Wednesday, August 21, 2013 1:31:55 AM UTC+3, אבי אברמוביץ wrote: > > Hi, > I tried to install the car app and I got to: > invalid function (default/Cars) > on both urls: > http://localhost:8000/Cars > http://localhost:8000/Cars/appadmin > I was using the admin

Re: [web2py] session logic

2013-08-21 Thread Michele Comitini
It seems to me that a cookieless client break things because session_id becomes None. https://github.com/web2py/web2py/pull/177 2013/8/20 Massimo Di Pierro > The session logic has been rewritten (for clarity and to fix a bug). Can > you help checking nothing is broken? > > -- > > --- > You rec

Re: [web2py] session logic

2013-08-21 Thread Marin Pranjić
and travis builds are failing On Wed, Aug 21, 2013 at 12:20 PM, Michele Comitini wrote: > It seems to me that a cookieless client break things because session_id > becomes None. > > https://github.com/web2py/web2py/pull/177 > > > 2013/8/20 Massimo Di Pierro >> >> The session logic has been rewri

[web2py] Re: bug in trunk with request.vars being turned into a list with a duplicated value???

2013-08-21 Thread Tim Richardson
I created issue 1647 https://code.google.com/p/web2py/issues/detail?id=1647 which includes a simple controller function to reproduce the error. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop rec

[web2py] Re: bug in trunk with request.vars being turned into a list with a duplicated value???

2013-08-21 Thread Tim Richardson
> When that URL is requested, is a login_id variable also included in the > POST variables? If so, request.get_vars.login_id will be "T19566", > request.post_vars.login_id will be "T19566", and request.vars.login_id will > be ["T19566", "T19566"] (i.e., request.vars combines request.get_vars a

Re: [web2py] LDAP with username=True can still login with email

2013-08-21 Thread Richard Vézina
No problem, thank for the follow... Richard On Wed, Aug 21, 2013 at 4:51 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I have not forgotten. I opened issue 1645. > > > On Tuesday, 13 August 2013 15:13:30 UTC-5, Richard wrote: > >> Massimo, >> >> If you are concern about possible

[web2py] The good and bad about web2py!!!

2013-08-21 Thread António Ramos
comments ? http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/ -- --- 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...@googlegroup

Re: [web2py] The good and bad about web2py!!!

2013-08-21 Thread Marin Pranjić
This is 3 years old On Wed, Aug 21, 2013 at 3:45 PM, António Ramos wrote: > comments ? > http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/ > > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this

Re: [web2py] The good and bad about web2py!!!

2013-08-21 Thread Richard Vézina
Old post I think... There is no date on the post, but there is replies 3 years old... Richard On Wed, Aug 21, 2013 at 9:45 AM, António Ramos wrote: > comments ? > http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/ > > -- > > --- > You received this message because you are subscr

[web2py] Re: Not a web2py issues but ...

2013-08-21 Thread Ykä Marjanen
Happy to help Massimo (sending you an email). I've done my PhD using Python and Scipy/Numpy and in my company we develop motion algorithms using Python. Now starting to learn Pandas. Ykä On Monday, August 19, 2013 4:51:56 PM UTC+3, Massimo Di Pierro wrote: > > ... I am writing a book about Nume

[web2py] Re: Connection Closing Issue when Connecting to a Dynamic List of Dbs

2013-08-21 Thread ewong1111
I changed the DAL pool_size to 0 and then my_db.close() did what I wanted. -- --- 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.

[web2py] Re: Querying Multiple Databases

2013-08-21 Thread ewong1111
For some reason I hadn't realized that you could create a DAL in a regular ol controller function so that is what I did. I also had to make sure pool_size=0 and then after I was done with each db in the list I called close() on the DAL object. -- --- You received this message because you ar

Re: [web2py] RESTful and content-type

2013-08-21 Thread Ricardo Pedroso
On Tue, Aug 20, 2013 at 12:36 PM, Miguel Cabo wrote: > I had a problem with Restful requests. The content-type response header > was text/plain when I sent a http://xxx.json request. Is it ok? I need > content-type response header as application/json. To do that I have > modified the glucon/conten

[web2py] Re: Version in admin lists "(Running on %s)" instead of providing server info

2013-08-21 Thread HittingSmoke
I thought I did but apparently not. I see where my confusion was though. I thought the absence of the Python version was because of the lack of server info. After correcting my config it's still not displaying the Python version, which is what I'm assuming was just fixed according to the issue

[web2py] inbuilt login form

2013-08-21 Thread kn
hi, am new to web2py and i have been struggling to use it, could anyone help me on how to make it work as in what needs to be done. i have a template which is working fine so far but the thing is once i click on the login button, i expect the inbuilt login form to appear of which it is not. i h

[web2py] Re: Advice on Architecture/Design

2013-08-21 Thread Carlos Zenteno
Can you expand on the sufficient comment? What do you mean by is it sufficient for the application? On Friday, August 16, 2013 2:58:18 PM UTC-7, Massimo Di Pierro wrote: > > I agree. Anyway, there is a multi-tenant feature that can be enabled at > any time. The issue is, is it sufficient? > > > >

[web2py] Re: Advice on Architecture/Design

2013-08-21 Thread Massimo Di Pierro
All I meant is that we have a tool to do multi-tenancy. I could use some feedback about it. Perhaps it is sufficient perhaps it needs additional features. I have not used it much myself therefore I am not sure. Massimo On Wednesday, 21 August 2013 11:18:50 UTC-5, Carlos Zenteno wrote: > > Can y

[web2py] Re: GAE Cron, or some equivelant

2013-08-21 Thread jjg0
I am using the gae python sdk at the moment. when I go to http://localhost:8000/cron i see an invalid request. On Tuesday, August 20, 2013 4:10:04 PM UTC-4, Niphlod wrote: > > I'm just reading through the docs. > *Cron support in the development server* > > When using the Python SDK, the dev_

[web2py] Re: inbuilt login form

2013-08-21 Thread Ykä Marjanen
Hi kn, it would help to provide a code (model, controller, view) and a description of what you want it to do. Ykä On Wednesday, August 21, 2013 7:05:19 PM UTC+3, kn wrote: > > hi, am new to web2py and i have been struggling to use it, could anyone > help me on how to make it work as in what ne

[web2py] IS_EMPTY_OR(IS_IN_DB(db,'plugin.id',...,multiple=(1,5))) back to []

2013-08-21 Thread Annet
I have a validator: requires=IS_EMPTY_OR(IS_IN_DB(db,'plugin.id','%(name)s',orderby='plugin.id',multiple=(1,5))) When the field is empty it contains an empty list [] when there are plugins selected the field contains for example: [2L, 4L, 6L, 7L], how do I revert back to an empty list, in appad

Re: [web2py] IS_EMPTY_OR(IS_IN_DB(db,'plugin.id',...,multiple=(1,5))) back to []

2013-08-21 Thread Richard Vézina
Not sure I totally understand. But you can redefine your requires depending of the context. So let say you define a global requires at the model level, you can override this requires in your controller depending of conditions... Richard On Wed, Aug 21, 2013 at 2:14 PM, Annet wrote: > I have a

[web2py] Bootstrap--recovering horizontal space

2013-08-21 Thread Warren Block
I have a SQLFORM.grid that could use the full width of the screen. Turning off the sidebars in the view still leaves huge blank gaps to left and right. How can I recover that space? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To uns

[web2py] Serving static assets in nginx.

2013-08-21 Thread HittingSmoke
I've been going back over my configuration compared to various other deployment recipes after realizing I was missing some non-critical uwsgi related parameters. I noticed my static location block in nginx was different than the one recommended in the web2py nginx+uwsgi setup script. Here's wha

[web2py] All SOAPed up

2013-08-21 Thread Dave S
Thanks to the web2py crew, I have a (simple) SOAP server running. The book and this group were excellent resources for getting started. I began my foray into the world of SOAP with a SUDS client to talk to an existing server (part of a physical device from Universal Devices,Inc), but in resear

[web2py] Re: Store values from Select button

2013-08-21 Thread sonu kumar
Hi, I have created select button through controller and I would like to store value of select after onchange in a variable so that I can use in other functions. Is there anyway to do it? def index(): test = FORM('Select name:',SELECT(['Ram', 'Satish', 'Kumar', ],_name='test'),_onchange='')

[web2py] Re: All SOAPed up

2013-08-21 Thread Dave S
I also wanted to note that during my experiments, when restarting web2py (I shut it down the night before), I got the error message: ERROR:Rocket.Errors.Port8000:Socket 10.3.xxx.134:8000 in use by other process and it won't share. This was a bit confusing, as I couldn't see what process was

[web2py] start/stop an app

2013-08-21 Thread Dave S
Is the way to start and stop an app this? Go to the appadmin "site" page, and use the "disable"/"enable" toggle button? Thanks. /dps -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emai

[web2py] Re: start/stop an app

2013-08-21 Thread Derek
An app isn't really always running. It runs when a request is made, so it's always stopped when not in use. On Wednesday, August 21, 2013 12:57:25 PM UTC-7, Dave S wrote: > > Is the way to start and stop an app this? Go to the appadmin "site" page, > and use the "disable"/"enable" toggle butto

[web2py] Re: start/stop an app

2013-08-21 Thread Dave S
But the "disable" button keeps it from running when an request is made? /dps On Wednesday, August 21, 2013 1:20:23 PM UTC-7, Derek wrote: > > An app isn't really always running. It runs when a request is made, so > it's always stopped when not in use. > > > On Wednesday, August 21, 2013 12:57:25

[web2py] Re: start/stop an app

2013-08-21 Thread Niphlod
the disable button prevents anyone from accessing the app. On Wednesday, August 21, 2013 10:29:44 PM UTC+2, Dave S wrote: > > But the "disable" button keeps it from running when an request is made? > > /dps > > On Wednesday, August 21, 2013 1:20:23 PM UTC-7, Derek wrote: >> >> An app isn't really

[web2py] Re: start/stop an app

2013-08-21 Thread Dave S
Thanks! /dps On Wednesday, August 21, 2013 1:32:50 PM UTC-7, Niphlod wrote: > > the disable button prevents anyone from accessing the app. > > On Wednesday, August 21, 2013 10:29:44 PM UTC+2, Dave S wrote: >> >> But the "disable" button keeps it from running when an request is made? >> >> /dps >

[web2py] Re: Serving static assets in nginx.

2013-08-21 Thread Niphlod
with your config you enable for everything that ends with those extensions: - the "disable" of the access log - the cache header set to a very distant time in the future This means that if someone by any chance requests an url from your application that ends in xml, you short-circuit nginx to thin

Re: [web2py] RESTful and content-type

2013-08-21 Thread Niphlod
this was fixed in a recent revision. Yes, you could force the content-type but it was supposed to be auto-detected, and that's what the revision patched. On Wednesday, August 21, 2013 6:23:27 PM UTC+2, Ricardo Pedroso wrote: > > > On Tue, Aug 20, 2013 at 12:36 PM, Miguel Cabo > > > wrote: > >>

[web2py] how to get auth tables created?

2013-08-21 Thread Dave S
I am tying to add authorization to a simple server I had working. In the db model, I have the line auth.define_tables(username=True) default.py has, as the docs suggest @auth.requires_login() def call(): return service() def user(): return dict(form=auth()) but the tables seem not

[web2py] Re: Serving static assets in nginx.

2013-08-21 Thread HittingSmoke
I can see how serving XML as static could be an issue with web2py since it can be used in so many different ways. I think I'll remove that part. I was thinking that there seems to be instances when images would be served from outside of the static directory, like an app's custom upload director

[web2py] Re: Encoding problem in 'format' from define_table on GAE

2013-08-21 Thread juan
The issue wasnt completely resolved that way, there were problems with list:reference in updates and some weird behaviour, always involving lists but no simple references, so I debugged my way down to the web2py code and finally found the problem. In the line 6860 of the file gluon/dal.py, this

[web2py] Re: Serving static assets in nginx.

2013-08-21 Thread HittingSmoke
It looks like the zip_static_files.py script only gzips css and js files. There's a lot more that can be compressed, such as web fonts and vector graphics. I understand why jpg and png images are left out, but why only css and js? On Wednesday, August 21, 2013 11:59:18 AM UTC-7, HittingSmoke wr

[web2py] Re: InterfaceError: connection already closed

2013-08-21 Thread hiro
I have been on 2.6.0-development+timestamp.2013.08.08.09.00.28 for more than a week now, and I have not had any errors. The new admin interface is not working very well in that release, but it looks like it has a lot potential. On Wednesday, August 21, 2013 11:28:44 AM UTC+2, Massimo Di Pierro