Re: [web2py] A web2py BBS in c-hina has been launched, since in c-hina, this web2py group is forbidden.

2012-05-23 Thread Carlos Costa
好的。 Good. 2012/5/23 web2py_lover lia...@gmail.com: A web2py BBS in c-hina has been launched, since in c-hina, this web2py group is forbidden. http://web2py.sinaapp.com/ -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-18 Thread Carlos Costa
The answer? 2012/5/18 Jason Brower encomp...@gmail.com This bounty has, thankfully, been solved. Thank you to all those that have participated! It has saved me so much time! BR, Jason Brower On 05/17/2012 07:28 PM, Jason Brower wrote: I have the event management tool I have been

Re: [web2py] Re: 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Carlos Costa
I found a way quite simple but It does not include the Relevance columns. 2012/5/17 Andrew awillima...@gmail.com If another user has a tag that UserA is looking for, then relevance is +2 to UserA If another user is looking for something UserA has, then relevance is +1 to UserA If another

Re: [web2py] An insult to web2py ?

2012-05-05 Thread Carlos Costa
I read it like a manifest of preferences, not like argumentations. Nothing to worry about. Em 3 de maio de 2012 08:40, António Ramos ramstei...@gmail.com escreveu: a person just wrote this about web2py in a portuguese forum Anyone care to coment? Viva, Eu conheci primeiro o web2py e só uns

Re: [web2py] Re: An insult to web2py ?

2012-05-05 Thread Carlos Costa
I take this as opportunity to compliment the DAL. I have never seen clever way to manipulate data in a relational database. I am actually addicted to the way it works. I wish could work with web2py as my primary job. 2012/5/5 Massimo Di Pierro massimo.dipie...@gmail.com: On Saturday, 5 May 2012

Re: [web2py] Re: CMS question

2012-05-04 Thread Carlos Costa
Sorry, I had not read all the messages neither tested it but I am interested as I was think on a similar project. Maybe I am going off topic but my idea was to use the hackasaurus.org as an user interface editor. It looks fine. But I am not aware of license issues or integrability. Has anyone any

Re: [web2py] Looking for a good beginner's guide

2012-04-26 Thread Carlos Costa
I think web2py.com/book can be a good start. 2012/4/26 newbiedev mattyoungbloo...@gmail.com: I am a new to programming in general and am looking for an excellent beginner's guide to web2py. This is not just for learning the framework, but also learning web programming priciples, in general. 

Re: [web2py] Re: Free e-book abhout Rest API

2012-04-25 Thread Carlos Costa
So helpful. Thanks. 2012/4/25 Ross Peoples ross.peop...@gmail.com: Thanks for the link! I've been looking for good API design resources. -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] Re: Workflow engine for web2py

2012-04-16 Thread Carlos Costa
I think it is. What are the advantages with this aproach? Em 16 de abril de 2012 07:44, António Ramos ramstei...@gmail.com escreveu: I suggest a workflow as a service. I have a database where i define all workflows for all databases. I have something like this way in a Lotus Notes

Re: [web2py] how to change a field type from string to decimal?

2012-04-12 Thread Carlos Costa
The database wont be recreated. And you could change the field name temporally. 2012/4/12 Carlos carlosgali...@gmail.com: Hi, Is it possible (and how) to change a field type from string to decimal without recreating the table?. There are no records in the table yet, but I would like to know

Re: [web2py] How to use XML data

2012-03-06 Thread Carlos Costa
As I can see, you got the XML and outputed it to the view. I dont see what you want more. Tell us. 2012/3/6 Praveen Bhat praveenbha...@gmail.com: Hello, I have come to the point where the whole XML document is returned, as u can see in the attached file. I have used the following code:

Re: [web2py] view with 2 forms

2012-03-06 Thread Carlos Costa
You will need to pass the post ID in the url or var or something. And I think you want to show comments related to the post not another posts. comments = db(db.comment.id=request.args(0)).select() Pass this to the view. 2012/3/6 Ale alessandro.agu...@gmail.com: Good morning everyone. I am

Re: [web2py] fit image to shape

2012-03-06 Thread Carlos Costa
You will need an extra library to accomplish this, like PIL http://www.pythonware.com/products/pil/ 2012/3/6 mwk mwkant...@gmail.com: I would like to have an uploaded image displayed inside a specific shape.  For instance, I would like to have an uploaded image fill a circle or fill an octagon

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
Looks its a timeout. Maybe I am wrong but you can state an update too many records. GAE has time limitations, I dont know how much because I dont use it anymore. Search for the GAE docs on these limitations. 2012/3/6 Sushant Taneja sushant.tanej...@gmail.com: Hi All, I am building a invite

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
I dont know, but have you examined the GAE log? 2012/3/6 Sushant Taneja sushant.tanej...@gmail.com: Hi, I thought the same but as you can see I have handled the Timeout exception in the code. If its the Timeout then why I am unable to catch the exception ? On Tuesday, March 6, 2012 7:30:38

Re: [web2py] How to use XML data

2012-03-05 Thread Carlos Costa
You can do something like in http://web2py.com/books/default/chapter/29/5 : Parsing The TAG object is also an XML/HTML parser. It can read text and convert into a tree structure of helpers. This allows manipulation using the API above: html = 'h1Title/h1pthis is a spantest/span/p' parsed_html =

Re: [web2py] Weird behavior of decimal stored in session.

