[web2py] Re: breakpoints + Eclipse + Web2Py

2012-03-24 Thread szimszon
If you use pydev then put an import pydevd;pydevd.settrace() where the breakpoint should go. 2012. március 23., péntek 23:44:17 UTC+1 időpontban dlypka a következőt írta: > > I believe you must delete all .pyc files before running it with > breakpoints. > > On Mar 23, 1:18 pm, web2py_tn wrot

Re: [web2py] Re: DAL and schema

2012-03-24 Thread Adesanto Asman
I don't know if this going to help. But i've made an extend of DAL, OracleAdapter and Table so they could work with schema/database descriptor. https://github.com/adesst/MyDAL So far what i did is to meet my need, and yes there are lots of work to make my extension work well with inner join and

[web2py] Is it a way to query data from GAE and then save to the upload feild as a sqlite databasefile file

2012-03-24 Thread Right Family
Dear everyone I have to query data from my datastore (GAE) and then save it to another table in the same datastore in the upload field in as a sqlite database file for download. Do anyone has an ideas, Thanks in advance. Ariya

Re: [web2py] Re: SQLForm.grid : is it possible to delete multiple rows at once ?

2012-03-24 Thread Anthony
> > You can use selectable, for example: > > selectable = lambda ids: delete(ids) > form=SQLFORM.grid(query,​selectable=selectable) > > def delete(ids): > to_delete=db(db.tabla.id.​belongs(ids)) > to_delete.delete() > Nice. Forgot about that.

[web2py] display fill text in a {{ row }} not the trucate one

2012-03-24 Thread bussiere adrien
I have this when i put a {{row}} in a template (liste_invitations) : {{extend 'layout.html'}} Records {{=rows}} it gives me : Invitation.id Invitation.Code Invitation.Usage Invitation.Donneur Invitation.Receveur Invitation.Email Invitation.Used 1 Toto-5542 None None None None None 2 USER_INTERFA

[web2py] Re: bug in auth -- reset_password_onaccept doesn't exist ...

2012-03-24 Thread weheh
Thanks, Massimo. I'll check it out shortly. On Mar 24, 7:54 am, Massimo Di Pierro wrote: > Added to trunk. > > > > > > > > On Friday, 23 March 2012 09:36:11 UTC-5, Anthony wrote: > > > Congratulations, it appears you are the first person to need a reset > > password callback. :-) > > > On Friday,

[web2py] Re: display fill text in a {{ row }} not the trucate one

2012-03-24 Thread Anthony
When a Rows object is serialized in a view, it is passed to SQLTABLE, which has a "truncate" argument that defaults to 16. Instead, you can call SQLTABLE explicitly: {{=SQLTABLE(rows, truncate=None)}} Anthony On Saturday, March 24, 2012 9:41:51 AM UTC-4, bussiere adrien wrote: > > I have this

[web2py] Re: display fill text in a {{ row }} not the trucate one

