[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread cjrh
Let us know about any problems you find when you try web2py on Py3.x, ok?

[web2py] web2py - Best Practice

2011-07-13 Thread nic
Dear friends, I am a huge web2py fan and would like to propose an idea to the community. I understand that web2py is a development environment and has it’s roots as an educational platform. One of the things that I have personally found most useful are the free appliances. However as web2py has

[web2py] Re: Web2py uses Django... on GAE

2011-07-13 Thread Massimo Di Pierro
This is a GAE bug and we should open a ticket. GAE should not issue warning about libraries we do not use and we should not reference libraries we do not use to make the warnings go away. Do you want to file the bug report? I not, I will do it. On Jul 12, 7:45 pm, howesc how...@umich.edu wrote:

[web2py] Re: Admin security: https vs localhost

2011-07-13 Thread Massimo Di Pierro
that cannot be done. The admin password is set locally always, never remotely (unless you change it via admin). On Jul 12, 7:55 pm, Anthony abasta...@gmail.com wrote: If you add a complexity requirement, make it for remote connections only. Anthony On Tuesday, July 12, 2011 6:32:48 PM

[web2py] Re: After CAS login, password is reset

2011-07-13 Thread Massimo Di Pierro
I suspect your problem is that both apps connect to the same databases. If you use CAS youhave consumer and provider. If the two apps use the same DB, there is no need for CAS. You use CAS because the two apps do not have the same db. Therefore is correct for the consumer to reset the password to

[web2py] tomorrow in San Francisco

2011-07-13 Thread Massimo Di Pierro
I look forward to meet some of you tomorrow: http://www.meetup.com/sfpython/events/24721631/ If you are at the meeting please come say hello. Do not be offended if I do not remember your name but I probably will remember your google username. ;-) Massimo

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Manuele Pesenti
On 13/07/2011 07:45, nic wrote: Dear friends, [...] I would like to propose that we develop a suite of products (open source of course) based on the best practices of web2py that would be: +1 :) Manuele

[web2py] Re: web2py - Best Practice

2011-07-13 Thread Massimo Di Pierro
I am all for this! Massimo On Jul 13, 12:45 am, nic nicbythe...@gmail.com wrote: Dear friends, I am a huge web2py fan and would like to propose an idea to the community. I understand that web2py is a development environment and has it’s roots as an educational platform. One of the things

[web2py] Re: Admin security: https vs localhost

2011-07-13 Thread cjrh
I think AB means that the complexity of the Admin password can be analysed when remote connections are made, and if they don't pass some requirement, then do something. I haven't thought it through fully either, and tbh I don't think we need to enforce complexity either. Would it not be

Re: [web2py] Re: web2py - Best Practice

2011-07-13 Thread steve van christie
like this, +1

[web2py] Re: web2py - Best Practice

2011-07-13 Thread cjrh
On Wednesday, July 13, 2011 7:45:18 AM UTC+2, nic wrote: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A Media Center etc ... How about an issue tracker? We're currently using Redmine, and it's really clunky and features very high memory consumption.

Re: [web2py] Re: web2py - Best Practice

2011-07-13 Thread Kenneth Lundström
On 13.7.2011 10:23, cjrh wrote: On Wednesday, July 13, 2011 7:45:18 AM UTC+2, nic wrote: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A Media Center etc ... How about an issue tracker? We're currently using Redmine, and it's really clunky and

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Miguel Lopes
Let me add the advantage that the initiative stimulates focuses contribution and supplies a platform for learning. Some people may not wish, have the time or expertise to get involved with the development of the web2py framework. This sort of initiative supplies a narrower ground for contribution

[web2py] Limitation in template system

2011-07-13 Thread Miguel Lopes
I think this behavior I've just found is worth sharing. Templates don't honor the if statement that conditionally try to include or exclude template blocks. I've just detected this (in 1.96.4 I think) and upgrade to 1.97.1 and the issue/behavior remains. {{rsd=None}} {{if rsd!=None:}} {{block

[web2py] Re: how to use contrib/login_methods/linkedin_account.py

2011-07-13 Thread Carl
did you find a solution? On Jun 26, 8:17 pm, Luis Goncalves lgoncal...@gmail.com wrote: One more clue: In the infinite loop,  every loop through the linkedin grant access (/oas/oauth/authorize) page  has a new oauth_token, such as

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Marin Pranjic
On Wed, Jul 13, 2011 at 7:45 AM, nic nicbythe...@gmail.com wrote: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A Media Center etc ... This is great idea, I had it few months ago, but never wrote it here. Next week I'll start programming a Forum software (with