2012-03-05 Thread Carlos Costa
I dont know why but you can fix it explicitly using Decimal. http://docs.python.org/library/decimal.html#module-decimal 2012/3/5 Francisco betancourt.franci...@gmail.com: Hi everyone. I just came across a weird behavior and I'm wondering if it's some kind of bug or just my fault. I have a

Re: [web2py] Re: I would like to learn Web2py but where do I start?

2012-02-24 Thread Carlos Costa
Massimo is a nice guy! 2012/2/24 newbie ericgushi...@gmail.com: Thank you all so much for your responses and recommendations.  I will give those a try.  Massimo, keep up the great work and thank you for taking the time to help.  I look forward to the video tutorial. On Feb 23, 10:20 pm,

Re: [web2py] how to display data

2012-02-08 Thread Carlos Costa
First select the data you want to display #select all records with all fields articles = db(db.articles).select() Second, pass it to the view return dict(articles=articles) Third, render it in the view inde.html {{=articles}} Note: this is the most basic data displaying with Web2py, you will

Re: [web2py] Re: lungo.js

2012-02-05 Thread Carlos Costa
+1 2012/2/5 Oli oliver.fr...@gmx.net: we should have a mobile solution for web2py out of the box. Would this be possible? -- Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן

Re: [web2py] newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Carlos Costa
I think you can do like this: if request.vars: use request.vars.varname to access values else: return . Since you point your form to the right actions the all the vars will be there when you submit. When you dont submit they will not be there. 2012/2/4 Salvation

Re: [web2py] newbie question about relationships in model

2012-02-04 Thread Carlos Costa
Is t_winery being created after this line? 2012/2/4 air_cooled jam...@billson.com: I've created a model in the GAE SQL tool - which was great, except it didn't work in web2py.  I just got errors. So I created a model from the wizard to get going, but I've got some strange behaviour around

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Carlos Costa
I think their purpose is for prototyping. 2012/2/2 Jim Steil j...@qlf.com: You are good! Is this done because of a security concern?  Would 'best practice' dictate that I not use the generic views.     -Jim On 2/2/2012 12:14 PM, Anthony wrote: Do you have an actual

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Hard to guess withou the model, but looks like its related to the membership. 2012/2/2 pbreit pbreitenb...@gmail.com My code is erroring and it looks like the culprit is the logging of an auth_event. It's happening on a lightly customized auth_user Profile update. Traceback (most recent

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Looking the code above, elif is hit when len(rows) = 0. So I am stuck here, how could it retrive any value if the lenght is zero? Must look this whole code to understand it. 2012/2/2 pbreit pbreitenb...@gmail.com I'm not really using memberships and I have auto group creation turned off:

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
? 1.86.2  or 1.88.3? On Nov 8, 10:47 am,yamanduyamandu.co...@gmail.com wrote: OMG! The problem returned. And said this too: ERROR:root:Syntax error in C:\..\applications\anima/languages/pt-br.py On Nov 6, 10:07 am, Carlos Costa yamandu.co...@gmail.com wrote: I think It´s

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-08 Thread Carlos Costa
are getting corrupted and web2py is re-writing them. Massimo On Nov 8, 12:18 pm, Carlos Costa yamandu.co...@gmail.com wrote: Yes. 2010/11/8 mdipierro mdipie...@cs.depaul.edu: Do you have the Mark Hammond wein32 extensions? On Nov 8, 12:00 pm, yamandu yamandu.co...@gmail.com wrote: Both

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-06 Thread Carlos Costa
I think It´s fine for now. At least it will be more clear to the developer until discover the cause. 2010/11/6 mdipierro mdipie...@cs.depaul.edu: yes but once and only once, when an upgrade corrupts a cache file. On Nov 5, 10:01 pm, Carlos Costa yamandu.co...@gmail.com wrote: The ticket

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
: ERROR:web2py.cache:corrupted file: C:\...\applications\welcome/cache/ cache.shelve everytime! On Oct 6, 6:54 pm, mdipierro mdipie...@cs.depaul.edu wrote: Yes it is somewhere in the manual. On Oct 6, 3:41 pm, Carlos Costa yamandu.co...@gmail.com wrote: Things make more sense now. I always got

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
Well, I don´t know exactly. What´s this file exactly for? 2010/11/5 mdipierro mdipie...@cs.depaul.edu: perhaps when this occurs should delete the file automatically? Pros? Cons? On Nov 5, 4:35 pm, Carlos Costa yamandu.co...@gmail.com wrote: Looks like it fixed. So simple! Thanks! 2010/11

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-05 Thread Carlos Costa
be deleted without data loss). The problem is that if the failure is caused by some other serious problem, deleting automatically, will hide a problem with cache.disk. On Nov 5, 9:52 pm, Carlos Costa yamandu.co...@gmail.com wrote: Well, I don´t know exactly. What´s this file exactly

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-10-06 Thread Carlos Costa
Things make more sense now. I always got the message Cron disable because no file locking. I had to pass -N argument for it to stop anoying me. Is that documented? Thanks again. 2010/10/6 mdipierro mdipie...@cs.depaul.edu: If you run web2py from source under windows you need it. If you use the

Re: [web2py] Re: Webgrid so strange!

2010-02-02 Thread Carlos Costa
Well, now it´s working again. The tip you gave was very valuable! I went to confirm what encoding I have been working with because recently I have changed from editor and was not sure. It´s utf8 rightnow but I changed from ascii yesterday. As it works now, I think that was actually the problem,

<    1   2