[web2py] Pass args to function with cron

2011-02-27 Thread Thadeus Burgess
Using the following syntax... */5 * * * *root *default/do/arg1/arg2/arg3 It fails with "Invalid application name" Is there a way to pass args to the functions when using the web2py cron? -- Thadeus

[web2py] Re: what's the average learning curve?

2011-02-27 Thread KMax
If no webdesing required from you , then web2py is what you need. I was stunned, when I was able to create not just hello world web application in one month. I have basic programming skill from university, and this was my acquaintance with python! Some time ago I spent a year to making php web app

[web2py] Using multiprocessing in web2py

2011-02-27 Thread David Mitchell
Hello everyone, I've read through the message archive and there seems to be a fairly clear message: don't using the multiprocessing module within web2py. However, I'm hoping I might have a use case that's a bit different... I've got an app that basically does analytics on moderately large datase

[web2py] widzard + janrain problem

2011-02-27 Thread Sebastian E. Ovide
Hi All, I've just created a new account in google, facebook and janrain. Then I've created a new application using the widzard and as login system I've selected janrain. As configuration I've used "localhost:mykeyfromjanrain". Now when I click "login" I can see the janrain login, I select google a

[web2py] Re: what's the average learning curve?

2011-02-27 Thread villas
On Feb 27, 1:56 am, Sean wrote: > "how sophisticated will the client-side be?" > > Are you talking about the JS, templates, css stuff? Yes, I was thinking that a good price comparison site might use a lot of ajax etc. Having seen a couple of other sites, a good design may take a lot of effort an

[web2py] Re: plugin_wiki printing code

2011-02-27 Thread villas
Massimo If you are working on plugin-wiki would you please give some thought about the URL being hard-coded for the 'default' controller (in the page function). It would be nice if we could have a setting for this. I remember trying to route the urls once and that was one of the obstacles. Also d

[web2py] Re: bug with type

2011-02-27 Thread villas
On Feb 26, 7:56 pm, LightOfMooN wrote: > Yes, it's so. I should be more careful with variable names :) Yes indeed. Please use the 'reserved key words' feature when initially making your models. All you have to do is temporarily add check_reserved=['all'] to your connect string. This small prec

[web2py] Re: newb - a postgres database view

2011-02-27 Thread DenesL
I haven't used the extract scripts myself (there is one for mysql too). Let us know how it goes. On Feb 26, 9:33 pm, darkblue_b wrote: > in case I wasnt clear, I used "extract_pgsql_models.py" to create the > model.. > you have to re-arrange the output, from alpha by method to leaf tables > fir

[web2py] using oembed to embed videos in a web2py blog

2011-02-27 Thread JagChris
I have been trying to figure out how to do this, but i can't seem to go anywhere with it. How do i use this to embed videos in a form

Re: [web2py] Pass args to function with cron

2011-02-27 Thread Jonathan Lundell
On Feb 27, 2011, at 12:31 AM, Thadeus Burgess wrote: > Using the following syntax... > > */5 * * * *root *default/do/arg1/arg2/arg3 > > It fails with "Invalid application name" > > Is there a way to pass args to the functions when using the web2py cron? It doesn't

[web2py] Re: Small bug in gluon/widget.py and something more

2011-02-27 Thread José L .
On Sunday, February 27, 2011 3:32:36 AM UTC+1, Massimo Di Pierro wrote: > > OK. I only have one request. Can you define > > gtk_presentation > > in its own module in contrib and try import it from widget? > > I am not sure how this plays out with py2exe and py2app > > Done. I have uploaded wi

[web2py] Re: Displaying br instead new line in views

2011-02-27 Thread blackthorne
yes, because I've inserted some '\n' directly on the database and the GUI used for that, did that for me. As I read that by using that it still wasn't working for him, I wondered if his problem wasn't the same as mine. On Feb 27, 2:35 am, Massimo Di Pierro wrote: > Actually I think Denes is right

[web2py] Re: Displaying br instead new line in views

2011-02-27 Thread Alexandre Strzelewicz
I simply did : {{=XML(vote.content.replace('\n',''))}} Thanks for help Thanks for your help On Feb 27, 6:34 pm, blackthorne wrote: > yes, because I've inserted some '\n' directly on the database and the > GUI used for that, did that for me. As I read that by using that it > still wasn't workin