2012-03-24 Thread bussiere adrien
Thanks again regards Bussiere Le samedi 24 mars 2012 15:11:50 UTC+1, Anthony a écrit : > > When a Rows object is serialized in a view, it is passed to SQLTABLE, > which has a "truncate" argument that defaults to 16. Instead, you can call > SQLTABLE explicitly: > > {{=SQLTABLE(rows, truncate=Non

[web2py] 'tuple' object has no attribute 'items'

2012-03-24 Thread bussiere adrien
I don't understand here is my db : from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db, hmac_key=Auth.get_or_create_key()) crud, service, plugins = Crud(db), Service(), PluginManager() db.define_table( auth.settings.table_user_name, Field('Surnom', length=128, defa

[web2py] simple recipe to create a user and loggin him ?

2012-03-24 Thread bussiere adrien
I need a simple recipe juste to create a user in command line / program to create him and log him as : like : user = db.auth_user.insert(name="johndoe",password="toto") auth.user = user auth.environment.session.auth = Storage(user=user, last_visit=request.now,

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread monotasker
I realize that it seems like I'm mixing apples and oranges here. But bear with me a minute. What I'm thinking about is not web-served client-only apps but locally installed apps (whether desktop or mobile) that use html+css+js as their front end. My point is that MS and Mozilla (and others) are

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread monotasker
I think part of your misunderstanding of me is that I'm not talking about html5 webapps. I'm talking about the migration of an html5/css/js environment to desktops and mobile phones. There's no reason not to also install python there, so that a python framework can drive the production of the h

[web2py] Re: bug in auth -- reset_password_onaccept doesn't exist ...

2012-03-24 Thread weheh
How soon will this get into the nightly build? I tried the latest nightly build and it doesn't seem to have any pertinent change in behavior. On Mar 24, 7:54 am, Massimo Di Pierro wrote: > Added to trunk. > > > > > > > > On Friday, 23 March 2012 09:36:11 UTC-5, Anthony wrote: > > > Congratulation

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread monotasker
As I suggested to Derek, I think I've caused some confusion by not being clearer in my original question. I'm not thinking about client-only web-apps. I'm thinking about locally installed apps that use an html5 front-end. This is what win8 is promoting, and that's also the thrust of Mozilla's a

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread pbreit
I'm not sure if this is what you meant but I've wondered if Web2py would make a good framework for being able to distribute a self-contained app to be run locally. For example, I've seen some point-of-sale systems that package up a Ruby + Postgres runtime designed to be run locally (I believe S

[web2py] Re: Errors creating/reading tickets

2012-03-24 Thread Brian M
FYI Massimo, I sent you some via email on the 14th. On Sunday, March 11, 2012 7:41:14 PM UTC-5, Massimo Di Pierro wrote: > > Please email me one of the tickets that causes the problem and one of the > tickets generated by admin as consequence. > > On Saturday, 10 March 2012 20:48:04 UTC-6, Brian

[web2py] Ticket nIOError: request data read error (Apache + mod_wsgi)

2012-03-24 Thread Brian M
I'm having problems with my app apparently throwing errors and eventually Apache itself becoming unresponsive. I'm running on Windows with Python 2.6. The (hopefully relevant) part of the error ticket is below (I usually can't view them through the admin app, but maybe that's a separate issue

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread monotasker
Yes, I think web2py can already produce a self-contained local app running from the rocket server. At least I think there was a recipe for that in the last edition of the book (I haven't looked in a while). The issue of web2py being 'thick' for the purpose is very much what I was wondering abou

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread Anthony
> > As I suggested to Derek, I think I've caused some confusion by not being > clearer in my original question. I'm not thinking about client-only > web-apps. I'm thinking about locally installed apps that use an html5 > front-end. This is what win8 is promoting, and that's also the thrust of

[web2py] Re: can web2py have a place in an 'html5 app' environment?

2012-03-24 Thread monotasker
OK. That makes sense. A bit frustrating, though, that the Mozilla apps are limited to js. I guess that's why I keep developing for the web--it's still the only truly cross-platform environment with any kind of muscle in the back end. On Saturday, March 24, 2012 3:49:36 PM UTC-4, Anthony wrote:

[web2py] Bug? The DAL gives different SQL when query is provided as string.

2012-03-24 Thread Limedrop
I've copied this from the bottom of another thread. The DAL gives different SQL when a query is provided in string format. Is this a bug, or should I not expect this to work? See the example below, the first SQL works, the second SQL raises an error. >>>from gluon.dal import Query >>>query =

Re: [web2py] custom css

2012-03-24 Thread frasse
I need to reinstall web2py. It works now . /F Den söndagen den 11:e mars 2012 kl. 12:53:52 UTC+1 skrev Martin.Mulone: > > What is not working?, you change views/layout.html? > > 2012/3/11 frasse > >> Hi >> >> I like to use my custom css and add it to my application base.css mess >> my applicatio

[web2py] Re: Markmin - could we use instead of ?

2012-03-24 Thread Massimo Di Pierro
Fixed in trunk

[web2py] Re: Markmin - could we use instead of ?

2012-03-24 Thread Massimo Di Pierro
Fixed in trunk

[web2py] Re: DAL / connection pool leaking objects?

2012-03-24 Thread Massimo Di Pierro
On thr road. Will look at this asap

Re: [web2py] Re: DAL and schema

2012-03-24 Thread Massimo Di Pierro
Please open an issue and ask to be mrged to trunk

[web2py] web2py 2.0 and github API proposal

2012-03-24 Thread Leonardo Cezar
I would like to integrate the web2py ticketing system with github issues API[1]. I believe it would be a nice feature for web2py 2.0. If there is interest I can write a POC of what would such integration and of course give a better explanation around that. Thoughts? 1) http://develop.github.com/

[web2py] Re: simple recipe to create a user and loggin him ?

2012-03-24 Thread bussiere adrien
password="toto" my_crypt = CRYPT(key=auth.settings.hmac_key) crypt_pass = my_crypt(password)[0] user = db.auth_user.insert( Surnom="Surnom", email="email", password=crypt_pass, ) db.commit() session.auth = Storage(user=user,expirati

[web2py] web2py 2.0 and github API proposal

2012-03-24 Thread Massimo Di Pierro
Please open a ticket

[web2py] web2py integration with python applications

2012-03-24 Thread Sam
I am fairly new to Linux, Python and web2py so I have given myself a project to help me learn - I'm aware its fairly ambitious as a first project! I was involved in the design of a windows based system a while ago, and I would like to try and emulate its functionality on Linux. The original syst

[web2py] Re: Using Blobstore API

2012-03-24 Thread Sushant Taneja
Hi, Thanks for the help. I had too much to work on, so I left the problem for the time. Now I am back working on blobstore module. I was looking at the code in web2py slices and in other threads in the group and got confused again. I think the problem is too many versions/parts of the code here

Re: [web2py] web2py integration with python applications

2012-03-24 Thread Bruno Rocha
Normally the best option for your case is XMLRPC. Take a look at "services" chapter on web2py book. http://zerp.ly/rochacbruno Em 25/03/2012 02:11, "Sam" escreveu: > > I am fairly new to Linux, Python and web2py so I have given myself a > project to help me learn - I'm aware its fairly ambitious