[web2py] Re: Two problems with LOAD; one may be a bug(?)

2011-07-13 Thread Cliff
Thank you. I will fix that. On Jul 12, 7:57 pm, pbreit pbreitenb...@gmail.com wrote: Maybe try:  {{=LOAD('users', 'quals.load', args=(request.args(0)), ajax=True)}} The c= and f= are fine but not necessary. The extra .load is definitely unnecessary and may have been causing the problem. You

[web2py] Re: Two problems with LOAD; one may be a bug(?)

2011-07-13 Thread Cliff
Thank you. I'll clean up the repeated divs. On Jul 12, 8:49 pm, Anthony abasta...@gmail.com wrote: On Tuesday, July 12, 2011 5:43:55 PM UTC-4, Cliff wrote: Running Version 1.97.1 (2011-06-26 19:25:44) First problem: This is a snippet from a view file.  It works except that it displays

Re: [web2py] Multiple Domains, Subdomains, and Applications with SSL. Single web2py Instance on Apache

2011-07-13 Thread Ross Peoples
it looks correct, and shouldn't make any difference as long as indentation is correct. Maybe try lowercasing the domain names. Also, do you have any other routing options besides this one?

[web2py] Re: web2py - Best Practice

2011-07-13 Thread newnomad
On Jul 13, 1:05 pm, Marin Pranjic marin.pran...@gmail.com wrote: On Wed, Jul 13, 2011 at 7:45 AM, nic nicbythe...@gmail.com wrote: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A Media Center etc ... This is great idea, I had it few months ago, but never

[web2py] Re: Paid project: Open source GAE blobstore upload feature in web2py

2011-07-13 Thread anandvc
Thank you, Martin and Christian, for working on this! Of course, I would gladly donate to web2py, as I have also offered in the google code ticket that I created. I'll keep following this thread for any updates that you can share. Thank you, once again! - Anand On Jul 13, 5:54 am, howesc

[web2py] Re: Admin security: https vs localhost

2011-07-13 Thread Ross Peoples
I have created Issue 336 with a patch that adds brute-force attack protection to the admin application using the input gathered from everyone: http://code.google.com/p/web2py/issues/detail?id=336 This does NOT add a password complexity requirement, as it seems this is a touchy issue at the

Re: [web2py] Multiple Domains, Subdomains, and Applications with SSL. Single web2py Instance on Apache

2011-07-13 Thread danto
2011/7/13 Ross Peoples ross.peop...@gmail.com it looks correct, and shouldn't make any difference as long as indentation is correct. Maybe try lowercasing the domain names. Also, do you have any other routing options besides this one? yeah, it is very weird, but suddenly after stoping, wait

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Anthony
The problem is, it would break backward compatibility. On Wednesday, July 13, 2011 12:54:57 AM UTC-4, Rahul wrote: Its true that there are existing python versions 2.6, 2.7.x but what I would like is Web2py support for Python 3. Reasons: 1. We should provide early support for Python 3

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Ross Peoples
Very true, we would need to create another branch of web2py, do the initial conversion to Python 3, then try to maintain it, coding updates and new features twice: once for Python 2.x and once again for Python 3.x, since the two have different coding requirements. Then both would need to be

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Ross Peoples
Small correction here: New features, ideas, and ways of doing things could be created without *worrying about* breaking backwards-compatibility because your Python2.x web2py apps wouldn't work on Python 3 anyways

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread pbreit
I think Massimo may have indicated that one idea for Python 3 is to start from scratch and he had some ideas (hence, Web3py). The only big reason I could see doing anything on Python 3 right now is that it'd be the only framework on 3 since I don't think anyone is really contemplating using 3