[web2py] json/xml not working on GAE

2011-02-27 Thread Sebastian E. Ovide
Hi, I have a simple action: def restaurants(): restaurants=db().select(db.restaurant.ALL) return dict(restaurants=restaurants) on my machine I can get myapp/default/restaurants.json or .xml but it doesn't work on GAE !... in GAE myapp/default/restaurants work but if I append .json o

Re: [web2py] json/xml not working on GAE

2011-02-27 Thread Jonathan Lundell
On Feb 27, 2011, at 9:58 AM, Sebastian E. Ovide wrote: > Hi, > > I have a simple action: > > def restaurants(): > restaurants=db().select(db.restaurant.ALL) > return dict(restaurants=restaurants) > > on my machine I can get myapp/default/restaurants.json or .xml but it > doesn't wor

[web2py] are external modules reloaded with each request?

2011-02-27 Thread VP
Are modules defined in applications/app/modules reloaded with each request? It appears so; because when I modified the module changes are picked up right away without restarting web2py. If this is the case, what is the point of moving codes from controllers/models into external modules?

[web2py] Re: are external modules reloaded with each request?

2011-02-27 Thread pbreit
I thought the point was to use modules instead of models since modules are only loaded when you do a local_import().

[web2py] Re: are external modules reloaded with each request?

2011-02-27 Thread pbreit
And make sure to set reload=False (default is True) in local_import(): http://www.web2py.com/book/default/chapter/04?search=modules#Third-Party-Modules

[web2py] Re: are external modules reloaded with each request?

2011-02-27 Thread pbreit
I'm wrong, the default is False. So it seems by default it should not be reloading.

[web2py] Re: are external modules reloaded with each request?

2011-02-27 Thread VP
Yes, thank you. I mistakenly set it to True and left there. With reload=False, the module is loaded only once. On Feb 27, 12:26 pm, pbreit wrote: > I'm wrong, the default is False. So it seems by default it should not be > reloading.

[web2py] bitwise operations?

2011-02-27 Thread br
How I can make DAL query using bitwise 'AND' operator? raw sql looks like: select * from some_table where flags & 1 = 1 thanks LOVE web2py

[web2py] Status of Python 2.4 support

2011-02-27 Thread Russ
I know that 2.4 is not "officially" supported, but I've just discovered the joy of web2py and my web hosting service only provides 2.4.3 right now. I've already contacted their support and 2.4.3 is the latest they provide, although I'll probably make another ticket to request an upgrade anyway. ;)

[web2py] Suggestion: SQLFORM.formsyle

2011-02-27 Thread teemu
Hi, I would like to suggest some changes to SQLFORM class. I heavily use 'formstyle=function' feature in my web2py-projects to create customized form layouts. However, there is one big disadvantage in behavior of the standard SQLFORM code. SQLFORM always wraps form into element if one define 'for

[web2py] Re: Status of Python 2.4 support

2011-02-27 Thread Anthony
According to Massimo, the current 1.92.* series will maintain support for Python 2.4, but support will be dropped starting with the 1.93.* release: https://groups.google.com/d/msg/web2py/c58q8YHAGW4/dK4uuvWrq6AJ On Sunday, February 27, 2011 1:32:58 PM UTC-5, Russ wrote: > I know that 2.4 is

[web2py] Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread AW
As in the subject title.

[web2py] Re: Status of Python 2.4 support

2011-02-27 Thread Russ
Very good to know. Thanks Anthony! On Feb 27, 12:56 pm, Anthony wrote: > According to Massimo, the current 1.92.* series will maintain support for > Python 2.4, but support will be dropped starting with the 1.93.* release: > > https://groups.google.com/d/msg/web2py/c58q8YHAGW4/dK4uuvWrq6AJ > > >

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread pbreit
Well, it also includes /state and /cache so I'd say leave it for now.

[web2py] Re: bitwise operations?

2011-02-27 Thread pbreit
Would operator.and_(a, b) work? http://docs.python.org/library/operator.html

[web2py] Re: extract_mysql_models.py

