Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Bruno Rocha
If your contrib needs to have its own models and controllers, then you should create it as a plugin. Or you can create a module and define an API for it, take a dummy example. /modules/myawesomemodule.py class MyAwesomeClass(object): it creates the Awesome object which is a

[web2py] Re: One database field, two form fields? From seconds to min:sec

2013-02-09 Thread Michael Haas
Hello all, I decided to tackle this with the first implementation I saw in the documentation. I insert two custom fields, remove the f_measure field from the form and use the SQLForm without Database IO code from the book to process the form. Here's my (somewhat ugly) code, hopefully it will

[web2py] Re: One database field, two form fields? From seconds to min:sec

2013-02-09 Thread Michael Haas
I accidentally hit sent while still editing the code formatting. Oh well, it should be obvious how it works. I still feel a custom widget with a validator doing the value calculation would be nicer, but I'm not sure if that's possible. Kind regards, Michael -- --- You received this

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Alec Taylor
Mmm, suppose I could do things like that… But it is rather annoying that web2py has no built-in reverse-engineering (intropspection) that can impose a web2py overlay atop an existing database… On Sat, Feb 9, 2013 at 7:04 PM, Bruno Rocha rochacbr...@gmail.com wrote: If your contrib needs to have

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Vasile Ermicioi
But it is rather annoying that web2py has no built-in reverse-engineering (intropspection) that can impose a web2py overlay atop an existing database there are some scripts to generate models from database, web2py/scripts/extract_mysql_models.py web2py/scripts/extract_pgsql_models.py

[web2py] Re: web2py admin2 is DEAD?

2013-02-09 Thread António Ramos
Yesterday I was using admin to fine tune dozens of records and It was very tedious with admin just to delete records. +1 for admin2 C'mon guys, django has it for a long time! Small details are also important! Em sexta-feira, 8 de fevereiro de 2013, rif escreveu: I'd love to work on it again :)

[web2py] Cannot label id field

2013-02-09 Thread François Delpierre
Hi, Let's see the definition: db.define_table('t_bsc', Field('id', type='integer', label=T('Service Code')), Field('f_name', type='string', label=T('Service name'), comment=T('The name of the customer facing service as known to your customer.')), But in my

[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?

2013-02-09 Thread François Delpierre
Ok, so it's not included in the grid options. changing it in web2py.js would disable the confirmation globally, that's a bit dangerous for other tables. I would prefer to do it only for 1 particular table. Or maybe creating a web2py_noconfirm.js included in a layout_noconfirm.html ? -- ---

Re: [web2py] Re: Book app

2013-02-09 Thread Kenneth Lundström
Thank you. Kenneth https://github.com/mdipierro/web2py-book On Friday, 8 February 2013 23:51:57 UTC-6, Kenneth wrote: Hello, is the web2py online book app available as an appliance? I'd like to take a look for example on the database setup. Kenneth -- --- You received

[web2py] Re: Unique Constraint not working for : Field(type='upload', unique=True)

2013-02-09 Thread François Delpierre
Hi, I got a quite similar result by working on the validation at the form level: if form1.process().accepted: session.flash = 'File uploaded' redirect(URL('check_xls_file', args=form1.vars.id, user_signature= True)) elif form1.errors: response.flash = 'File

[web2py] Re: negative ID values in the ID field break use of format in SQLFORM.grid

2013-02-09 Thread Tim Richardson
Thanks Massimo, that works. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Niphlod
wait a second . you may be missing an important bit. DAL has no introspection whatsoever for retrieving existing tables if you have not defined them. That doesn't mean that you have to define tables at every connection (it's easy, but let's assume you don't want to). When you define tables

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Alec Taylor
On Sat, Feb 9, 2013 at 11:53 PM, Niphlod niph...@gmail.com wrote: wait a second . you may be missing an important bit. DAL has no introspection whatsoever for retrieving existing tables if you have not defined them. That doesn't mean that you have to define tables at every connection (it's

