[web2py] Re: Looping in the browser?

2010-05-11 Thread cjrh
On May 12, 4:25 am, Miguel Lopes wrote: Alternatively, instead of this: >             result_list.append(a_str) > >    # Now you can return the list >    return result_list one could yield the values: yield(a_str) and then whatever other code uses function "check()" can still it

[web2py] Question about sequences

2010-05-11 Thread Sverre
In the database administration a query to select all is (id>0). But some databases like postgresql starting a sequence default by 0, not like sqlite with 1. So how can I avoid problems?

[web2py] Re: Using LOAD from a controller?

2010-05-11 Thread Iceberg
On a second look, your case seems having no need for LOAD. How about adjust your code like this? New todo On May12, 4:43am, Keith Edmunds wrote: > Sorry, Iceburg, I appreciate your attempt to help, but you've lost me > completely! Can you explain? > > Thanks

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Adi
On May 12, 4:25 am, b00m_chef wrote: > FYI: > > Fix your routes.py http://radbox.me/index.html = Invalid Controller. > Where did you get that link? http://radbox.me/index should work.

[web2py] Re: ORM-like DAL

2010-05-11 Thread vihang
Some of the apps I am working currently are much more easy to build if the models can be defined as a class with methods that act on them. On May 12, 5:51 am, Álvaro Justen wrote: > On Tue, May 11, 2010 at 21:38, Richard wrote: > > there was a discussion about this on the developers mailing lis

[web2py] Re: New to web app development -- is web2py a good choice

2010-05-11 Thread Richard
The book was a huge improvement but there is certainly more to be done. Unfortunately this kind of work is not fun so happens slowly. Would it be worth migrating useful content to the book (and slices) and close the legacy apps (AlterEgo, wiki)? Having a list of notable web2py driven sites is a g

[web2py] Re: User stack or queue