2011-02-27 Thread stargate
Where do I find this file? extract_mysql_models.py On Feb 26, 10:12 am, Vasile Ermicioi wrote: > please read the comments from the script > > Under Windows you will probably need to add the mysql executable directory > > > to the PATH variable, > > you will also need to modify mysql to mysql.exe

[web2py] Licensator

2011-02-27 Thread Bruno Rocha
Starting a new open source project? We can help you! Create your own open source project can be a lot of fun! Except, of course, when you have to decide which license to use. Licensator

[web2py] Re: Licensator

2011-02-27 Thread villas
LOL we needed this for web2py a few weeks ago! Nice idea. On Feb 27, 7:57 pm, Bruno Rocha wrote: >  Starting a new open source project? We can help > you! > > Create your own open source project can be a lot of fun! Except, of course, > when you have to deci

[web2py] Re: extract_mysql_models.py

2011-02-27 Thread villas
It's distributed with web2py source. See here: http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py On Feb 27, 7:55 pm, stargate wrote: > Where do I find this file? > > extract_mysql_models.py > > On Feb 26, 10:12 am, Vasile Ermicioi wrote: > > > please read the commen

[web2py] Re: extract_mysql_models.py

2011-02-27 Thread Anthony
It's in /web2py/scripts/ On Sunday, February 27, 2011 2:55:43 PM UTC-5, stargate wrote: > Where do I find this file? > > extract_mysql_models.py > > On Feb 26, 10:12 am, Vasile Ermicioi wrote: > > please read the comments from the script > > > > Under Windows you will probably need to add t

Re: [web2py] json/xml not working on GAE

2011-02-27 Thread Sebastian E. Ovide
yes, that is right...to see that I had to select severity "debug"... no errors are thrown... just an empty json/xml http://w2papp2.appspot.com/rest/default/restaurants (works) http://w2papp2.appspot.com/rest/default/restaurants.json (doen

Re: [web2py] json/xml not working on GAE

2011-02-27 Thread Jonathan Lundell
On Feb 27, 2011, at 12:59 PM, Sebastian E. Ovide wrote: > yes, that is right...to see that I had to select severity "debug"... > > no errors are thrown... just an empty json/xml > > http://w2papp2.appspot.com/rest/default/restaurants (works) > http://w2papp2.appspot.com/rest/default/restaurants.j

Re: [web2py] Re: Status of Python 2.4 support

2011-02-27 Thread David J
I have a side question. Why couldn't you choose another hosting company? Why do people insist on using hosts that are so outdated? It can't be financially motivated. It seems like plenty of options are available for just under $10. On Feb 27, 2011 2:09 PM, "Russ" wrote: > Very good to know. Thanks

Re: [web2py] Re: Status of Python 2.4 support

2011-02-27 Thread Plumo
sometimes I have to support whatever server the client uses

[web2py] Re: Python fourth on the list

2011-02-27 Thread Plumo
wow, more popular than PHP? I find that hard to believe.

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread mart
and its an app... ;) and i think renaming it on the fly will cause you to lose the security around it (will be exposed to all users, I think) On Feb 27, 2:22 pm, pbreit wrote: > Well, it also includes /state and /cache so I'd say leave it for now.

[web2py] selection by key