[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?

2013-02-09 Thread Anthony
Do you want to disable the confirm message when clicking the Delete buttons on the grid itself? In that case, the confirmation is not controlled by the code in web2py.js. For those buttons, there is an onclick handler defined in the button element itself. We should probably include an option

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Alec Taylor
Okay, GitHub maintenance has ended. That pull-request isn't for a server; it's for a consumer. I'm building—and have just about finished—an OAuth2 server (provider) for web2py. To put it simply: We currently consume Facebook to grab facebook user details and whatnot With my package we will be

Re: [web2py] db.executesql(..., as_dict=True) seem buggy

2013-02-09 Thread Richard Vézina
I use postgres with psycopg2, never try with other version, it a new I had developped where I was needing to do that. Richard On Fri, Feb 8, 2013 at 5:30 PM, Brian M bmere...@gmail.com wrote: What database are you using? Did it work prior to web2py 2.3.2? The dict keys (field names) are

Re: [web2py] db.executesql(..., as_dict=True) seem buggy

2013-02-09 Thread Richard Vézina
Ok, was coming from postgres, I have to double quote it in order to get postgres respect upper cases. With : SELECT field AS Field FROM ... Postgres return field With SELECT field AS Field FROM ... Postgres return Field May be it is my SQL that was bad at the start, standard SQL may required

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
well what we are using is a hybrid model: - the ios device uses a modified form of OAuth to get access tokens (and we have the confusing problem of users start anonymous but with an access token, and then may later create an account associating an email and other user data with the account) -

Re: [web2py] Star Rating

2013-02-09 Thread Michael Gheith
Hello rochacbruno, I loaded this application on two different machines/environments, and the information in the form is not being saved to the database song table. I tried this as both a logged in user, and not logged in user. I began to trouble shoot, and modified the form from: def index():

[web2py] Re: Star Rating

2013-02-09 Thread Michael Gheith
I printed the request.vars to the console, and this is what I got after form submission: Storage {'_formkey': '7c32617c-2136-4d8d-ad54-ea7ae454e551', '_formname': 'song/create', 'title': 'Thriller'} So the star rating is definitely not making its way back to the server. I'm guessing it should

[web2py] Re: serving php and python in shared hosting

2013-02-09 Thread José Eloy
Please! Nobody can help me? I'm desperate to solve this problem. How can web2py work together con php apps? (in this case joomla). -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread Kenny Chung
Howesc, Thanks for great info. So, does mobile app user have to register web2py via access token provided by their hardware in mobile application? May you explain how you built the login/registration module for mobile app users along with web2py? Do you code in html5 with native code for

[web2py] web2py on amazon EC2

2013-02-09 Thread samuel bonilla
Amazon EC2 is a web server, highly scalable and secure. recommend This installation is easy, is a pre configured server that runs with web2py https://aws.amazon.com/marketplace/pp/B009I68K0E/ref=srh_res_product_title?ie=UTF8sr=0-2qid=1360439635824 -- --- You received this message because you

[web2py] Re: serving php and python in shared hosting

2013-02-09 Thread howesc
yes i suspect it would be an apache configuration. you want to use python connector for www/web2py and php connector for www/joomla. unfortunately i have not configured apache in years and don't know the exact answer. :( sorry i'm not more help. cfh On Saturday, February 9, 2013 11:24:26 AM

[web2py] Re: GAE deployment questions...from a total beginner!

2013-02-09 Thread howesc
feel free to ask more questions as you learning things! cfh On Friday, February 8, 2013 2:54:46 PM UTC-8, Riccardo C wrote: Thanks a lot for all these informations. It seems I have a lot to learn ;) On Wednesday, 6 February 2013 20:54:21 UTC, howesc wrote: Riccardo, some answers:

[web2py] Re: serving php and python in shared hosting

2013-02-09 Thread samuel bonilla
lo que puedo entender es que quieres correr web2py y php en el mismo servidor, pero solo funcionaria si corres por ejemplo web2py en el puerto 80 y php en otro puerto ejjemplo 8000 El lunes, 4 de febrero de 2013 19:54:22 UTC-5, José Eloy escribió: Hello everybody! I got to install

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
- Apple explicitly does not allow using the hardware identifier in your app, and will reject app submission that do that. because of this each app install logs in first as an anonymous user. - website users use standard web2py auth - app connections to the server use our modified OAuth API

[web2py] ipython is your friend!

2013-02-09 Thread JimK
One of the nice things about python modules that are not c-compiled is the fact that you can read the source code. The bad part is that the source code is not always easy to find. This is where ipython comes in. IPython is an alternative to the regular python interpreter which offers a bunch