2010-05-11 Thread Richard
I recommend spending a day working through the book (http://web2py.com/ book). But if you really don't have the time try editing an existing app to do what you want. Or just pay someone on this mailing list to do it for you. On May 11, 4:43 am, pk wrote: > annotation: > the project time is very

[web2py] Re: please check the latest builds

2010-05-11 Thread mdipierro
Nothing specifically. Just make sure your apps do not break. Massimo On May 11, 9:27 pm, Álvaro Justen wrote: > On Tue, May 11, 2010 at 22:29, mdipierro wrote: > >http://web2py.com/examples/static/nightly/web2py_src.zip > >http://web2py.com/examples/static/nightly/web2py_win.zip > >http://web2p

Re: [web2py] please check the latest builds

2010-05-11 Thread Álvaro Justen
On Tue, May 11, 2010 at 22:29, mdipierro wrote: > http://web2py.com/examples/static/nightly/web2py_src.zip > http://web2py.com/examples/static/nightly/web2py_win.zip > http://web2py.com/examples/static/nightly/web2py_osx.zip Check for... ? -- Álvaro Justen - Turicas http://blog.justen.eng.br/

Re: [web2py] Looping in the browser?

2010-05-11 Thread Miguel Lopes
I suppose you want to return several positions that match (domain == session.target_domain) then you must not use return (as it escapes the loop and exits the function scope). You should collect all your matches in a list and the return the list in the end. Something like: def check(): result_l

[web2py] Looping in the browser?

2010-05-11 Thread Andrew Evans
Hello I have a problem. I have code written for web2py that has two functions, the problem is in the looping of the second function. it only executes the loop once. Is there anyway I can continue looping def check(): for target_keyword in session.keywords.split(','): gs = GoogleSearch(

[web2py] please check the latest builds

2010-05-11 Thread mdipierro
http://web2py.com/examples/static/nightly/web2py_src.zip http://web2py.com/examples/static/nightly/web2py_win.zip http://web2py.com/examples/static/nightly/web2py_osx.zip

[web2py] Re: jsonrpc call failure [FALSE ALARM]

2010-05-11 Thread mdipierro
:-) On May 11, 7:55 pm, Miguel Lopes wrote: > On Wed, May 12, 2010 at 1:48 AM, mdipierro wrote: > > Can you describe what happens in the uncessful test? Do you see a new > > ticket file being generate in the errors/ folder? What does it say? > >  Upps! Sorry false alarm. I was calling the remote

Re: [web2py] Re: jsonrpc call failure

2010-05-11 Thread Miguel Lopes
On Wed, May 12, 2010 at 1:48 AM, mdipierro wrote: > Can you describe what happens in the uncessful test? Do you see a new > ticket file being generate in the errors/ folder? What does it say? > > Upps! Sorry false alarm. I was calling the remote server with the port and this was causing the conn

Re: [web2py] Re: ORM-like DAL

2010-05-11 Thread Álvaro Justen
On Tue, May 11, 2010 at 21:38, Richard wrote: > there was a discussion about this on the developers mailing list last > week: > http://groups.google.com/group/web2py-developers/browse_thread/thread/778e4015b8fae372 Yes, started by me. > On May 7, 12:50 am, vihang wrote: >> Hello, >> >> A long t

[web2py] Re: jsonrpc call failure

2010-05-11 Thread mdipierro
Can you describe what happens in the uncessful test? Do you see a new ticket file being generate in the errors/ folder? What does it say? On May 11, 7:46 pm, Miguel Lopes wrote: > I've managed to successfully call on a jsonrpc service using localhost. > However I cannot replicate this with a rem

[web2py] jsonrpc call failure

2010-05-11 Thread Miguel Lopes
I've managed to successfully call on a jsonrpc service using localhost. However I cannot replicate this with a remote server. For the client I'm using jsonrpc at the Python prompt: >>> sv = ServiceProxy('http://127.0.0.1:8000/testapp/default/call/jsonrpc') >>> sv.getRequests() ['json test'] >>> T

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread Richard
> Does this apply to the dev environment as well? Just fire it up and run it > via localhost? Unfortunately no (for the Python API): http://code.google.com/appengine/docs/python/taskqueue/overview.html#Task_Queues_and_the_Development_Server """ When your app is running in the development server,

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread mdipierro
thanks for the clarification. On May 11, 7:43 pm, Richard wrote: > http://code.google.com/appengine/docs/python/taskqueue/overview.html#... > > """ > If the execution of a particular Task fails (by returning any HTTP > status code outside of the range 200-299), App Engine will attempt to > retry

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread Richard
http://code.google.com/appengine/docs/python/taskqueue/overview.html#Task_Execution """ If the execution of a particular Task fails (by returning any HTTP status code outside of the range 200-299), App Engine will attempt to retry until it succeeds. The system will back off gradually so as not to

[web2py] Re: Do you use web2py in your company?

2010-05-11 Thread mdipierro
Glad to hear about this. Can you tell us in which country and in which field your previous employer was operating? On May 11, 7:34 pm, drelyn86 wrote: > With my previous employer, I used web2py to build a few basic > applications. One was an application to input and track inventory > mistakes in

[web2py] Re: ORM-like DAL

2010-05-11 Thread Richard
there was a discussion about this on the developers mailing list last week: http://groups.google.com/group/web2py-developers/browse_thread/thread/778e4015b8fae372 On May 7, 12:50 am, vihang wrote: > Hello, > > A long time back, someone (mostly probably massimo) had written a few > lines of code

[web2py] Re: Do you use web2py in your company?

2010-05-11 Thread drelyn86
With my previous employer, I used web2py to build a few basic applications. One was an application to input and track inventory mistakes in warehouse operations. Another was a similar application to input and track the results of daily audits performed by each warehouse department. I also made an a

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread mdipierro
How safe is this approach? You process 100 records ate the time and call the function itself again until done. If this fails for any reason (like time constraints imposed by GAE or other GAE db access failure), this is not going to call itself again and it will never complete. Is it a possibility?

[web2py] Re: ORM-like DAL

2010-05-11 Thread Jon Romero
Check this out (needs a lot of work) http://bitbucket.org/jonromero/pyactiverecord/src/324551741662 On May 11, 8:10 am, vihang wrote: > I had seen the alterego posting. but that is more from using a Table > instance. I am looking at true ORM capability where I create a class > with methods which

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread b00m_chef
FYI: Fix your routes.py http://radbox.me/index.html = Invalid Controller. On May 11, 2:40 am, Adi wrote: > I saw some discussions flying around about web2py applications and > users out there (http://groups.google.com/group/web2py/browse_thread/ > thread/606b6e90744ab3b5) > and thought it wou

[web2py] Re: Letting one user access a particular page at a time (queuing)...

2010-05-11 Thread mdipierro
This is similar to yours but I am posting it anyway: db.define_table('robot', Field('user_id',db.auth_user), Field('time_request_control','datetime'), Field('time_start_control','datetime'), Field('time_stop_control','datetime'),

[web2py] Re: Routes.py on GAE

2010-05-11 Thread mdipierro
I just posted a new gluon.rewrite.py in trunk that should report more details about your error. Massimo On May 11, 7:53 am, Chris S wrote: > The routes.py file that I am attempting to use is: > --- > routes_in = (('/favicon.ico', '/init/static/favicon.ico'), >              ('/robots.txt

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread howesc
yes, it applies to the dev environment as well. i have not used bulk inserts yet, but they would have to run as a controller that is accessible via URL. (at least as far as i can tell). Even the bulkloader.py tool distributed with the SDK talks to a particular app URL and does everything in 30 s

[web2py] hello

2010-05-11 Thread ciprian
i used this script to install web2py: http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh so i have everything in www-data and everything works fine. now..what do i have to install to make php work on the same folder? or what do i have to config. i have a very old app writed on php so

[web2py] Re: Routes.py on GAE

2010-05-11 Thread mdipierro
Do you get this error only after deplyment or also locally with dev_appserver? On May 11, 7:53 am, Chris S wrote: > The routes.py file that I am attempting to use is: > --- > routes_in = (('/favicon.ico', '/init/static/favicon.ico'), >              ('/robots.txt', '/init/static/robots.txt

[web2py] Re: is row.update(name='someone') really works??

2010-05-11 Thread mdipierro
It is either db(query).update(...) or for row in db(query).select(): row.update_record(...) row.update(...) #WRONG BECUASE THIS IS PYTHON UPDATE METHOD On May 11, 3:03 pm, Phyo Arkar wrote: > I did used Mercurial version Tagged 1.77.3 from googlecode. That is Same > with release version 1.77

Re: [web2py] Adding a new domain

2010-05-11 Thread Alexandre Andrade
Please, don't read/use my previous email..., it is for another situation: using php and web2py at same server. Alexandre Andrade. 2010/5/11 Alexandre Andrade > I put a example vhost file at > http://alexandremas.blogspot.com/2010/02/como-configurar-web2py-e-php-no-mesmo.html > > (the origina

Re: [web2py] Adding a new domain

2010-05-11 Thread Alexandre Andrade
I put a example vhost file at http://alexandremas.blogspot.com/2010/02/como-configurar-web2py-e-php-no-mesmo.html (the original language is portuguese, but you can use the example) Alexandre Andrade 2010/5/11 Andrew Evans > Hello I am using web2py on my server and would like to set up a new

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > No. Maybe that's he problem. Tomorrow I'll re-test the thing with pywin32 installed. Miguel

Re: [web2py] Re: Using LOAD from a controller?

2010-05-11 Thread Keith Edmunds
Sorry, Iceburg, I appreciate your attempt to help, but you've lost me completely! Can you explain? Thanks

[web2py] Re: SSL Error on windows

2010-05-11 Thread mr.freeze
Do you have the win32 extension for Python installed? http://sourceforge.net/projects/pywin32/ On May 11, 3:33 pm, Miguel Lopes wrote: > On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote: > > This is concerns me more: > > > WARNING:root:WEB2PY CRON: Disabled because no file locking > > > what os

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote: > This is concerns me more: > > WARNING:root:WEB2PY CRON: Disabled because no file locking > > what os are you using? > > Windows XP I can check the flavour and service pack tomorrow.

[web2py] Re: Using LOAD from a controller?

2010-05-11 Thread Iceberg
def function_A(): return {'something':'blah blah'} def function_B(): return {another_thing} then in function_A.html you can use: {{=something}} {{=LOAD(URL(r=request,f='function_B'),ajax=True)}} On May12, 4:16am, Keith Edmunds wrote: > I was to display a form using Ajax in response to a

Re: [web2py] Using LOAD from a controller?

2010-05-11 Thread Keith Edmunds
On Tue, 11 May 2010 21:16:45 +0100, k...@midnighthax.com said: > return = LOAD('todo','todo_form',ajax=True) Typo in my mail: that is actually return LOAD('todo','todo_form',ajax=True)

[web2py] Using LOAD from a controller?

2010-05-11 Thread Keith Edmunds
I was to display a form using Ajax in response to a click on a link on the page. I have tried putting this in the view: New todo with this in the controller: def new(): return = LOAD('todo','todo_form',ajax=True) def todo_form(): form = SQLFORM(db.tasks,fields=['priority','subject','d

[web2py] Re: Display Sum of values

2010-05-11 Thread greenpoise
This works. I need some guidance as to where to look because I am going to be dealing with more calculations that includes multiplications. Thanks dan On May 11, 2:34 pm, mdipierro wrote: > I personally do not. The university I work for (DePaul Universty) > offers this certificate > program:

Re: [web2py] is row.update(name='someone') really works??

2010-05-11 Thread Phyo Arkar
I did used Mercurial version Tagged 1.77.3 from googlecode. That is Same with release version 1.77.3 right? On Sat, May 8, 2010 at 10:10 PM, Thadeus Burgess wrote: > Looks like you are not running the latest version of web2py . > > -- > Thadeus > > > > > > On Sat, May 8, 2010 at 4:34 PM, Eldr3D

Re: [web2py] is row.update(name='someone') really works??

2010-05-11 Thread Phyo Arkar
Yes i did use that way: rows=db(db.cdsdata.id>0).select(db.cdsdata.id, db.cdsdata.extracted) But why update_record giving Key error (That method is not found).. On Sat, May 8, 2010 at 11:46 PM, Vasile Ermicioi wrote: > web2py is always backward compatible, you can use either row.update or > r

Re: [web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Thadeus Burgess
This is great! You guys did such a nice job, many kudos! -- Thadeus On Tue, May 11, 2010 at 1:55 PM, b00m_chef wrote: > Great job!  I am happy to see web2py apps that don't just use the > default admin interface design, and actually do their own. > > > > On May 11, 2:40 am, Adi wrote: >> I

[web2py] Letting one user access a particular page at a time (queuing)...

2010-05-11 Thread Jason Brower
Peter and I are trying to implement a queuing feature in a webpage. Basically if the user is logged in, he can wait in line for getting to run a robot from a particular page. I gave it my best shot and couldn't figure it out. We need it to be able to have one person access a page at a time and the

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread b00m_chef
Great job! I am happy to see web2py apps that don't just use the default admin interface design, and actually do their own. On May 11, 2:40 am, Adi wrote: > I saw some discussions flying around about web2py applications and > users out there (http://groups.google.com/group/web2py/browse_thread

[web2py] Re: SSL Error on windows

2010-05-11 Thread mdipierro
This is concerns me more: WARNING:root:WEB2PY CRON: Disabled because no file locking what os are you using? On May 11, 1:28 pm, Miguel Lopes wrote: > I followed thewww.web2py.com/AlterEgo/default/show/140in order to generate > a self-certified ssl key using OpenSSL for > windows(http://www.slp

[web2py] Re: JqGrid Plugin

2010-05-11 Thread mdipierro
I think you should do this... in controllers/plugin_jqgrid.py function data() contains def f(value,fieldname): r = table[fieldname].represent if r: return r(value) return value replace it with from gluon.html import xmlescape def f(value,fieldname): r

[web2py] Re: JqGrid Plugin

2010-05-11 Thread flyboy
Hi - this sounds like just what I'm lookiing for. Any idea when you hope to have it ready Andrea? Thanks for your efforts - this looks a really cool plugin. On Mar 30, 2:33 pm, mdipierro wrote: > For strings > > import cgi > cgi.escape(string) > > On Mar 30, 1:40 am, parroit wrote: > > > Intere

Re: [web2py] Review my web2py app: Radbox.me

2010-05-11 Thread Miguel Lopes
Very cool. Congratulations, Miguel

[web2py] Re: Adding a new domain

2010-05-11 Thread mdipierro
You can used routes or virtual hosts in apache to map different domains to different apps under the same web2py instance. On May 11, 1:42 pm, Andrew Evans wrote: > Hello I am using web2py on my server and would like to set up a new > domain to add to it > > right now it sits athttp://serv.cyber-s

[web2py] Re: Do you use web2py in your company?

2010-05-11 Thread mdipierro
It does not hurt to post it and we can decide if we want to use for a signature page. Can you say the name of the company? On May 11, 1:36 pm, Miguel Lopes wrote: > On Mon, May 10, 2010 at 10:09 PM, mdipierro wrote: > > Anthony made some good points: > >http://groups.google.com/group/web2py/msg/

[web2py] Adding a new domain

2010-05-11 Thread Andrew Evans
Hello I am using web2py on my server and would like to set up a new domain to add to it right now it sits at http://serv.cyber-samurai.de I am running apache + wsgi I have my additional domain pointed to the server but I am unsure how to configure web2py how to use it. Do I create a new applicat

Re: [web2py] Do you use web2py in your company?

2010-05-11 Thread Miguel Lopes
On Mon, May 10, 2010 at 10:09 PM, mdipierro wrote: > Anthony made some good points: > http://groups.google.com/group/web2py/msg/a40b27807edc8603 > > For now let's concentrate on one of them for now. If you have > developed software in web2py that you use internally in your company > but you canno

[web2py] Re: Display Sum of values

2010-05-11 Thread mdipierro
I personally do not. The university I work for (DePaul Universty) offers this certificate program: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx (as long as other programs on Java and Rails and more). I teach it. I may teach it in Fall but I am not sure yet. Massimo

[web2py] SSL Error on windows

2010-05-11 Thread Miguel Lopes
I followed the www.web2py.com/AlterEgo/default/show/140 in order to generate a self-certified ssl key using OpenSSL for windows( http://www.slproweb.com/products/Win32OpenSSL.html) The certificates are in the web2py folder Running web2py I get this error: C:\Programas\web2py>c:\python26\python w

[web2py] Re: Display Sum of values

2010-05-11 Thread greenpoise
will try. Thanks. ** Dont know if this is the appropriate place to ask for this but looking around the group I saw a post about a class certificate offering. Do you have an online class by any chance? On May 11, 2:16 pm, mdipierro wrote: > First I would rewrite it as > > def view_totals(): >  

[web2py] Re: Catch and replace vars

2010-05-11 Thread Iceberg
Thanks for the tip, but there seems some more subtle difference between form.accepts(..., onvalidation=callback) VS Field('bar', compute=lambda r:r['foo']). The latter will cause that field no longer showts up in SQLFORM, because its default self.fields excludes all compute field. Is there any rea

[web2py] kubuntu web2py

2010-05-11 Thread mdipierro
https://wiki.kubuntu.org/Web2Py

[web2py] Re: Delete record without triggering validators?

2010-05-11 Thread mdipierro
Good point! Will do. Massimo On May 11, 1:08 pm, Iceberg wrote: > Hi Massimo, > > Right now validators are triggered even when a record is successfully > being deleted. This can be annoying in case I am deleting old records > as below: > > db.define_table('my_table', >     Field('today', 'date',

[web2py] Re: Display Sum of values

2010-05-11 Thread mdipierro
First I would rewrite it as def view_totals(): rows = db().select(db.tableorder.ALL, db.tableorder.totalsale.sum(),groupby=db.tableorder.orderdate) for row in rows: print row.tableorder.ordernumber,row[db.tableorder.totalsale.sum()] return dict(rows=rows) {{for row in rows:}} {{= row

[web2py] Delete record without triggering validators?

2010-05-11 Thread Iceberg
Hi Massimo, Right now validators are triggered even when a record is successfully being deleted. This can be annoying in case I am deleting old records as below: db.define_table('my_table', Field('today', 'date', requires=IS_DATE_IN_RANGE(minimum=request.now.date()), default =

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Mengu
This is surely a great app. Congratulations. I wish you success like a sea.

[web2py] Display Sum of values

2010-05-11 Thread greenpoise
I have this: def view_totals(): rows = db().select(db.tableorder.ALL, 'sum(tableorder.totalsale)', groupby=db.tableorder.orderdate) for row in rows: print row.tableorder.ordernumber, row._extra['sum(tableorder.totalsale)'] return dict() What would be my view to present my sum?

[web2py] Re: Catch and replace vars

2010-05-11 Thread mdipierro
Yes but Field('bar', compute=lambda r:r['foo']) not Field('bar', compute=lambda r:r.foo) On May 11, 11:28 am, Iceberg wrote: > I must miss the "compute" feature. Now I am picking it up. Would you > please confirm whether my understanding is correct? > > The code: >         Field('bar', com

[web2py] Re: Catch and replace vars

2010-05-11 Thread Iceberg
I must miss the "compute" feature. Now I am picking it up. Would you please confirm whether my understanding is correct? The code: Field('bar', compute=lambda r:r.foo) is an easier equivalent for: def callback(form): form.vars.bar = form.vars.foo form.accepts(..., onvalidat

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Adi
I sure will... and I read your thread again - I started playing with web2py since the very early releases and coming from a j2ee background, the reduction in effort for creating a good application is amazing. :) Having said that, there are hundreds of web frameworks out there, and web2py is still

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread mdipierro
very nice indeed! On May 11, 4:40 am, Adi wrote: > I saw some discussions flying around about web2py applications and > users out there (http://groups.google.com/group/web2py/browse_thread/ > thread/606b6e90744ab3b5) > and thought it would be a good time to talk about my application. > > Radbox (

[web2py] Re: left outer join problem on db2

2010-05-11 Thread mdipierro
Thank you. will look into it. Massimo On May 11, 6:31 am, Alexey Nezhdanov wrote: > Hi. > I've come across another subtle problem with web2py's DAL running over IBM > DB2 database. > DB2 requires the left table to immidiatedly preceed the 'left outer join' > keyword. > IOW: > select * from a, b

[web2py] Re: Feature Request: Text Based Log Viewer

2010-05-11 Thread mdipierro
They are just python pickles. On May 11, 5:35 am, Jason Brower wrote: > I would like to not have them available online at all.  I want to be > able to see the logs from web2py's error folder in a nice way.  Right > now I get this...(attatched).  They look like pickles to me. I want to > be able t

[web2py] Re: Catch and replace vars

2010-05-11 Thread mdipierro
I think you look for something like db.table.field_2.compute=lambda r: request.vars.field_1 On May 11, 4:01 am, AsmanCom wrote: > That would be a great solution, but i´ve to do this in model because i > am using the awesome JQGrid plugin (app.ebansoftware.net/ > editable_jqgrid/). > The dilemma

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread mr.freeze
Excellent! Sign-up was smooth, everything worked well and the site looks great. On May 11, 4:40 am, Adi wrote: > I saw some discussions flying around about web2py applications and > users out there (http://groups.google.com/group/web2py/browse_thread/ > thread/606b6e90744ab3b5) > and thought it w

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Anthony
Now that's what I'm talking about (http://groups.google.com/group/ web2py/browse_frm/thread/9f653dcf0493593d)! Very nice work. If you're willing, maybe mention web2py on the "Credits" page. On May 11, 5:40 am, Adi wrote: > I saw some discussions flying around about web2py applications and > use

[web2py] Re: Calculation error

2010-05-11 Thread greenpoise
I had round after float. Thanks! On May 10, 11:42 pm, mdipierro wrote: > it is a good idea but somebody has to implement that. It would be in > the new DAL, not current DAL, and it is not clear it is supported by > all backends. Were you doing to provide a list of databases that > support the dou

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread greenpoise
Great stuff. On May 11, 8:25 am, cjrh wrote: > On May 11, 11:40 am, Adi wrote: > > > Radbox (http://radbox.me) is a video bookmarking service. Its still a > > very young product, but I believe its pretty good at what it does. > > Cool!

Re: [web2py] performance issue- multiple db connection

2010-05-11 Thread Timothy Farrell
When you create your model, there is a "pools" parameter that defaults to 10. This means that the one web2py process will use a pool of 10 connections on that one database. It leaves the connections open even after the request is served so that they can serve the next connection without havin

[web2py] Re: Routes.py on GAE

2010-05-11 Thread Chris S
The routes.py file that I am attempting to use is: --- routes_in = (('/favicon.ico', '/init/static/favicon.ico'), ('/robots.txt', '/init/static/robots.txt'), ) routes_out = () --- I believe that is a direct copy and paste of the example from the online book. On May 10

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread cjrh
On May 11, 11:40 am, Adi wrote: > Radbox (http://radbox.me) is a video bookmarking service. Its still a > very young product, but I believe its pretty good at what it does. Cool!

[web2py] bug in attributes check in _select

2010-05-11 Thread Alexey Nezhdanov
Hello. There is a bug in these lines: if [key for key in attributes if not key in valid_attributes]: raise SyntaxError, 'invalid select attribute: %s' % key At the moment of raise the 'key' variable holds last ispected value which is not neccessarily incorrect. Th

[web2py] left outer join problem on db2

2010-05-11 Thread Alexey Nezhdanov
Hi. I've come across another subtle problem with web2py's DAL running over IBM DB2 database. DB2 requires the left table to immidiatedly preceed the 'left outer join' keyword. IOW: select * from a, b left outer join c on c.a_id=a.id is incorrect. Correct form is: select * from b, a left outer join

Re: [web2py] Re: Feature Request: Text Based Log Viewer

2010-05-11 Thread Jason Brower
I would like to not have them available online at all. I want to be able to see the logs from web2py's error folder in a nice way. Right now I get this...(attatched). They look like pickles to me. I want to be able to read them with a text based system. (Like when I ssh into my server to see the

[web2py] Re: performance issue- multiple db connection

2010-05-11 Thread cjrh
On May 11, 10:58 am, vihang wrote: > I am trying to understand the possible performance setback if I try to > open multiple db connections. Is there some mechanism in web2py which > would optimizes the number of open connections to the database? What do your measurements say so far?

[web2py] Re: Enhancement to gluon.tools.Mail

2010-05-11 Thread Iceberg
It works! :-) On May11, 4:58am, mdipierro wrote: > In trunk, thanks. Please check it. > > On May 10, 3:23 am, Iceberg wrote: > > > > > Hi pals, > > > gluon.tools.Mail is handy but it doesn't not contain the Date header > > of a mail. Some email system tend to suspect such email as spam > > becau

[web2py] Re: Do you use web2py in your company?

2010-05-11 Thread Adi
My post here: http://groups.google.com/group/web2py/browse_thread/thread/ded78546909b4f32 On May 11, 12:13 pm, cjrh wrote: > On May 10, 11:09 pm, mdipierro wrote: > > > For now let's concentrate on one of them for now. If you have > > developed software in web2py that you use internally in your

[web2py] Review my web2py app: Radbox.me

2010-05-11 Thread Adi
I saw some discussions flying around about web2py applications and users out there (http://groups.google.com/group/web2py/browse_thread/ thread/606b6e90744ab3b5) and thought it would be a good time to talk about my application. Radbox (http://radbox.me) is a video bookmarking service. Its still a

[web2py] Re: Catch and replace vars

2010-05-11 Thread AsmanCom
That would be a great solution, but i´ve to do this in model because i am using the awesome JQGrid plugin (app.ebansoftware.net/ editable_jqgrid/). The dilemma is: - I need to do this in the model - I can`t get the vars from table.field.default (self-evident) - I need a working IS_IN_DB(db,'table.i

[web2py] performance issue- multiple db connection

2010-05-11 Thread vihang
Hello, I am trying to understand the possible performance setback if I try to open multiple db connections. Is there some mechanism in web2py which would optimizes the number of open connections to the database? Vihang

[web2py] Re: Do you use web2py in your company?

2010-05-11 Thread cjrh
On May 10, 11:09 pm, mdipierro wrote: > For now let's concentrate on one of them for now. If you have > developed software in web2py that you use internally in your company > but you cannot release it open source, would you let us know? Can you > tell us what is the software for? Could you provide