Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread orsomannaro
Than you very much Roberto but I have some doubts.. Create a WSGI module for mercurial: # call it hg_wsgi.py in which directory? Finally configure uWSGI: following the installing script in object, I used /etc/uwsgi/apps-available/web2py.xml to configure uwsgi for web2py, so I'm a lit

[web2py] Suggested addition to web2py: HTML API report

2012-05-29 Thread Alec Taylor
Recently I've been playing around with ServiceStack, an open-source framework for developing RESTful APIs in C#. They have a rather neat way of viewing their APIs JSON output in a human-readable format. Click for fully functional sample output

[web2py] Re: Deploy issue - Apache on Windows - Unable to import driver

2012-05-29 Thread Andrew
The Uniform Server option looks very interesting, as does the newer apache version (I'm trying both). I'm now stuck with the same issue with both Uniform Server and straight Apache, which is when starting apache or running Uniform "Apache Syntax Check": Syntax error on line 197 of .../httpd.con

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-29 Thread Andrew
Thanks Paolo, The layout is back to normal. However the Login set of links are looking like buttons, rather than the background being the same as the navbar. This is the same in the two browsers I'm looking at (IE7 and Firefox). I prefer the way it looked in firefox. Does it need to be a set

[web2py] Re: mydomain.com/#!/ detect and redirect

2012-05-29 Thread Annet
Hi Anthony, Thanks for your reply. I considered a similar solution, but stranded on the idea that the code replacing the '...' in the url are in place of the application name. Isn't that right? I thought of catching the code in place of the '...' in the routes.py file in the web2py base folde

Re: [web2py] Web2py and XMPP

2012-05-29 Thread Jason Brower
Your going to need a service running to recording any incoming messages. But this is most likely a good start. http://xmpppy.sourceforge.net/ I have done similar with other technologies. BR, Jason On 05/30/2012 01:49 AM, Román Torres wrote: Hi everybody. Im on a big project, and now I need to

Re: [web2py] Re: advice on a modal window

2012-05-29 Thread Annet
Hi Fabiano, I agree with pbreit: This was the easiest and clearest explanation I saw: > > http://blog.assimov.net/blog/2012/03/09/ajax-content-in-twitter-bootstrap-modal/ > What you need is the script in Mark Szcz comment: $("a[data-toggle=modal]").click(function (e) { target = $(this).a

[web2py] Pointing labels to input elements

2012-05-29 Thread James O'Neill
How do I get the generated ID for an input element when using form.custom.widget.fieldname? I need to populate the FOR attribute on the label element.

[web2py] Web2py and XMPP

2012-05-29 Thread Román Torres
Hi everybody. Im on a big project, and now I need to do a chat on web2py (with python and XMPP). I cant find any documentation or reference to understand it. I need some help to know how I do my own server (without installing things like Apache if its possible, because my web2py page is working

Re: [web2py] Re: advice on a modal window

2012-05-29 Thread pbreit
This was the easiest and clearest explanation I saw: http://blog.assimov.net/blog/2012/03/09/ajax-content-in-twitter-bootstrap-modal/ On Tuesday, May 29, 2012 6:53:34 PM UTC-7, Fabiano Faver wrote: > > Thanks for the tips Villas, Annet and Pbreit. > I checked this bootstrap and really liked what

[web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-29 Thread Janath
trying to be more specific :) I am trying to see if I can start a python 2.5 shell (from within web2py) and execute some commands to receive the results back to web2py. is there any way of doing that, or should I drop that idea. If it sounds not possible at this time with web2py, or if it takes

Re: [web2py] Re: How to does post in RESTful

2012-05-29 Thread Sanjeet Roy
Thanks Anthony now i got it and i am able to post the request by using the CURL On Wed, May 30, 2012 at 8:23 AM, Anthony wrote: > If you want to make a POST > request, > you need some way to send the post data from a client. The client could be > a

Re: [web2py] Re: How to does post in RESTful

2012-05-29 Thread Anthony
If you want to make a POST request, you need some way to send the post data from a client. The client could be a browser, in which case you can send post data by submitting a form or by sending an Ajax POST request. The client could be another server, in

Re: [web2py] Re: How to does post in RESTful

2012-05-29 Thread Sanjeet Roy
Hi Anthony actually i didn't get you i want ipost the data something like that which are given in the following link :- http://www.mail-archive.com/web2py@googlegroups.com/msg70275.html http://vimeo.com/21133657 http://www.reddit.com/r/programming/comments/g5hxq/web2py_trunk_has_a_new_restful_ap

Re: [web2py] Re: advice on a modal window

2012-05-29 Thread Fabiano Faver
Thanks for the tips Villas, Annet and Pbreit. I checked this bootstrap and really liked what I can do with it. indeed it is very helpful. Please correct me if I am wrong But it seems to load all modal DIVs into the page as hidden. My page would have many links to modal windows and a SQLFORM inside

[web2py] Full time work

2012-05-29 Thread Bruce Wade
Hi, Is anyone looking for some full time work? Could possibly lead to permanent. Goals optimization and scale. As well as adding to the advertising platform. Real-time banner ads. If you are interested send me an email with some work you have done and expect rate of pay in CAD Regards, Bruce

[web2py] Re: Wep2Py Database Tables

2012-05-29 Thread Anthony
On Tuesday, May 29, 2012 8:30:47 PM UTC-4, Horus wrote: > > Having authentication as a core and apps built around it rather than every > app having its own admin/CAS > That's basically the idea of CAS, though each app that accesses the CAS provider still has to instantiate Auth in order to prov

[web2py] Re: Wep2Py Database Tables

2012-05-29 Thread Horus
Having authentication as a core and apps built around it rather than every app having its own admin/CAS On Monday, May 28, 2012 9:38:51 PM UTC-4, Anthony wrote: > > Not sure what you mean. > > On Monday, May 28, 2012 9:16:27 PM UTC-4, Horus wrote: >> >> ok understood. what do you think about hav

Re: [web2py] Re: Web2Py + OAuth2 Server

2012-05-29 Thread Horus
I am doing a bit on research on it and looking to wrap my head around it to build a server and client in Web2Py however, there isn't a lot of documentation and some implementations differ from other (I guess that is getting back to what Massimo said). Essentially, I will build a core system and

[web2py] Re: favicon problem

2012-05-29 Thread howesc
visit: http://yousite.com/facicon.ico what do you get back? there might be a routing issue that does not display the proper favicon. also check your generated HTML for the meta data to make sure it has a proper url to the favicon. (if included at all) cfh On Monday, May 28, 2012 1:58:49 PM U

[web2py] Re: advice on a modal window

2012-05-29 Thread pbreit
I also vote for Bootstrap modals which are relatively easy to use. On Monday, May 28, 2012 11:16:22 PM UTC-7, Annet wrote: > > Hi Fabiano, > > I am using Bootstrap's modal: > http://twitter.github.com/bootstrap/javascript.html#modals > > Since the next version of web2py has Bootstrap included thi

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-05-29 Thread Richard Vézina
Can't link the app too big (thanks to google 4 meg max :( )... Ask me in private I will send you the app directly. Richard On Tue, May 29, 2012 at 3:40 PM, Richard Vézina wrote: > Hello, > > Here a demo app, hope it will help for now... It the best I can do now. > > Try to understand it carefu

Re: [web2py] Re: How to does post in RESTful

2012-05-29 Thread Anthony
You could submit the post request via a form on the page, with the form's action set to the get_person URL, or you could submit via Ajax, possibly using jQuery.post() (see http://api.jquery.com/jQuery.post/). Anthony On Tuesday, May 29, 2012 3:01:09 PM UTC-4, Sanjeet Roy wrote: > > Hii Anthony

Re: [web2py] Re: How to does post in RESTful

2012-05-29 Thread Sanjeet Roy
Hii Anthony i have the following in my db:- db.define_table('person',Field('name'),Field('birthdate','date')) db.define_table('dog',Field('name'),Field('owner',db.person),Field('info','text')) and api.py is my controller :- @request.restful() def get_person(): def GET(id): person = d

[web2py] Re: How to does post in RESTful

2012-05-29 Thread Anthony
Passing the variables in the URL is a GET request. How is the API being called (e.g., from the browser, from a Python/web2py app, from another server-side technology)? Depending on the answer, there are different ways of making a POST request (e.g., from the browser, it could be via form submis

[web2py] How to does post in RESTful

2012-05-29 Thread Sanjeet Roy
i am using the following controller can any one tell me how to pass the value in URL to insert the data in database i am trying : http://127.0.0.1:8000/myapp/api/get_person/?owner=sanjeet&name=roy&info=bangalore it gives the invalid argument can anyone tell me how i pass the valid argument to i

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-05-29 Thread Richard Vézina
Ok, I will work on this to allow possible user to have access to this ressource. I will clean the code a bit and write a tutorial step by step with the element to adapt to your context. Give me a couples of hours. Richard On Tue, May 29, 2012 at 6:44 AM, Johann Spies wrote: > On 25 April 2012

Re: [web2py] Re: Trying to autocreate users but having trouble...

2012-05-29 Thread Jason Brower
Woot. That did it! Thanks! And I never know when to use them or not when moving to a new line. :) BR, Jason Brower On 05/29/2012 04:28 PM, Anthony wrote: db.auth_user.insert(password=db.auth_user.password.validate(password), Validators (including the password CRYPT()

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-29 Thread Omi Chiba
I downloaded the latest this morning and found some icons cannot be displayed. Maybe we're not using the latest bootstrap ? icon-glass => OK icon-wrench => Not displayed On Sunday, May 27, 2012 5:53:16 PM UTC-5, Massimo Di Pierro wrote: > > Grazie. In trunk. In futuro ti prego di upl

Re: [web2py] Re: new demo appliance for gmap and fullcalendar

2012-05-29 Thread Niphlod
I have fullcalendar too in my application. given that mytable.mydate is a datetime, try serializing the event in a dict in json with mytable.mydate.strftime('%Y-%m-%dT%H:%M:%SZ') Il giorno martedì 29 maggio 2012 17:26:44 UTC+2, villas ha scritto: > > Hi Anthony > Well, yes, I did look there bu

Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread Roberto De Ioris
Il giorno 29/mag/2012, alle ore 17:37, orsomannaro ha scritto: > Il 29/05/2012 15:43, Roberto De Ioris ha scritto: > >> Do you want web2py under /w2p and mercurial under something like /hg for the >> same domain ? > > > Yes, perfect!! Create a WSGI module for mercurial: # call it hg_wsgi.

Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread orsomannaro
Il 29/05/2012 15:43, Roberto De Ioris ha scritto: Do you want web2py under /w2p and mercurial under something like /hg for the same domain ? Yes, perfect!!

Re: [web2py] Re: new demo appliance for gmap and fullcalendar

2012-05-29 Thread villas
Hi Anthony Well, yes, I did look there but I still couldn't find it. A working link would still be useful. D

[web2py] Re: print_function not defined

2012-05-29 Thread Paul Clinch
I think I must have confused exception reports, specifying: from __future__ import print_function in the controller does work, and not tryng to call the module later. :-)

[web2py] print_function not defined

2012-05-29 Thread Paul Clinch
I have a module, defined in .../application/modules/titles_in_packages.py. It uses the print function and so contains: from __future__ import with_statement, print_function When the module is imported, (in a controller): import titles_in_packages it fails with a syntax error unless the import

Re: [web2py] Re: recipes book database mover

2012-05-29 Thread Jonathan Lundell
On May 29, 2012, at 7:19 AM, hasan alnator wrote: > i still get the same error , the error is attached : > > > Change __name__() to __name__

Re: [web2py] Re: recipes book database mover

2012-05-29 Thread Anthony
According to the error, you still have __name__(), but it should be __name__ . Anthony On Tuesday, May 29, 2012 10:19:48 AM UTC-4, Hassan Alnatour wrote: > > i still get the same error , the error is attached : > > >

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-05-29 Thread Alec Taylor
I just found a CMS built with web2py, and I must say, I was not unimpressed: https://github.com/rochacbruno/movuca/ On Fri, May 25, 2012 at 6:25 PM, Luc Chase wrote: > I'd really be keen on a clone of the php based CMS,  eZ Publish. > > It has very a good internal architecture. > > -- > Luc. > >

Re: [web2py] Re: recipes book database mover

2012-05-29 Thread Anthony
Should be: if __name__ == '__main__': Anthony On Tuesday, May 29, 2012 9:56:20 AM UTC-4, Hassan Alnatour wrote: > > Dear Massimo ,, > > the image attached is the error i keep getting in the shell .. > > regards, > >

Re: [web2py] Re: recipes book database mover

2012-05-29 Thread hasan alnator
Dear Massimo ,, the image attached is the error i keep getting in the shell .. regards, <>

Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread Roberto De Ioris
Il giorno 29/mag/2012, alle ore 15:34, orsomannaro ha scritto: > Il 28/05/2012 18:00, orsomannaro ha scritto: > >> how must I modify nginx and uwsgi configuration file if I what web2py >> respond in >> >> https:///w2p/ >> >> ? > > > I have a sever with nginx+uwsgi+Web2Py and I would like als

[web2py] Re: Deploy issue - Apache on Windows - Unable to import driver

2012-05-29 Thread Omi Chiba
Brian, Thank you for the info ! I also added the information on my blog. On Friday, May 25, 2012 7:32:23 PM UTC-5, Brian M wrote: > > Yep, got burned by this when setting up a new server last month. The > problem is covered in the pyodbc issue tracker here - > http://code.google.com/p/pyodbc/i

[web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread orsomannaro
Il 28/05/2012 18:00, orsomannaro ha scritto: how must I modify nginx and uwsgi configuration file if I what web2py respond in https:///w2p/ ? I have a sever with nginx+uwsgi+Web2Py and I would like also to configure hgweb(Mercurial), but I'm not able to configure nginx/uwsgi... no one??

Re: [web2py] Re: new demo appliance for gmap and fullcalendar

2012-05-29 Thread Anthony
Appliances have been moved to github and are now accessed via this page: http://www.web2py.com/appliances. Anthony On Tuesday, May 29, 2012 9:24:50 AM UTC-4, Johann Spies wrote: > > On 29 May 2012 12:53, villas wrote: > >> >> http://web2py.com/appliances/**default/show/71

[web2py] Re: Trying to autocreate users but having trouble...

2012-05-29 Thread Anthony
> > > db.auth_user.insert(password=db.auth_user.password.validate(password), > Validators (including the password CRYPT() validator) return a tuple of (value, error), where error is None if validation passes. So, the above should be: db.auth_user.insert(password=db.auth_user.pas

Re: [web2py] Re: new demo appliance for gmap and fullcalendar

2012-05-29 Thread Johann Spies
On 29 May 2012 12:53, villas wrote: > > http://web2py.com/appliances/**default/show/71 > > > Link not working for me. Just says: > invalid function (default/show) > Same here. Johann -- Because experiencing your loyal love is better than life its

[web2py] Re: SQLTABLE row number

2012-05-29 Thread Massimo Di Pierro
Do not use SQLTABLE but enumerate records as you loop over them {{for k,row in enumerate(rows):}} {{=k}}{{=row.field}}... {{pass}} On Tuesday, 29 May 2012 03:14:31 UTC-5, Pradeesh wrote: > > How can I display a sequence number in the web2py SQLTABLE. I have tried > to display the database ID

[web2py] Re: recipes book database mover

2012-05-29 Thread Massimo Di Pierro
I cannot see the error On Tuesday, 29 May 2012 03:05:29 UTC-5, Hassan Alnatour wrote: > > Dear ALL , > > anyone used the method in the book to move the data from sqlite database > to mysql , i keep geting this error > > [image: Inline image 1] >

[web2py] Re: Trying to autocreate users but having trouble...

2012-05-29 Thread Massimo Di Pierro
This "db6ff6dd097fb1d804eabc2b8ecb0d6a" is correct for a hashed password. Do you actually have the "|" in the password field? That would be incorrect. massimo On Tuesday, 29 May 2012 02:17:38 UTC-5, encompass wrote: > > When I try to do this: > if not db(db.auth_user.email == attender.email).se

Re: [web2py] Re: Web2Py + OAuth2 Server

2012-05-29 Thread Michele Comitini
Yes it is definitely possible. OAuth2.0 was born because OAuth1.0 had all sort of hashing to do on both client and server side. That was to allow for better security, on a clear channel, but failed since OAuth1.0a is deprecated on non TSL channels. They really simplified things in OAuth2.0 so it i

Re: [web2py] cool new wysiwyg editor

2012-05-29 Thread Marco Tulio Cicero de M. Porto
That or they mean that they'll never do it. 2012/5/28 Massimo Di Pierro > > > On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote: >> >> and no font name, font size > > > That's a plus. It should he handled by css. > > >> >> I will wait a few releases until they will conquer the world

Re: [web2py] combine Autocomplete widget and SELECT_OR_ADD_OPTION widget

2012-05-29 Thread Johann Spies
On 25 April 2012 23:48, Richard Vézina wrote: > Hope it works for you Johann. > Unfortunately I did not have any success with this recipe. I can get the select_or_add widget working but not this one. Thanks for your trouble anyhow. Regards Johann -- Because experiencing your loyal love is

[web2py] Get and Post the value from Chrome extension in our database

2012-05-29 Thread Sanjeet Roy
I created the one chrome extension by using manifest.json which is used to pop-up the html page where i want the value in drop-down from our database when the user will be login and they can also submit some text box values from the extension which will be stored in our database.

Re: [web2py] Re: How to Create the RESTful API for the Web Application

2012-05-29 Thread Sanjeet Roy
Hii actually i developed the one chrome extension by using manifest.json which is used to pop-up the html page where i want the value in drop-down when the user will be login and they can also post some Queries from the extension which will be stored in our database. On Tue, May 29, 2012 at 12:00

[web2py] SQLTABLE row number

2012-05-29 Thread Pradeesh
How can I display a sequence number in the web2py SQLTABLE. I have tried to display the database ID field. but if I am deleting any record. The sequence number order is missing. Please advice.

[web2py] recipes book database mover

2012-05-29 Thread Hassan Alnatour
Dear ALL , anyone used the method in the book to move the data from sqlite database to mysql , i keep geting this error [image: Inline image 1]

Re: [web2py] cool new wysiwyg editor

2012-05-29 Thread Jason Brower
Hardy Har Very true. BR, Jason On 05/29/2012 05:29 AM, Massimo Di Pierro wrote: On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote: and no font name, font size That's a plus. It should he handled by css. I will wait a few releases until they will conquer the world

[web2py] Trying to autocreate users but having trouble...

2012-05-29 Thread Jason Brower
When I try to do this: if not db(db.auth_user.email == attender.email).select(): db.auth_user.insert(password=db.auth_user.password.validate(password), \ nickname = final_nickname, \ first_name = attender.first_name, \