Re: [web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Caleb Hattingh
Agreed, I think web2py on Py3 is pointless. An entirely different project, called, let's say, web3py, which runs on Py3 is a different animal altogether... On 13 July 2011 15:50, Anthony abasta...@gmail.com wrote: The problem is, it would break backward compatibility. On Wednesday, July 13,

Re: [web2py] Re: Web2py uses Django... on GAE

2011-07-13 Thread Jonathan Lundell
On Jul 12, 2011, at 11:40 PM, Massimo Di Pierro wrote: This is a GAE bug and we should open a ticket. GAE should not issue warning about libraries we do not use and we should not reference libraries we do not use to make the warnings go away. Do you want to file the bug report? I not, I will

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Anthony
On Wednesday, July 13, 2011 10:28:03 AM UTC-4, pbreit wrote: The only big reason I could see doing anything on Python 3 right now is that it'd be the only framework on 3... Except for CherryPy: http://www.cherrypy.org/wiki/WhatsNewIn32

Re: [web2py] Re: web2py - Best Practice

2011-07-13 Thread Ismael Alejandro
+1 On Wed, Jul 13, 2011 at 7:37 AM, newnomad uti...@gmail.com wrote: On Jul 13, 1:05 pm, Marin Pranjic marin.pran...@gmail.com wrote: On Wed, Jul 13, 2011 at 7:45 AM, nic nicbythe...@gmail.com wrote: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A

[web2py] Help : SQLFORM.factory with multiple submit button ?

2011-07-13 Thread Patrick Installe
Hello, I have series of forms with in final validation. I would like that the user could go forward and backward between forms. Quite classical. I use SQLFORM.factory which I think is right equilibrium for the application. I would like to have in the forms one button forward and one button

[web2py] An issue with including extending views

2011-07-13 Thread Kimmo Kiiski
Hi, Our develpment team were previously using web2py version 1.94.6 and recently updated to the version 1.97.1. We noticed a significant difference in functionality when including a view that extend another view. We considered this to be a bug and decided to report it here. Let's say we have a

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Massimo Di Pierro
+1 On Jul 13, 9:28 am, Caleb Hattingh caleb.hatti...@gmail.com wrote: Agreed, I think web2py on Py3 is pointless. An entirely different project, called, let's say, web3py, which runs on Py3 is a different animal altogether... On 13 July 2011 15:50, Anthony abasta...@gmail.com wrote:

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Martín Mulone
Is what I want to achieve in powerpack, but now I'm reworking it in boilerplate https://bitbucket.org/mulonemartin/web2pyboilerplate/src . Nic you are right, web2py fit perfect for starter or as education platform, althought myself I use to teach some web programming to others. But in the next

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Jonathan Lundell
On Jul 12, 2011, at 10:45 PM, nic wrote: Things like: A Wiki / Blog / CMS / Forum An Online Store A Personal Accounting System A Media Center etc ... The focus would be on producing complete usable and beautiful applications. That's a very ambitious goal. I use, for a couple of

Re: [web2py] Re: After CAS login, password is reset

2011-07-13 Thread Lucas D'Avila
You're right in this case is not necessary to use CAS, thanks for the clarification :) -- Lucas D'Avila http://github.com/lucasdavila sent from a smartphone Em 13/07/2011 03:46, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: I suspect your problem is that both apps connec I suspect

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Michele Comitini
Martin, i totally agree with your analysis. We need to make easier code sharing with a well defined interface to extend the core. Mic Il giorno 13/lug/2011 17:32, Martín Mulone mulone.mar...@gmail.com ha scritto: Is what I want to achieve in powerpack, but now I'm reworking it in boilerplate

Re: [web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Caleb Hattingh
Is it worth calling the prototype version *before* web3py: web3000py? Or would that be unbearably geeky? Sent from my iPad On 13 Jul 2011, at 5:21 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: +1 On Jul 13, 9:28 am, Caleb Hattingh caleb.hatti...@gmail.com wrote: Agreed, I think

[web2py] SQLFORM - crud.create in a popup

2011-07-13 Thread Ismael Alejandro
hi! How could I put a SQLForm or a crud.create form in a modal and send it some url attributes?

Re: [web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Bruno Rocha
May be, the new project could be a kind of merge with Bottle ( http://bottlepy.org/docs/dev/, Web2py libs fits perfectly with Bottle, and bottle has a very nice base system. Maybe we cam have a bottle2py-project with Python3 as goal.

Re: [web2py] Help : SQLFORM.factory with multiple submit button ?

2011-07-13 Thread Kenneth Lundström
I think this is what you are looking for: http://labs.blouweb.com/powerformwizard http://www.google.com/url?sa=Dq=http://labs.blouweb.com/powerformwizard Kenneth Hello, I have series of forms with in final validation. I would like that the user could go forward and backward between forms.

Re: [web2py] SQLFORM - crud.create in a popup

2011-07-13 Thread Kenneth Lundström
hi! How could I put a SQLForm or a crud.create form in a modal and send it some url attributes? There is many different ways: http://easyframework.com/demo_popup.php A sure way is: http://www.web2py.com/plugins/static/web2py.plugin.*mmodal*.w2p

Re: [web2py] Help : SQLFORM.factory with multiple submit button ?

2011-07-13 Thread Bruno Rocha
I have used two approaches, the old one that you can find here: http://www.web2pyslices.com/slices/take_slice/127 and the new way using a plugin: http://labs.blouweb.com/powerformwizard With the first you can have more custom options and can use forms for different tables, with the former you

Re: [web2py] Help : SQLFORM.factory with multiple submit button ?

2011-07-13 Thread Jim Steil
PowerFormWizard? http://labs.blouweb.com/powerformwizard -Jim On 7/13/2011 9:27 AM, Patrick Installe wrote: Hello, I have series of forms with in final validation. I would like that the user could go forward and backward between forms. Quite classical. I use SQLFORM.factory which I

[web2py] Simultaneous multi-language system.

2011-07-13 Thread demetrio
Hi everyone, i don't know if Simultaneous multi-language system is the correct way to say what i need... i'll explain myself. I'm developing an application that by request of our customer, needs to have 2 languages at the same time. For example, if this app were in spanish and english, in the

Re: [web2py] Re: component refresh with jQuery UI tab plugin

2011-07-13 Thread Richard Vézina
A lot of thing happen since that time... Here the solutions I found with help of Anthony : if form.accepts(request.vars, session): session.flash = T('form accepted') if table == 'ref_fnaregistry': next = URL('ref', 'creation', args=1, extension=False, host=True)

[web2py] INSERT Error? or Bug?

2011-07-13 Thread Ismael Alejandro
hi! I'm very confused, I'm trying to do a simple Insert, like this, db.person.insert(name = 'foo'), but It doesn't work (from a controller). I tried trough appadmin in the query field (same query) and it shows me an error: (1064, uYou have an error in your SQL syntax; check the manual that

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Kenneth Lundström
hi! I'm very confused, I'm trying to do a simple Insert, like this, db.person.insert(name = 'foo'), but It doesn't work (from a controller). What happens when you do it in a controller? Do you get an error? If not how do you know it does not work? Kenneth I tried trough appadmin in the

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Ismael Alejandro
well, nothing is inserted 2011/7/13 Kenneth Lundström kenneth.t.lundst...@gmail.com hi! I'm very confused, I'm trying to do a simple Insert, like this, db.person.insert(name = 'foo'), but It doesn't work (from a controller). What happens when you do it in a controller? Do you get an error?

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Richard Vézina
Maybe you forgot : db.commit() Richard On Wed, Jul 13, 2011 at 1:59 PM, Ismael Alejandro ialejandr...@gmail.comwrote: well, nothing is inserted 2011/7/13 Kenneth Lundström kenneth.t.lundst...@gmail.com hi! I'm very confused, I'm trying to do a simple Insert, like this,

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Ismael Alejandro
Not working :( On Wed, Jul 13, 2011 at 1:02 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Maybe you forgot : db.commit() Richard On Wed, Jul 13, 2011 at 1:59 PM, Ismael Alejandro ialejandr...@gmail.comwrote: well, nothing is inserted 2011/7/13 Kenneth Lundström

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Richard Vézina
Would you show your model? Richard On Wed, Jul 13, 2011 at 2:08 PM, Ismael Alejandro ialejandr...@gmail.comwrote: Not working :( On Wed, Jul 13, 2011 at 1:02 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Maybe you forgot : db.commit() Richard On Wed, Jul 13, 2011 at 1:59

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Ismael Alejandro
db.define_table('person', Field('name','string')) On Wed, Jul 13, 2011 at 1:11 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Would you show your model? Richard On Wed, Jul 13, 2011 at 2:08 PM, Ismael Alejandro ialejandr...@gmail.comwrote: Not working :( On Wed, Jul 13,

Re: [web2py] Multiple Domains, Subdomains, and Applications with SSL. Single web2py Instance on Apache

2011-07-13 Thread Ross Peoples
Glad you got it resolved. And I'm glad this is helping others. I should mention though that the Apache configurations mentioned in my original post disable admin and app admin access completely (even over SSL). This is a good idea unless you absolutely need it, since web2py's admin application

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Richard Vézina
And what about the db=DAL('mysql://username:password@localhost/test')... Can you see if web2py has create you person table into you mysql database? You can also try to make a little app that work with sqlite by default and try your exact same code in in so you will be able to determine if your

[web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Eric Scott
Dear Massimo and the rest of the dev team, You and your team have assembled a wonderful framework here. Coming from a PHP/CakePHP background (non-professional other than some work as a web designer in the late 1990s), I decided to switch to a python- based framework and spent the past week

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Kenneth Lundström
What happens if you insert a record directly to mysql, can you view it from web2py. In controller return db(db.person.id 0).select() Kenneth db.define_table('person', Field('name','string')) On Wed, Jul 13, 2011 at 1:11 PM, Richard Vézina ml.richard.vez...@gmail.com

[web2py] multiselect with part of a table

2011-07-13 Thread Nicolas Palumbo
I have currently this multiselect generated by list:references: db.py: db.define_table('instance',Field('app',db.application),Field('server',db.server),Field('type','string'),format=lambda r: '%s %s' %(db.application[r.app].name,db.server[r.server].hostname)) ...

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Richard Vézina
MySQL 5.1.41 is kind of old... http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html D.1.23. Changes in MySQL 5.1.41 (05 November 2009) Richard 2011/7/13 Kenneth Lundström kenneth.t.lundst...@gmail.com What happens if you insert a record directly to mysql, can you view it from web2py.

Re: [web2py] INSERT Error? or Bug?

2011-07-13 Thread Ismael Alejandro
I think is solved I was working in another function with almost the same name xD Sorry 2011/7/13 Kenneth Lundström kenneth.t.lundst...@gmail.com What happens if you insert a record directly to mysql, can you view it from web2py. In controller return db(db.person.id 0).select()

[web2py] Re: Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Ross Peoples
Welcome Eric, and thanks for the contribution. I believe that the slice you refer to should still work. If you are already familiar with setting up PostgreSQL, then you don't have to do anything special for web2py. The only thing you need is a Python driver for PostgreSQL, which is why the

[web2py] Re: Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Anthony
There's also this section in the book: http://web2py.com/book/default/chapter/11#PostgreSQL Note, be sure to use Psycopg2 2.0.8 or later (current is 2.4.2), as there was a bug in prior versions that could cause errors. Anthony On Wednesday, July 13, 2011 11:35:50 AM UTC-4, Eric Scott

Re: [web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Thadeus Burgess
That slice is still works. The version number of postgres might be different, so instead of 8.3 use 8.4 or similar. You might also find things like auto_vacuum come set on by default in newer versions of postgres. Some of the web2py setup gets confusing at the end since I made some assumptions

[web2py] Re: Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Ross Peoples
Yes, I always seem to forget to mention the book. The web2py book is probably the most often quoted and linked to resource in this group. It is an excellent source of information and contains most of the information required to bring anyone up from newbie to novice. I think the book is updated

Re: [web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread ron_m
I use PostgreSQL as well with great success. Another thing to keep in mind is if you restart the database server and are using apache with web2py then you should restart apache as well. The reason is the connection pool if used as a number 0 in the DAL() connection statement will have stale

[web2py] Re: Get date from datetime with DAL

2011-07-13 Thread DenesL
Hi Angelo, sorry, I missed the datetime in the title (duh!). The date function belongs to the datetime object so it would be available in the rows only, the field does not have it: for row in rows: print row.data.date() Note that the year month day hour minute second functions might not be

[web2py] Off topic: are Google Groups wires crossed?

2011-07-13 Thread DenesL
The recent activity of a group user can be viewed by clicking on the view profile link on any post made by him/her, but I am seeing activity in groups that I have never even heard about, let alone become a member of, and the posts certainly belong to this group. Maybe that could explain why some

Re: [web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread pbreit
All I do is install postgres and change the connection string and it seems to work OK. I'm not sure what all the extra stuff is in the slice. The one thing you have to be careful about is that SQLite is more forgiving during migrations. You have to be a bit more careful when editing models. I

[web2py] Re: web2py - Best Practice

2011-07-13 Thread pbreit
I think this is a worthwhile aspiration but I suspect we will only get there organically. The problem with some of those categories is that there are multiple good solutions that make it difficult to decide to use a probably inferior solution. I was beginning to create a generic shopping cart

[web2py] Re: tomorrow in San Francisco

2011-07-13 Thread pbreit
I'll be there. Looking forward to meeting Massimo and anyone else. Happy to meet up before or after if there is interest.

[web2py] URL() args encoding

2011-07-13 Thread (m)
My Web-programming and Python noobs continues to show. Thanks for bearing with me. I have a view with a fragment along the lines of the following to generates a list of links. foos has been generated in the controller. {{for foo in foos:}} lia href={{=URL('show',

[web2py] Re: Off topic: are Google Groups wires crossed?

2011-07-13 Thread Anthony
Yes, I pointed this out a couple months ago. It appears that entire web2py threads are completely reposted within other groups (e.g., https://groups.google.com/forum/#!topic/fameisfame/Og_-6Z86DfE). The content of these other groups generally appears to be spam. I have no idea how this

[web2py] Re: Web2py uses Django... on GAE

2011-07-13 Thread howesc
opened as ticket 337. i got far enough to even link to the google documentation on this, didn't get to testing it out though.

[web2py] Re: URL() args encoding

2011-07-13 Thread pbreit
You may need to use urllib.urlencode: http://docs.python.org/library/urllib.html#urllib.urlencode

[web2py] Re: Simultaneous multi-language system.

2011-07-13 Thread pbreit
Wow, that's a weird request. I suspect it is going to be easiest just to program the two variations without T().

[web2py] Trouble with database?!

2011-07-13 Thread weheh
I'm working on an app. During development, I wanted to make sure I could do a clean build of the db. So I wiped everything -- deleted all files under databases, sessions, errors, and any uploaded files and old static files that were generated by the app. So I start over populating the db. Some of

[web2py] Re: how to POST a file without using a form?

2011-07-13 Thread weheh
Isn't that on the receiving end? How do I POST the file. On Jul 12, 5:28 pm, pbreit pbreitenb...@gmail.com wrote: Can you just grab the request.var? def receive_posted_file()     f = request.vars.ifile     #process f

Re: [web2py] Re: how to POST a file without using a form?

2011-07-13 Thread David J
Using urllib import urllib into your project and google for a post example On Jul 13, 2011 6:50 PM, weheh richard_gor...@verizon.net wrote: Isn't that on the receiving end? How do I POST the file. On Jul 12, 5:28 pm, pbreit pbreitenb...@gmail.com wrote: Can you just grab the request.var? def

[web2py] Re: Trouble with database?!

2011-07-13 Thread pbreit
Maybe try: 'mygroup%s' % mygroup_id Does SQLFORM.factory return a form.vars.id? I thought only happened when there was a DB insert?

[web2py] Re: dal trying to insert 0 instead of null?

2011-07-13 Thread Lenkaster
Hi cjwebb Your suspect is correct and I had a similar barrier. Pay attention this part of log:   File c:\web2py\gluon\sqlhtml.py, line 1205, in accepts     self.vars.id = self.table.insert(**fields) Before the line 1205 accepts method tries to set up recipe_id with fields[fieldname]=. Probaly

[web2py] Re: Trouble with database?! [closed]

2011-07-13 Thread weheh
Now I feel more than a little stupid. Obviously, I had it as form=SQLFORM(db.mygroup) originally, then added the Field later, which turned SQLFORM into SQLFORM.factory, which causes me to have to insert into the db manually. Must be having a senior moment. On Jul 13, 6:48 pm, weheh

[web2py] How to to get SQLFORM.factory to show only a subset of records ?

2011-07-13 Thread Mike Veltman
This will probably a facepalm moment but I can not figure it out. My present used form function form = SQLFORM.factory( Field('setup', requires=IS_IN_DB(db, db.setup.setupname, '%(setupname)s') )) Model db.define_table('setup', Field('setupname', type='string',

Re: [web2py] How to to get SQLFORM.factory to show only a subset of records ?

2011-07-13 Thread Anthony
IS_IN_DB takes a DAL set, so you can limit the records returned. If you want the record ID returned, use db.setup.id. So, maybe something like this: Field('setup', requires=IS_IN_DB(db(db.setup.ready==True), db.setup.id, '%(setupname)s')) Anthony On Wednesday, July 13, 2011 9:06:03 PM

Re: [web2py] How to to get SQLFORM.factory to show only a subset of records ?

2011-07-13 Thread Anthony
For reference, see http://web2py.com/book/default/chapter/07#Database-Validators. On Wednesday, July 13, 2011 9:21:54 PM UTC-4, Anthony wrote: IS_IN_DB takes a DAL set, so you can limit the records returned. If you want the record ID returned, use db.setup.id. So, maybe something like

Re: [web2py] How to to get SQLFORM.factory to show only a subset of records ?

2011-07-13 Thread Anthony
Oh, and to get rid of the empty choice at the top of the list, add zero=None: IS_IN_DB(..., zero=None) On Wednesday, July 13, 2011 9:22:50 PM UTC-4, Anthony wrote: For reference, see http://web2py.com/book/default/chapter/07#Database-Validators. On Wednesday, July 13, 2011 9:21:54

[web2py] [closed] Re: one form for multiple tables - updating record

2011-07-13 Thread niknok
Thanks Anthony. I checked that out but prefer Jay Kelnar take here: http://groups.google.com/group/web2py/msg/bc03cef19067fa83 In short, SQLFORM.factory has no record argument. You must retrieve the previous record and store it in form.vars. Jay shared me his code and I modified it here:

[web2py] Re: web2py - Best Practice

2011-07-13 Thread nic
Great !!! Looks like there is some interest. Thanks for all the comments. I totally agree it's important to figure out what the compelling use case is for them, and how the necessary thousands of developer hours are going to get committed and coordinated to make it happen Unless someone has a

Re: [web2py] Re: web2py - Best Practice

2011-07-13 Thread Nicolas Palumbo
I like this as well! On Wed, Jul 13, 2011 at 10:54 PM, nic nicbythe...@gmail.com wrote: Great !!! Looks like there is some interest. Thanks for all the comments. I totally agree it's important to figure out what the compelling use case is for them, and how the necessary thousands of

Re: [web2py] How to to get SQLFORM.factory to show only a subset of records ?

2011-07-13 Thread Mike Veltman
Thanks about 1 zillion times :) Oh, and to get rid of the empty choice at the top of the list, add zero=None: IS_IN_DB(..., zero=None) On Wednesday, July 13, 2011 9:22:50 PM UTC-4, Anthony wrote: For reference, see http://web2py.com/book/default/chapter/07#Database-Validators.

[web2py] Re: [closed] Re: one form for multiple tables - updating record

2011-07-13 Thread Anthony
Looks good. Thanks for sharing. On Wednesday, July 13, 2011 9:39:09 PM UTC-4, niknok wrote: Thanks Anthony. I checked that out but prefer Jay Kelnar take here: http://groups.google.com/group/web2py/msg/bc03cef19067fa83 In short, SQLFORM.factory has no record argument. You must retrieve

[web2py] Re: How to temporarily redirect all requests

2011-07-13 Thread Luis Goncalves
Hello Anthony, and others! I implemented your very first suggestion, code in a model, outside of a function, as you (and pbreit) suggested. It worked fine! It's been very hectic (meetings/travel) and I haven't had a chance to reply until now. Thanks for your help (everybody!) !!! Luis.

[web2py] Re: how to use contrib/login_methods/linkedin_account.py

2011-07-13 Thread Luis Goncalves
I didn't. But by doing the authentication manually (that is, in an interactive shell), I was able to connect to linked in. I realized that I wouldn't be able to get the information that I wanted though (email address - never provided by linkedin!), so I gave up. But the web2py linked-in

[web2py] Re: Python 3 and the future of web2py

2011-07-13 Thread Rahul
I am fine with Web3py. Atleast we start a step that way towards Python 3.x .. On Jul 13, 7:28 pm, Caleb Hattingh caleb.hatti...@gmail.com wrote: Agreed, I think web2py on Py3 is pointless. An entirely different project, called, let's say, web3py, which runs on Py3 is a different animal

[web2py] utf-8 issue

2011-07-13 Thread weheh
I think I always get tied up by utf-8 encoding and web2py is no exception. I'm uploading a text file, extracting some info, which I stuff into Fields, and then writing the modified text file to an upload Field. The Fields that I directly write from data read from the original text file all look

[web2py] how to get user name before login is completed

2011-07-13 Thread weheh
How would one get auth.messages.logged_in to be something like Welcome Massimoupon login? auth.user_id is None at the time the auth.messages.logged_in is evaluated.