[web2py] Re: From ul to bootstrap row

2012-06-03 Thread Annet
Hi Anthony, Thanks for your reply, exactly what I'd hoped for. I was left with one small problem, in case of an odd number or rows in socialmedia I was missing a div class=span6/div and closing /div !-- /row -- I solved it by adding this: After this: {{for i, r in enumerate(relatednames):}}

Re: [web2py] Twitter OAuth lib

2012-06-03 Thread Michele Comitini
Twitter oauth is supported by web2py natively. mic Il giorno 03/giu/2012 02:37, Udi Milo udim...@gmail.com ha scritto: I want to allow my users to connect a Twitter account to their account. Which python lib do you recommend using? Twython uses requests which I'm having difficulty running on

[web2py] Re: appadmin in Romanian (for Massimo)

2012-06-03 Thread CtrlSoft
salut Ioane! )

[web2py] Dynamic model creation

2012-06-03 Thread Christian
Hello group, I found a backend service, mostly for mobile apps, called parse.com. Looking at their REST documentation (https://parse.com/docs/rest), it looks like one can e.g. dynamically generate different kind of objects, which get persistet (see creating objects in the docs to see what I

[web2py] Re: appadmin in Romanian (for Massimo)

2012-06-03 Thread rif
Thank you very much, Ionel! -rif sâmbătă, 2 iunie 2012, 18:30:30 UTC+3, ionel a scris: Hello Massimo, This is the language file for appadmin in Romanian. Thank you, i.a.

[web2py] Re: sqlform.grid html text

2012-06-03 Thread CtrlSoft
thanks! On Tuesday, May 29, 2012 1:14:54 AM UTC+3, villas wrote: You could try to use .represent. I mean something a bit like this... db.yourtable.yourfield.represent = lambda yourfield,row: XML(yourfield) query = db grid = SQLFORM.grid(query.) return dict(grid=grid) Hope it

[web2py] Re: Trouble migrating databases

2012-06-03 Thread david.waldrop
More headaches. I gave up on trying to migrate because I do not know what is going on. I suspect the DAL table definitions, the actual database tables, and the mysterious *.table files are out of sync in some weird way. If anyone has any pointers on this I think I will have to figure it out

[web2py] Re: SQLFORM list with indirect labels

2012-06-03 Thread Martin Barnard
You know, this should be in the book. Herehttp://web2py.com/books/default/chapter/29/6#Record-representationon the section regarding record representation would be a good point. Martin On Saturday, 2 June 2012 21:14:56 UTC+3, Anthony wrote: db.define_table('customers_job',

[web2py] Re: Trouble migrating databases

2012-06-03 Thread david.waldrop
Some minor breakthru. I have fixed most (that I know of) of the migration errors - Manually. I was successful at using the DAL option fake_migrate_all = True and migrate_enabled = True which created some of the *.Table files - (but not all, also this did not seem to do anything to help except

[web2py] Non Janrain authentication docs are out-of-date

2012-06-03 Thread Alec Taylor
Reading through the authentication docs because I want Facebook and Twitter auth for my web2py app. Unfortunately the Facebook auth example no longer works, since about 6 months ago Facebook stopped maintaining an SDK for Python. Looks like it's being maintained here now:

Re: [web2py] Re: Trouble migrating databases

2012-06-03 Thread Ovidio Marinho
I also tried to migrate sqlite to postgres with the migration tools and fails. Double the fields in comparison with the sqlite postgres, and the creation of random fields were needed to redo the hand and imports .csv that were occurring right in sqlite does not accept headers in postgres, even

[web2py] Re: Trouble migrating databases

2012-06-03 Thread Massimo Di Pierro
Hello David, glad to know this was resolved. I was looking into it on my side and I do not know what may have caused it. My guess is that you had migrations off, you upgraded and auth needed to add some fields but migrations where off. What happened after that I do not know. About

[web2py] smartgrid and unsupported query error

2012-06-03 Thread weheh
I'm running SQLFORM.smartgrid with a left= join as follows: grid = SQLFORM.smartgrid( db.url_queue, constraints=dict(url_queue=query), left=db.brand.on( (auth.accessible_query('read', db.brand, auth.user_id))

[web2py] Re: smartgrid and unsupported query error

2012-06-03 Thread Massimo Di Pierro
Grid can do joins. Smartgrids cannot. The latter is smart in the sense that it displays only one table at the time but knows how to link other tables automatically. In principle it should be possible to make left joins work. Please open a suggestion for improvement with an example on google

RE: [web2py] Re: Trouble migrating databases

2012-06-03 Thread David Waldrop
Massimo, I am basically using the examples right form the book. I am deleting the local SQLlite database and the tables (now that I have a handle on the migration stuff) and would like to copy the current postgress production database to the local sqlite version. I tried at 1st with meeting

[web2py] Re: smartgrid and unsupported query error

2012-06-03 Thread weheh
Hmm, from researching the forum on the topic and reading the doc I could have sworn that smartgrid supported left. In fact, I believe in my testing I have seen it respond appropriately to the left argument. Nevertheless, I changed my code back to grid (I had started out with grid and moved to

Re: [web2py] Re: return from model

2012-06-03 Thread weheh
How about this: can I raise HTTP 200 from a model, and supply a simple string response? I do this in one of my web2py apps and it works fine.

[web2py] Django CRM + Commerce

2012-06-03 Thread pbreit
Good model. Mezzanine + Cartridge: https://groups.google.com/forum/?fromgroups#!topic/django-users/5_VcKbID514

[web2py] Re: Dynamic model creation

2012-06-03 Thread pbreit
My guess is it's NoSQL, probably Mongo which seems to be the preferred DB behind a lot of these real-time JavaScript frameworks. On Sunday, June 3, 2012 2:35:34 AM UTC-7, Christian wrote: Hello group, I found a backend service, mostly for mobile apps, called parse.com. Looking at their

Re: [web2py] Re: Trouble migrating databases

2012-06-03 Thread Ovidio Marinho
I'm following the discussion and would like it because it really worked for me is the third time I have to migrate sqlite to postgres and options listed do not work, at least in large applications in a small application that can work, but when you have many relationships and diversity of types of

[web2py] Authentication failed ajax call

2012-06-03 Thread Paolo
Hi all, I've just figured out that on_failed_authentication works only when requests are not ajax calls. It would be nice to have a custom method even if request.ajax is True, what about to add a new method (i.e., on_failed_authentication_ajax) to auth settings? Otherwise how I can redirect to

[web2py] Re: smartgrid and unsupported query error

2012-06-03 Thread Massimo Di Pierro
Then perhaps I am wrong. Still open a ticket about this. I will debug it asap but I do not want to forget about this. On Sunday, 3 June 2012 11:56:19 UTC-5, weheh wrote: Hmm, from researching the forum on the topic and reading the doc I could have sworn that smartgrid supported left. In

Re: [web2py] Re: Trouble migrating databases

2012-06-03 Thread Massimo Di Pierro
Can you privately email me the model and the data you are trying import? I guess some recent patch must have broken the import. On Sunday, 3 June 2012 11:42:56 UTC-5, david.waldrop wrote: Massimo, I am basically using the examples right form the book. I am deleting the local SQLlite

[web2py] Re: Authentication failed ajax call

2012-06-03 Thread Massimo Di Pierro
Good point. This is a complicated issue because it depends on the client-side app details. Anyway, please open a ticket about this. On Sunday, 3 June 2012 15:30:05 UTC-5, Gabriella Canavesi wrote: Hi all, I've just figured out that on_failed_authentication works only when requests are not

Re: [web2py] Re: Trouble migrating databases

2012-06-03 Thread Ovidio Marinho
Perhaps this can explain something, I have it on my definition:    db.define_table('t_indicadores_estado', Field('f_ano', 'integer',label=T('Ano')), Field('f_taxa', 'integer', label=T('Taxa')), Field('f_numero', 'integer', label=T('Numero')), Field('f_nome',

Re: [web2py] Re: Trouble migrating databases

2012-06-03 Thread Ovidio Marinho
I have many tables, but I will send one as this happening to all. db.define_table('t_macro', Field('f_codigo', 'integer', label=T('Codigo')), auth.signature, format='%(f_codigo)s', ) db.define_table('t_indicadores_macro',

[web2py] w2p_tvseries: a new web2py app

2012-06-03 Thread Niphlod
hey, I finally managed to push my app to github, with some sweat involved I haven't packaged an app and released to the public before, let's hope nobody has problems installing it :P Let's cut to the chase, w2p_tvseries, as the name may suggest, is an app to organize tv shows on the disk. It

[web2py] Re: w2p_tvseries: a new web2py app

2012-06-03 Thread Niphlod
yes, you're right, where is the github url ?? https://github.com/niphlod/w2p_tvseries

Re: [web2py] failures

2012-06-03 Thread Ezugworie Ikechukwu
I just love the attitude (web2pytitude) with which you guys respond to issues. Its very encouraging and reassuring. On Sat, Jun 2, 2012 at 8:38 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Thank you Ricardo. I really need help with time. Do you need my help to create the mirrors?

Re: [web2py] Re: w2p_tvseries: a new web2py app

2012-06-03 Thread Ovidio Marinho
Very Well, congratulations!        Ovidio Marinho Falcao Neto                 Web Developer              ovidio...@gmail.com           ovidiomari...@itjp.net.br                  ITJP - itjp.net.br                83   8826 9088 - Oi                83   9334 0266 - Claro                        

[web2py] Re: w2p_tvseries: a new web2py app

2012-06-03 Thread Massimo Di Pierro
No screenshots? :-( On Sunday, 3 June 2012 18:05:22 UTC-5, Niphlod wrote: yes, you're right, where is the github url ?? https://github.com/niphlod/w2p_tvseries

Re: [web2py] Twitter OAuth lib

2012-06-03 Thread Udi Milo
can you point me to an example or where can I find the code? On Sunday, June 3, 2012 4:35:57 AM UTC-4, mcm wrote: Twitter oauth is supported by web2py natively. mic Il giorno 03/giu/2012 02:37, Udi Milo udim...@gmail.com ha scritto: I want to allow my users to connect a Twitter account to

[web2py] web2py on HelioHost

2012-06-03 Thread palomar
HI! I'm a newbie and I would like to try web2py on a free hosting. I found Heliohost http://www.heliohost.org/home/ but, after installation and following thist posthttp://www.helionet.org/index/topic/10963-web2py/page__hl__web2py__fromsearch__1, I have 500 Internal Server Error. Somebody

[web2py] Re: smartgrid and unsupported query error

2012-06-03 Thread weheh
Posted as http://code.google.com/p/web2py/issues/detail?id=831

[web2py]

2012-06-03 Thread yanqing zhang

[web2py] Decoupling web2py templates

2012-06-03 Thread Alec Taylor
Would it be possible to decouple web2py templates to use REST (HTTP)[XML, CSV, JSON] or RPC (XML, JSON)? The primary advantages I see for this is in the simplification for the creation of: - Mobile apps (using PhoneGap) - Easy JavaScript widget extrapolation (Facebook/DISQUS/Twitter style)

[web2py] Re: w2p_tvseries: a new web2py app

2012-06-03 Thread Massimo Di Pierro
:-) On Sunday, 3 June 2012 21:14:10 UTC-5, Niphlod wrote: whoa, you're right did I mention I'm not a web designer and that there are a few corners where I could use some help with javascript ? If someone is interested please let me know. Il giorno lunedì 4 giugno 2012 02:26:56

[web2py] Re: Decoupling web2py templates

2012-06-03 Thread Massimo Di Pierro
If I understand your question. You can do return response.render(view, context=dict()) On Sunday, 3 June 2012 21:57:59 UTC-5, Alec Taylor wrote: Would it be possible to decouple web2py templates to use REST (HTTP)[XML, CSV, JSON] or RPC (XML, JSON)? The primary advantages I see for this

[web2py] Add a user only showing logged in user.

2012-06-03 Thread Jason Brower
I have been trying to add a user and all I get is my current user. I want the form so I am the one creating a new user while logged in. I started with: form = auth.register() With shows my existing profile. And then: form = crud.create(db.auth_user) Which seems to do the same thing. Any way I can

[web2py] Fwd: Add a user only showing logged in user.

2012-06-03 Thread Jason Brower
Shizzle, ok, dumb typo on my part. Works fine now. BR, Jason Original Message Subject:Add a user only showing logged in user. Date: Mon, 04 Jun 2012 06:35:06 +0300 From: Jason Brower encomp...@gmail.com To: web2py@googlegroups.com I have been trying to add a

[web2py] Re: smartgrid and unsupported query error [open]

2012-06-03 Thread weheh

Re: [web2py] Re: Decoupling web2py templates

2012-06-03 Thread Alec Taylor
I'm intrigued... you've piqued my interest. Can you show me an example with a few more lines so I can see where you were going with this? Thanks On Mon, Jun 4, 2012 at 1:34 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: If I understand your question. You can do return