2011-02-27 Thread darkblue_b
Hi- maybe this is really easy and I havent found it yet.. I now have a table defined in db.py, like so db.define_table('ratings_view', Field('flat_key', type='integer'), Field('rating_value', type='double'), Field('category', type='text'), Field('credit', type='text'), Field('s

[web2py] Re: selection by key

2011-02-27 Thread Massimo Di Pierro
Here is a possible solution (typos aside): def index(): return dict(rows=db(db.ratings_view).select(db.ratings_view.affirm_pkey,distinct=True)) def callback(): return SQLTABLE(db(db.ratings_view.affirm_pkey==request.args(0)).select()) and in view/default/index.html() {{extend 'layout.ht

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread Anthony
appadmin isn't a separate app (like admin) -- it's a controller file (appadmin.py) and view file (appadmin.html) included in the welcome and admin apps. I'm not sure, but it looks like you might be able to rename it, though I think the links from admin to appadmin would no longer work, and appa

[web2py] Re: selection by key

2011-02-27 Thread Anthony
On Sunday, February 27, 2011 7:53:39 PM UTC-5, darkblue_b wrote: > > migrate=migrate) ##<- I dont know what this does yet -- 'migrate' tells web2py whether to run automatic migrations of the database table when your web2py model changes. See http://web2py.com/book/default/chapter/06#Mig

[web2py] Re: Python fourth on the list

2011-02-27 Thread blackthorne
that is programming language popularity not web programming language popularity On Feb 28, 12:28 am, Plumo wrote: > wow, more popular than PHP? I find that hard to believe.

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
On Feb 27, 5:41 pm, Massimo Di Pierro wrote: > Here is a possible solution (typos aside): > > def index(): >     return > dict(rows=db(db.ratings_view).select(db.ratings_view.affirm_pkey,distinct=T > rue)) > > def callback(): >     return > SQLTABLE(db(db.ratings_view.affirm_pkey==request.args(

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
well I guessed a little - and now something seems to work! (more testing now) {{=row.affirm_pkey}}{{pass}} -Brian On Feb 27, 6:06 pm, darkblue_b wrote: > On Feb 27, 5:41 pm, Massimo Di Pierro > wrote: > > > > > Here is a possible solution (typos aside): > > > def index(): > >     return >

[web2py] Re: selection by key

2011-02-27 Thread Massimo Di Pierro
My mistake: {{extend 'layout.html'}} {{for row in rows:}} {{=row.affirm_pkey}} {{pass}} On Feb 27, 8:21 pm, darkblue_b wrote: > well I guessed a little - and now something seems to work! > (more testing now) > > {{=row.affirm_pkey}}{{pass}} > >    -Brian > > On Feb 27, 6:06 pm, darkblue_b

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread mart
well, I have to check... Naturally (and there is always a chance - I'm actually left feeling surprised when I am not wrong), I could be completely missing the mark here. I do know, that a copy (with a new name) of appadmin is quite open to all users (because I did that once), but just thought i'd m

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread Massimo Di Pierro
Technically Anthony is right. appadmin is not app, it is a controller in each one of your apps. Historically appadmin was designed this way to overcome a problem I had experienced with Django (only one appadmin - which they call admin - per Django instance. This has changed since in Django too). a

[web2py] Re: Don't you think the "appadmin" thing can be better named as "dbadmin"?

2011-02-27 Thread Anthony
On Sunday, February 27, 2011 9:40:03 PM UTC-5, mart wrote: > > well, I have to check... Naturally (and there is always a chance - I'm > actually left feeling surprised when I am not wrong), I could be > completely missing the mark here. I do know, that a copy (with a new > name) of appadmin is

[web2py] Re: web2py database administration

2011-02-27 Thread Christopher Steel
Hi Stargate, I think what you want is called the DAL or Database Abstraction Layer. The DAL does all of this for you for all of the databases that Web2py support. You create your database schema in Web2py and the DAL sets up whatever database backend you are using. So for example you create this

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
On Feb 27, 6:29 pm, Massimo Di Pierro wrote: > My mistake: > > {{extend 'layout.html'}} > > {{for row in rows:}} >   {{=row.affirm_pkey}} > {{pass}} > > > > > sounds good.. {{pass}} seems to work inside or outside of but, Button? Dont I want a list / popup menu ? I am loading more data now

[web2py] Re: Opinions on deployment setup

2011-02-27 Thread Kimmo
Hey thanks! It worked. I used to have $anything earlier. Dunno why I changed it to any. Hmm. I guess I can do this kind of deployment if there's no one to tell me otherwise. This is good cause I don't want people going fiddling around with httpd.conf and restarting the server all the time, when th

Re: [web2py] Re: Opinions on deployment setup

2011-02-27 Thread Jonathan Lundell
On Feb 27, 2011, at 10:17 PM, Kimmo wrote: > > Hey thanks! It worked. I used to have $anything earlier. Dunno why I > changed it to any. It's not too well documented, but $anything translates to .*, and $any (or anything but $anything) translates to \w+. In particular, $any won't match a slash,

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
I see, it makes a button per ID works for now.. thx! -Brian